Linux ps

From John Freier
Revision as of 14:31, 24 September 2012 by Jfreier (Talk | contribs)

Jump to: navigation, search

PS sytax.

-a List information about all processes most frequently requested: all those except process group leaders and processes not associated with a terminal.

-A List information for all processes. Identical to -e, below.

-c Print information in a format that reflects scheduler properties as described in priocntl. The -c option affects the output of the -f and -l options, as described below.

-d List information about all processes except session leaders.

-e List information about every process now running.

-f Generate a full listing.

-j Print session ID and process group ID.

-l Generate a long listing.

-L Print information about each light weight process (lwp) in each selected process.

-P Print the number of the processor to which the process or lwp is bound, if any, under an additional column header, PSR.

-y Under a long listing (-l), omit the obsolete F and ADDR columns and include an RSS column to report the resident set size of the process. Under the -y option, both RSS and SZ will be reported in units of kilobytes instead of pages.


Example

ps -Af | grep java