TOOL » LINUX » PACKAGE

Ps

Usage

Report a snapshot of the current processes.

shell
ps OPTIONS
OptionDescription
aList all processes with a terminal (tty), or all processes if used with the x option..
uDisplay user-oriented format.
xLift the BSD-style "must have a tty" restriction.
-A -eSelect all processes.
-fDo full-format listing.
-OAdd new columns to the output. Ex: ppid ni (nice)
-oCustomize columns to be shown. Ex: pid comm

Examples

See only processes started in this shell:

shell
ps

See all running processes with arguments:

shell
ps aux
ps -ef

Check nice value of running processes:

shell
ps -eO ni
ps -eo pid,ni,comm