ps-reports process status

 <  Day Day Up  >  

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

  1. 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)

  2. Same as the first example, only the AT&T version.

 <  Day Day Up  >  


UNIX Shells by Example
UNIX Shells by Example (4th Edition)
ISBN: 013147572X
EAN: 2147483647
Year: 2004
Pages: 454
Authors: Ellie Quigley

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net