Name
ps
Synopsis
ps [options]Report on active processes. ps has three types of options. GNU long
options start with two dashes, which are required. BSD options may
be grouped and do not start with a dash, while Unix98 options may
be grouped and require an initial dash. The meaning of the short
options can vary depending on whether or not there is a dash. In
options, list arguments should either be
separated by commas or put in double quotes. In comparing the
amount of output produced, note that e prints more than a and l prints more than f for each entry.
Options
nums,pnums,-pnums,--pid=numsInclude only specified processes, which are given in a space-delimited list.
--nums,--sid=numsInclude only specified session IDs, which are given in a space-delimited list.
[-]aAs
a, list all processes on a terminal. As-a, list all processes on a terminal except session leaders.[-]cAs
c, show the true command name. As-c, show different scheduler information with-l.-
-Ccmds Select by command name.
--cols=cols,--columns=cols,--width=colsSet the output width (the number of columns to display).
-
-d Select all processes except session leaders.
-e,-ASelect all processes.
-
e Include environment information after the command.
[-]f,-F,--forestAs
-f, display full listing. Asfor--forest, display “forest” family tree format, with ASCII art showing the relationships.-glist,-Glist,--group=groups,--Group=groupsFor
-g, select by session leader if list contains numbers, or by group if it contains group ...