Путеводитель по Руководству Linux

  User  |  Syst  |  Libr  |  Device  |  Files  |  Other  |  Admin  |  Head  |



   procps    ( 1 )

сообщить снимок текущих процессов (report a snapshot of the current processes.)

Модификаторы выхода (Output modifiers)

c      Show the true command name.  This is derived from the name
              of the executable file, rather than from the argv value.
              Command arguments and any modifications to them are thus
              not shown.  This option effectively turns the args format
              keyword into the comm format keyword; it is useful with
              the -f format option and with the various BSD-style format
              options, which all normally display the command arguments.
              See the -f option, the format keyword args, and the format
              keyword comm.

--cols n Set screen width.

--columns n Set screen width.

--cumulative Include some dead child process data (as a sum with the parent).

e Show the environment after the command.

f ASCII art process hierarchy (forest).

--forest ASCII art process tree.

h No header. (or, one header per screen in the BSD personality). The h option is problematic. Standard BSD ps uses this option to print a header on each page of output, but older Linux ps uses this option to totally disable the header. This version of ps follows the Linux usage of not printing the header unless the BSD personality has been selected, in which case it prints a header on each page of output. Regardless of the current personality, you can use the long options --headers and --no-headers to enable printing headers each page or disable headers entirely, respectively.

-H Show process hierarchy (forest).

--headers Repeat header lines, one per page of output.

k spec Specify sorting order. Sorting syntax is [+|-]key[,[+|-]key[,...]]. Choose a multi-letter key from the STANDARD FORMAT SPECIFIERS section. The "+" is optional since default direction is increasing numerical or lexicographic order. Identical to --sort.

Examples: ps jaxkuid,-ppid,+pid ps axk comm o comm,args ps kstart_time -ef

--lines n Set screen height.

n Numeric output for WCHAN and USER (including all types of UID and GID).

--no-headers Print no header line at all. --no-heading is an alias for this option.

O order Sorting order (overloaded). The BSD O option can act like -O (user-defined output format with some common fields predefined) or can be used to specify sort order. Heuristics are used to determine the behavior of this option. To ensure that the desired behavior is obtained (sorting or formatting), specify the option in some other way (e.g. with -O or --sort).

For sorting, obsolete BSD O option syntax is O[+|-]k1[,[+|-]k2[,...]]. It orders the processes listing according to the multilevel sort specified by the sequence of one-letter short keys k1,k2, ... described in the OBSOLETE SORT KEYS section below. The "+" is currently optional, merely re-iterating the default direction on a key, but may help to distinguish an O sort from an O format. The "-" reverses direction only on the key it precedes.

--rows n Set screen height.

S Sum up some information, such as CPU usage, from dead child processes into their parent. This is useful for examining a system where a parent process repeatedly forks off short-lived children to do work.

--sort spec Specify sorting order. Sorting syntax is [+|-]key[,[+|-]key[,...]]. Choose a multi-letter key from the STANDARD FORMAT SPECIFIERS section. The "+" is optional since default direction is increasing numerical or lexicographic order. Identical to k. For example: ps jax --sort=uid,-ppid,+pid

w Wide output. Use this option twice for unlimited width.

-w Wide output. Use this option twice for unlimited width.

--width n Set screen width.