ps
”
reports
process status
ps [ acdefjl ] [ g grplist ] [ p proclist ]
[ s sidlist ] [ t term ] [ u uidlist ]
ps
prints information about active processes. Without options,
ps
prints information about processes associated with the controlling terminal. The output contains only the process ID, terminal identifier, cumulative execution time, and the command
name
. Otherwise, the information that is displayed is controlled by the options. The
ps
options are not the same for AT&T and Berkeley type versions of UNIX.
Example A.42.
1 ps -aux grep '^linda'
# ucb
2 ps -ef grep '^ *linda'
# at&t
EXPLANATION
-
Prints all processes running and pipes the output to the
grep
program, and printing only those processes owned by
user
linda,
where
linda
is at the beginning of each line. (UCB version)
-
Same as the first example, only the AT&T version.
|