{"id":337,"date":"2019-10-21T19:49:24","date_gmt":"2019-10-21T17:49:24","guid":{"rendered":"http:\/\/linuxboxen2.dk\/?p=337"},"modified":"2019-10-21T19:49:24","modified_gmt":"2019-10-21T17:49:24","slug":"ps","status":"publish","type":"post","link":"https:\/\/www.linuxboxen.dk\/?p=337","title":{"rendered":"PS"},"content":{"rendered":"<p>PS(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PS(1)<\/p>\n<p>NAME<\/p>\n<p>ps &#8211; report a snapshot of the current processes.<\/p>\n<p>SYNOPSIS<\/p>\n<p>ps [options]<\/p>\n<p>DESCRIPTION<\/p>\n<p>ps displays information about a selection of the active processes.<br \/>\nIf you want a repetitive update of the selection and the displayed<br \/>\ninformation, use top(1) instead.<\/p>\n<p>This version of ps accepts several kinds of options:<\/p>\n<p>1\u00a0\u00a0 UNIX options, which may be grouped and must be preceded by a<br \/>\ndash.<br \/>\n2\u00a0\u00a0 BSD options, which may be grouped and must not be used with a<br \/>\ndash.<br \/>\n3\u00a0\u00a0 GNU long options, which are preceded by two dashes.<\/p>\n<p>Options of different types may be freely mixed, but conflicts can<br \/>\nappear.\u00a0 There are some synonymous options, which are functionally<br \/>\nidentical, due to the many standards and ps implementations that this<br \/>\nps is compatible with.<\/p>\n<p>Note that &#8220;ps -aux&#8221; is distinct from &#8220;ps aux&#8221;.\u00a0 The POSIX and UNIX<br \/>\nstandards require that &#8220;ps -aux&#8221; print all processes owned by a user<br \/>\nnamed &#8220;x&#8221;, as well as printing all processes that would be selected<br \/>\nby the -a option.\u00a0 If the user named &#8220;x&#8221; does not exist, this ps may<br \/>\ninterpret the command as &#8220;ps aux&#8221; instead and print a warning.\u00a0 This<br \/>\nbehavior is intended to aid in transitioning old scripts and habits.<br \/>\nIt is fragile, subject to change, and thus should not be relied upon.<\/p>\n<p>By default, ps selects all processes with the same effective user ID<br \/>\n(euid=EUID) as the current user and associated with the same terminal<br \/>\nas the invoker.\u00a0 It displays the process ID (pid=PID), the terminal<br \/>\nassociated with the process (tname=TTY), the cumulated CPU time in<br \/>\n[DD-]hh:mm:ss format (time=TIME), and the executable name (ucmd=CMD).<br \/>\nOutput is unsorted by default.<\/p>\n<p>The use of BSD-style options will add process state (stat=STAT) to<br \/>\nthe default display and show the command args (args=COMMAND) instead<br \/>\nof the executable name.\u00a0 You can override this with the PS_FORMAT<br \/>\nenvironment variable. The use of BSD-style options will also change<br \/>\nthe process selection to include processes on other terminals (TTYs)<br \/>\nthat are owned by you; alternately, this may be described as setting<br \/>\nthe selection to be the set of all processes filtered to exclude<br \/>\nprocesses owned by other users or not on a terminal.\u00a0 These effects<br \/>\nare not considered when options are described as being &#8220;identical&#8221;<br \/>\nbelow, so -M will be considered identical to Z and so on.<\/p>\n<p>Except as described below, process selection options are additive.<br \/>\nThe default selection is discarded, and then the selected processes<br \/>\nare added to the set of processes to be displayed.\u00a0 A process will<br \/>\nthus be shown if it meets any of the given selection criteria.<\/p>\n<p>EXAMPLES<\/p>\n<p>To see every process on the system using standard syntax:<br \/>\nps -e<br \/>\nps -ef<br \/>\nps -eF<br \/>\nps -ely<\/p>\n<p>To see every process on the system using BSD syntax:<br \/>\nps ax<br \/>\nps axu<\/p>\n<p>To print a process tree:<br \/>\nps -ejH<br \/>\nps axjf<\/p>\n<p>To get info about threads:<br \/>\nps -eLf<br \/>\nps axms<\/p>\n<p>To get security info:<br \/>\nps -eo euser,ruser,suser,fuser,f,comm,label<br \/>\nps axZ<br \/>\nps -eM<\/p>\n<p>To see every process running as root (real &amp; effective ID) in user<br \/>\nformat:<br \/>\nps -U root -u root u<\/p>\n<p>To see every process with a user-defined format:<br \/>\nps -eo pid,tid,class,rtprio,ni,pri,psr,pcpu,stat,wchan:14,comm<br \/>\nps axo stat,euid,ruid,tty,tpgid,sess,pgrp,ppid,pid,pcpu,comm<br \/>\nps -Ao pid,tt,user,fname,tmout,f,wchan<\/p>\n<p>Print only the process IDs of syslogd:<br \/>\nps -C syslogd -o pid=<\/p>\n<p>Print only the name of PID 42:<br \/>\nps -q 42 -o comm=<\/p>\n<p>SIMPLE PROCESS SELECTION<\/p>\n<p>a\u00a0\u00a0\u00a0\u00a0\u00a0 Lift the BSD-style &#8220;only yourself&#8221; restriction, which is<br \/>\nimposed upon the set of all processes when some BSD-style<br \/>\n(without &#8220;-&#8220;) options are used or when the ps personality<br \/>\nsetting is BSD-like.\u00a0 The set of processes selected in this<br \/>\nmanner is in addition to the set of processes selected by<br \/>\nother means.\u00a0 An alternate description is that this option<br \/>\ncauses ps to list all processes with a terminal (tty), or to<br \/>\nlist all processes when used together with the x option.<\/p>\n<p>-A\u00a0\u00a0\u00a0\u00a0 Select all processes.\u00a0 Identical to -e.<\/p>\n<p>-a\u00a0\u00a0\u00a0\u00a0 Select all processes except both session leaders (see<br \/>\ngetsid(2)) and processes not associated with a terminal.<\/p>\n<p>-d\u00a0\u00a0\u00a0\u00a0 Select all processes except session leaders.<\/p>\n<p>&#8211;deselect<br \/>\nSelect all processes except those that fulfill the specified<br \/>\nconditions (negates the selection).\u00a0 Identical to -N.<\/p>\n<p>-e\u00a0\u00a0\u00a0\u00a0 Select all processes.\u00a0 Identical to -A.<\/p>\n<p>g\u00a0\u00a0\u00a0\u00a0\u00a0 Really all, even session leaders.\u00a0 This flag is obsolete and<br \/>\nmay be discontinued in a future release.\u00a0 It is normally<br \/>\nimplied by the a flag, and is only useful when operating in<br \/>\nthe sunos4 personality.<\/p>\n<p>-N\u00a0\u00a0\u00a0\u00a0 Select all processes except those that fulfill the specified<br \/>\nconditions (negates the selection).\u00a0 Identical to &#8211;deselect.<\/p>\n<p>T\u00a0\u00a0\u00a0\u00a0\u00a0 Select all processes associated with this terminal.\u00a0 Identical<br \/>\nto the t option without any argument.<\/p>\n<p>r\u00a0\u00a0\u00a0\u00a0\u00a0 Restrict the selection to only running processes.<\/p>\n<p>x\u00a0\u00a0\u00a0\u00a0\u00a0 Lift the BSD-style &#8220;must have a tty&#8221; restriction, which is<br \/>\nimposed upon the set of all processes when some BSD-style<br \/>\n(without &#8220;-&#8220;) options are used or when the ps personality<br \/>\nsetting is BSD-like.\u00a0 The set of processes selected in this<br \/>\nmanner is in addition to the set of processes selected by<br \/>\nother means.\u00a0 An alternate description is that this option<br \/>\ncauses ps to list all processes owned by you (same EUID as<br \/>\nps), or to list all processes when used together with the a<br \/>\noption.<\/p>\n<p>PROCESS SELECTION BY LIST<\/p>\n<p>These options accept a single argument in the form of a<br \/>\nblank-separated or comma-separated list.\u00a0 They can be used multiple<br \/>\ntimes.\u00a0 For example: ps -p &#8220;1 2&#8221; -p 3,4<\/p>\n<p>-123\u00a0\u00a0 Identical to &#8211;pid 123.<\/p>\n<p>123\u00a0\u00a0\u00a0 Identical to &#8211;pid 123.<\/p>\n<p>-C cmdlist<br \/>\nSelect by command name.\u00a0 This selects the processes whose<br \/>\nexecutable name is given in cmdlist.<\/p>\n<p>-G grplist<br \/>\nSelect by real group ID (RGID) or name.\u00a0 This selects the<br \/>\nprocesses whose real group name or ID is in the grplist list.<br \/>\nThe real group ID identifies the group of the user who created<br \/>\nthe process, see getgid(2).<\/p>\n<p>-g grplist<br \/>\nSelect by session OR by effective group name.\u00a0 Selection by<br \/>\nsession is specified by many standards, but selection by<br \/>\neffective group is the logical behavior that several other<br \/>\noperating systems use.\u00a0 This ps will select by session when<br \/>\nthe list is completely numeric (as sessions are).\u00a0 Group ID<br \/>\nnumbers will work only when some group names are also<br \/>\nspecified.\u00a0 See the -s and &#8211;group options.<\/p>\n<p>&#8211;Group grplist<br \/>\nSelect by real group ID (RGID) or name.\u00a0 Identical to -G.<\/p>\n<p>&#8211;group grplist<br \/>\nSelect by effective group ID (EGID) or name.\u00a0 This selects the<br \/>\nprocesses whose effective group name or ID is in grplist.\u00a0 The<br \/>\neffective group ID describes the group whose file access<br \/>\npermissions are used by the process (see getegid(2)).\u00a0 The -g<br \/>\noption is often an alternative to &#8211;group.<\/p>\n<p>p pidlist<br \/>\nSelect by process ID.\u00a0 Identical to -p and &#8211;pid.<\/p>\n<p>-p pidlist<br \/>\nSelect by PID.\u00a0 This selects the processes whose process ID<br \/>\nnumbers appear in pidlist.\u00a0 Identical to p and &#8211;pid.<\/p>\n<p>&#8211;pid pidlist<br \/>\nSelect by process ID.\u00a0 Identical to -p and p.<\/p>\n<p>&#8211;ppid pidlist<br \/>\nSelect by parent process ID.\u00a0 This selects the processes with<br \/>\na parent process ID in pidlist.\u00a0 That is, it selects processes<br \/>\nthat are children of those listed in pidlist.<\/p>\n<p>q pidlist<br \/>\nSelect by process ID (quick mode).\u00a0 Identical to -q and<br \/>\n&#8211;quick-pid.<\/p>\n<p>-q pidlist<br \/>\nSelect by PID (quick mode).\u00a0 This selects the processes whose<br \/>\nprocess ID numbers appear in pidlist.\u00a0 With this option ps<br \/>\nreads the necessary info only for the pids listed in the<br \/>\npidlist and doesn&#8217;t apply additional filtering rules. The<br \/>\norder of pids is unsorted and preserved. No additional<br \/>\nselection options, sorting and forest type listings are<br \/>\nallowed in this mode.\u00a0 Identical to q and &#8211;quick-pid.<\/p>\n<p>&#8211;quick-pid pidlist<br \/>\nSelect by process ID (quick mode).\u00a0 Identical to -q and q.<\/p>\n<p>-s sesslist<br \/>\nSelect by session ID.\u00a0 This selects the processes with a<br \/>\nsession ID specified in sesslist.<\/p>\n<p>&#8211;sid sesslist<br \/>\nSelect by session ID.\u00a0 Identical to -s.<\/p>\n<p>t ttylist<br \/>\nSelect by tty.\u00a0 Nearly identical to -t and &#8211;tty, but can also<br \/>\nbe used with an empty ttylist to indicate the terminal<br \/>\nassociated with ps.\u00a0 Using the T option is considered cleaner<br \/>\nthan using t with an empty ttylist.<\/p>\n<p>-t ttylist<br \/>\nSelect by tty.\u00a0 This selects the processes associated with the<br \/>\nterminals given in ttylist.\u00a0 Terminals (ttys, or screens for<br \/>\ntext output) can be specified in several forms: \/dev\/ttyS1,<br \/>\nttyS1, S1.\u00a0 A plain &#8220;-&#8221; may be used to select processes not<br \/>\nattached to any terminal.<\/p>\n<p>&#8211;tty ttylist<br \/>\nSelect by terminal.\u00a0 Identical to -t and t.<\/p>\n<p>U userlist<br \/>\nSelect by effective user ID (EUID) or name.\u00a0 This selects the<br \/>\nprocesses whose effective user name or ID is in userlist.\u00a0 The<br \/>\neffective user ID describes the user whose file access<br \/>\npermissions are used by the process (see geteuid(2)).<br \/>\nIdentical to -u and &#8211;user.<\/p>\n<p>-U userlist<br \/>\nSelect by real user ID (RUID) or name.\u00a0 It selects the<br \/>\nprocesses whose real user name or ID is in the userlist list.<br \/>\nThe real user ID identifies the user who created the process,<br \/>\nsee getuid(2).<\/p>\n<p>-u userlist<br \/>\nSelect by effective user ID (EUID) or name.\u00a0 This selects the<br \/>\nprocesses whose effective user name or ID is in userlist.<\/p>\n<p>The effective user ID describes the user whose file access<br \/>\npermissions are used by the process (see geteuid(2)).<br \/>\nIdentical to U and &#8211;user.<\/p>\n<p>&#8211;User userlist<br \/>\nSelect by real user ID (RUID) or name.\u00a0 Identical to -U.<\/p>\n<p>&#8211;user userlist<br \/>\nSelect by effective user ID (EUID) or name.\u00a0 Identical to -u<br \/>\nand U.<\/p>\n<p>OUTPUT FORMAT CONTROL<\/p>\n<p>These options are used to choose the information displayed by ps.<br \/>\nThe output may differ by personality.<\/p>\n<p>-c\u00a0\u00a0\u00a0\u00a0 Show different scheduler information for the -l option.<\/p>\n<p>&#8211;context<br \/>\nDisplay security context format (for SELinux).<\/p>\n<p>-f\u00a0\u00a0\u00a0\u00a0 Do full-format listing. This option can be combined with many<br \/>\nother UNIX-style options to add additional columns.\u00a0 It also<br \/>\ncauses the command arguments to be printed.\u00a0 When used with<br \/>\n-L, the NLWP (number of threads) and LWP (thread ID) columns<br \/>\nwill be added.\u00a0 See the c option, the format keyword args, and<br \/>\nthe format keyword comm.<\/p>\n<p>-F\u00a0\u00a0\u00a0\u00a0 Extra full format.\u00a0 See the -f option, which -F implies.<\/p>\n<p>&#8211;format format<br \/>\nuser-defined format.\u00a0 Identical to -o and o.<\/p>\n<p>j\u00a0\u00a0\u00a0\u00a0\u00a0 BSD job control format.<\/p>\n<p>-j\u00a0\u00a0\u00a0\u00a0 Jobs format.<\/p>\n<p>l\u00a0\u00a0\u00a0\u00a0\u00a0 Display BSD long format.<\/p>\n<p>-l\u00a0\u00a0\u00a0\u00a0 Long format.\u00a0 The -y option is often useful with this.<\/p>\n<p>-M\u00a0\u00a0\u00a0\u00a0 Add a column of security data.\u00a0 Identical to Z (for SELinux).<\/p>\n<p>O format<br \/>\nis preloaded o (overloaded).\u00a0 The BSD O option can act like -O<br \/>\n(user-defined output format with some common fields<br \/>\npredefined) or can be used to specify sort order.\u00a0 Heuristics<br \/>\nare used to determine the behavior of this option.\u00a0 To ensure<br \/>\nthat the desired behavior is obtained (sorting or formatting),<br \/>\nspecify the option in some other way (e.g.\u00a0 with -O or<br \/>\n&#8211;sort).\u00a0 When used as a formatting option, it is identical to<br \/>\n-O, with the BSD personality.<\/p>\n<p>-O format<br \/>\nLike -o, but preloaded with some default columns.\u00a0 Identical<br \/>\nto -o pid,format,state,tname,time,command or -o pid,format,<br \/>\ntname,time,cmd, see -o below.<\/p>\n<p>o format<br \/>\nSpecify user-defined format.\u00a0 Identical to -o and &#8211;format.<\/p>\n<p>-o format<br \/>\nUser-defined format.\u00a0 format is a single argument in the form<br \/>\nof a blank-separated or comma-separated list, which offers a<br \/>\nway to specify individual output columns.\u00a0 The recognized<br \/>\nkeywords are described in the STANDARD FORMAT SPECIFIERS<br \/>\nsection below.\u00a0 Headers may be renamed (ps -o pid,<br \/>\nruser=RealUser -o comm=Command) as desired.\u00a0 If all column<br \/>\nheaders are empty (ps -o pid= -o comm=) then the header line<br \/>\nwill not be output.\u00a0 Column width will increase as needed for<br \/>\nwide headers; this may be used to widen up columns such as<br \/>\nWCHAN (ps -o pid,wchan=WIDE-WCHAN-COLUMN -o comm).\u00a0 Explicit<br \/>\nwidth control (ps opid,wchan:42,cmd) is offered too.\u00a0 The<br \/>\nbehavior of ps -o pid=X,comm=Y varies with personality; output<br \/>\nmay be one column named &#8220;X,comm=Y&#8221; or two columns named &#8220;X&#8221;<br \/>\nand &#8220;Y&#8221;.\u00a0 Use multiple -o options when in doubt.\u00a0 Use the<br \/>\nPS_FORMAT environment variable to specify a default as<br \/>\ndesired; DefSysV and DefBSD are macros that may be used to<br \/>\nchoose the default UNIX or BSD columns.<\/p>\n<p>s\u00a0\u00a0\u00a0\u00a0\u00a0 Display signal format.<\/p>\n<p>u\u00a0\u00a0\u00a0\u00a0\u00a0 Display user-oriented format.<\/p>\n<p>v\u00a0\u00a0\u00a0\u00a0\u00a0 Display virtual memory format.<\/p>\n<p>X\u00a0\u00a0\u00a0\u00a0\u00a0 Register format.<\/p>\n<p>-y\u00a0\u00a0\u00a0\u00a0 Do not show flags; show rss in place of addr.\u00a0 This option can<br \/>\nonly be used with -l.<\/p>\n<p>Z\u00a0\u00a0\u00a0\u00a0\u00a0 Add a column of security data.\u00a0 Identical to -M (for SELinux).<\/p>\n<p>OUTPUT MODIFIERS<\/p>\n<p>c\u00a0\u00a0\u00a0\u00a0\u00a0 Show the true command name.\u00a0 This is derived from the name of<br \/>\nthe executable file, rather than from the argv value.\u00a0 Command<br \/>\narguments and any modifications to them are thus not shown.<br \/>\nThis option effectively turns the args format keyword into the<br \/>\ncomm format keyword; it is useful with the -f format option<br \/>\nand with the various BSD-style format options, which all<br \/>\nnormally display the command arguments.\u00a0 See the -f option,<br \/>\nthe format keyword args, and the format keyword comm.<\/p>\n<p>&#8211;cols n<br \/>\nSet screen width.<\/p>\n<p>&#8211;columns n<br \/>\nSet screen width.<\/p>\n<p>&#8211;cumulative<br \/>\nInclude some dead child process data (as a sum with the<br \/>\nparent).<\/p>\n<p>e\u00a0\u00a0\u00a0\u00a0\u00a0 Show the environment after the command.<\/p>\n<p>f\u00a0\u00a0\u00a0\u00a0\u00a0 ASCII art process hierarchy (forest).<\/p>\n<p>&#8211;forest<br \/>\nASCII art process tree.<\/p>\n<p>h\u00a0\u00a0\u00a0\u00a0\u00a0 No header.\u00a0 (or, one header per screen in the BSD<br \/>\npersonality).\u00a0 The h option is problematic.\u00a0 Standard BSD ps<br \/>\nuses this option to print a header on each page of output, but<br \/>\nolder Linux ps uses this option to totally disable the header.<br \/>\nThis version of ps follows the Linux usage of not printing the<br \/>\nheader unless the BSD personality has been selected, in which<br \/>\ncase it prints a header on each page of output.\u00a0 Regardless of<br \/>\nthe current personality, you can use the long options<br \/>\n&#8211;headers and &#8211;no-headers to enable printing headers each<br \/>\npage or disable headers entirely, respectively.<\/p>\n<p>-H\u00a0\u00a0\u00a0\u00a0 Show process hierarchy (forest).<\/p>\n<p>&#8211;headers<br \/>\nRepeat header lines, one per page of output.<\/p>\n<p>k spec Specify sorting order.\u00a0 Sorting syntax is<br \/>\n[+|-]key[,[+|-]key[,&#8230;]].\u00a0 Choose a multi-letter key from the<br \/>\nSTANDARD FORMAT SPECIFIERS section.\u00a0 The &#8220;+&#8221; is optional since<br \/>\ndefault direction is increasing numerical or lexicographic<br \/>\norder.\u00a0 Identical to &#8211;sort.<\/p>\n<p>Examples:<br \/>\nps jaxkuid,-ppid,+pid<br \/>\nps axk comm o comm,args<br \/>\nps kstart_time -ef<\/p>\n<p>&#8211;lines n<br \/>\nSet screen height.<\/p>\n<p>-n namelist<br \/>\nSet namelist file.\u00a0 Identical to N.\u00a0 The namelist file is<br \/>\nneeded for a proper WCHAN display, and must match the current<br \/>\nLinux kernel exactly for correct output.\u00a0 Without this option,<br \/>\nthe default search path for the namelist is:<\/p>\n<p>$PS_SYSMAP<br \/>\n$PS_SYSTEM_MAP<br \/>\n\/proc\/*\/wchan<br \/>\n\/boot\/System.map-$(uname -r)<br \/>\n\/boot\/System.map<br \/>\n\/lib\/modules\/$(uname -r)\/System.map<br \/>\n\/usr\/src\/linux\/System.map<br \/>\n\/System.map<\/p>\n<p>n\u00a0\u00a0\u00a0\u00a0\u00a0 Numeric output for WCHAN and USER (including all types of UID<br \/>\nand GID).<\/p>\n<p>N namelist<br \/>\nSpecify namelist file.\u00a0 Identical to -n, see -n above.<\/p>\n<p>&#8211;no-headers<br \/>\nPrint no header line at all.\u00a0 &#8211;no-heading is an alias for<br \/>\nthis option.<\/p>\n<p>O order<br \/>\nSorting order (overloaded).\u00a0 The BSD O option can act like -O<br \/>\n(user-defined output format with some common fields<br \/>\npredefined) or can be used to specify sort order.\u00a0 Heuristics<br \/>\nare used to determine the behavior of this option.\u00a0 To ensure<br \/>\nthat the desired behavior is obtained (sorting or formatting),<br \/>\nspecify the option in some other way (e.g.\u00a0 with -O or<br \/>\n&#8211;sort).<\/p>\n<p>For sorting, obsolete BSD O option syntax is<br \/>\nO[+|-]k1[,[+|-]k2[,&#8230;]].\u00a0 It orders the processes listing<br \/>\naccording to the multilevel sort specified by the sequence of<br \/>\none-letter short keys k1,k2, &#8230;\u00a0 described in the OBSOLETE<br \/>\nSORT KEYS section below.\u00a0 The &#8220;+&#8221; is currently optional,<br \/>\nmerely re-iterating the default direction on a key, but may<br \/>\nhelp to distinguish an O sort from an O format.\u00a0 The &#8220;-&#8221;<br \/>\nreverses direction only on the key it precedes.<\/p>\n<p>&#8211;rows n<br \/>\nSet screen height.<\/p>\n<p>S\u00a0\u00a0\u00a0\u00a0\u00a0 Sum up some information, such as CPU usage, from dead child<br \/>\nprocesses into their parent.\u00a0 This is useful for examining a<br \/>\nsystem where a parent process repeatedly forks off short-lived<br \/>\nchildren to do work.<\/p>\n<p>&#8211;sort spec<br \/>\nSpecify sorting order.\u00a0 Sorting syntax is<br \/>\n[+|-]key[,[+|-]key[,&#8230;]].\u00a0 Choose a multi-letter key from the<br \/>\nSTANDARD FORMAT SPECIFIERS section.\u00a0 The &#8220;+&#8221; is optional since<br \/>\ndefault direction is increasing numerical or lexicographic<br \/>\norder.\u00a0 Identical to k.\u00a0 For example: ps jax &#8211;sort=uid,-ppid,<br \/>\n+pid<\/p>\n<p>w\u00a0\u00a0\u00a0\u00a0\u00a0 Wide output.\u00a0 Use this option twice for unlimited width.<\/p>\n<p>-w\u00a0\u00a0\u00a0\u00a0 Wide output.\u00a0 Use this option twice for unlimited width.<\/p>\n<p>&#8211;width n<br \/>\nSet screen width.<\/p>\n<p>THREAD DISPLAY<\/p>\n<p>H\u00a0\u00a0\u00a0\u00a0\u00a0 Show threads as if they were processes.<\/p>\n<p>-L\u00a0\u00a0\u00a0\u00a0 Show threads, possibly with LWP and NLWP columns.<\/p>\n<p>m\u00a0\u00a0\u00a0\u00a0\u00a0 Show threads after processes.<\/p>\n<p>-m\u00a0\u00a0\u00a0\u00a0 Show threads after processes.<\/p>\n<p>-T\u00a0\u00a0\u00a0\u00a0 Show threads, possibly with SPID column.<\/p>\n<p>OTHER INFORMATION<\/p>\n<p>&#8211;help section<br \/>\nPrint a help message.\u00a0 The section argument can be one of<br \/>\nsimple, list, output, threads, misc or all.\u00a0 The argument can<br \/>\nbe shortened to one of the underlined letters as in:<br \/>\ns|l|o|t|m|a.<\/p>\n<p>&#8211;info Print debugging info.<\/p>\n<p>L\u00a0\u00a0\u00a0\u00a0\u00a0 List all format specifiers.<\/p>\n<p>V\u00a0\u00a0\u00a0\u00a0\u00a0 Print the procps-ng version.<\/p>\n<p>-V\u00a0\u00a0\u00a0\u00a0 Print the procps-ng version.<\/p>\n<p>&#8211;version<br \/>\nPrint the procps-ng version.<\/p>\n<p>NOTES<\/p>\n<p>This ps works by reading the virtual files in \/proc.\u00a0 This ps does<br \/>\nnot need to be setuid kmem or have any privileges to run.\u00a0 Do not<br \/>\ngive this ps any special permissions.<\/p>\n<p>This ps needs access to namelist data for proper WCHAN display.\u00a0 For<br \/>\nkernels prior to 2.6, the System.map file must be installed.<\/p>\n<p>CPU usage is currently expressed as the percentage of time spent<br \/>\nrunning during the entire lifetime of a process.\u00a0 This is not ideal,<br \/>\nand it does not conform to the standards that ps otherwise conforms<br \/>\nto.\u00a0 CPU usage is unlikely to add up to exactly 100%.<\/p>\n<p>The SIZE and RSS fields don&#8217;t count some parts of a process including<br \/>\nthe page tables, kernel stack, struct thread_info, and struct<br \/>\ntask_struct.\u00a0 This is usually at least 20 KiB of memory that is<br \/>\nalways resident.\u00a0 SIZE is the virtual size of the process (code+data+<br \/>\nstack).<\/p>\n<p>Processes marked &lt;defunct&gt; are dead processes (so-called &#8220;zombies&#8221;)<br \/>\nthat remain because their parent has not destroyed them properly.<br \/>\nThese processes will be destroyed by init(8) if the parent process<br \/>\nexits.<\/p>\n<p>If the length of the username is greater than the length of the<br \/>\ndisplay column, the numeric user ID is displayed instead.<\/p>\n<p>Commands options such as ps -aux are not recommended as it is a<br \/>\nconfusion of two different standards.\u00a0 According to the POSIX and<br \/>\nUNIX standards, the above command asks to display all processes with<br \/>\na TTY (generally the commands users are running) plus all processes<br \/>\nowned by a user named &#8220;x&#8221;.\u00a0 If that user doesn&#8217;t exist, then ps will<br \/>\nassume you really meant &#8220;ps aux&#8221;.<\/p>\n<p>PROCESS FLAGS<\/p>\n<p>The sum of these values is displayed in the &#8220;F&#8221; column, which is<br \/>\nprovided by the flags output specifier:<\/p>\n<p>1\u00a0\u00a0\u00a0 forked but didn&#8217;t exec<br \/>\n4\u00a0\u00a0\u00a0 used super-user privileges<\/p>\n<p>PROCESS STATE CODES<\/p>\n<p>Here are the different values that the s, stat and state output<br \/>\nspecifiers (header &#8220;STAT&#8221; or &#8220;S&#8221;) will display to describe the state<br \/>\nof a process:<\/p>\n<p>D\u00a0\u00a0\u00a0 uninterruptible sleep (usually IO)<br \/>\nR\u00a0\u00a0\u00a0 running or runnable (on run queue)<br \/>\nS\u00a0\u00a0\u00a0 interruptible sleep (waiting for an event to complete)<br \/>\nT\u00a0\u00a0\u00a0 stopped by job control signal<br \/>\nt\u00a0\u00a0\u00a0 stopped by debugger during the tracing<br \/>\nW\u00a0\u00a0\u00a0 paging (not valid since the 2.6.xx kernel)<br \/>\nX\u00a0\u00a0\u00a0 dead (should never be seen)<br \/>\nZ\u00a0\u00a0\u00a0 defunct (&#8220;zombie&#8221;) process, terminated but not reaped by<br \/>\nits parent<\/p>\n<p>For BSD formats and when the stat keyword is used, additional<br \/>\ncharacters may be displayed:<\/p>\n<p>&lt;\u00a0\u00a0\u00a0 high-priority (not nice to other users)<br \/>\nN\u00a0\u00a0\u00a0 low-priority (nice to other users)<br \/>\nL\u00a0\u00a0\u00a0 has pages locked into memory (for real-time and custom<br \/>\nIO)<br \/>\ns\u00a0\u00a0\u00a0 is a session leader<br \/>\nl\u00a0\u00a0\u00a0 is multi-threaded (using CLONE_THREAD, like NPTL<br \/>\npthreads do)<br \/>\n+\u00a0\u00a0\u00a0 is in the foreground process group<\/p>\n<p>OBSOLETE SORT KEYS<\/p>\n<p>These keys are used by the BSD O option (when it is used for<br \/>\nsorting).\u00a0 The GNU &#8211;sort option doesn&#8217;t use these keys, but the<br \/>\nspecifiers described below in the STANDARD FORMAT SPECIFIERS section.<br \/>\nNote that the values used in sorting are the internal values ps uses<br \/>\nand not the &#8220;cooked&#8221; values used in some of the output format fields<br \/>\n(e.g.\u00a0 sorting on tty will sort into device number, not according to<br \/>\nthe terminal name displayed).\u00a0 Pipe ps output into the sort(1)<br \/>\ncommand if you want to sort the cooked values.<\/p>\n<p>KEY\u00a0\u00a0 LONG\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DESCRIPTION<br \/>\nc\u00a0\u00a0\u00a0\u00a0 cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 simple name of executable<br \/>\nC\u00a0\u00a0\u00a0\u00a0 pcpu\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cpu utilization<br \/>\nf\u00a0\u00a0\u00a0\u00a0 flags\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 flags as in long format F field<br \/>\ng\u00a0\u00a0\u00a0\u00a0 pgrp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 process group ID<br \/>\nG\u00a0\u00a0\u00a0\u00a0 tpgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 controlling tty process group ID<br \/>\nj\u00a0\u00a0\u00a0\u00a0 cutime\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cumulative user time<br \/>\nJ\u00a0\u00a0\u00a0\u00a0 cstime\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 cumulative system time<br \/>\nk\u00a0\u00a0\u00a0\u00a0 utime\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 user time<br \/>\nm\u00a0\u00a0\u00a0\u00a0 min_flt\u00a0\u00a0\u00a0\u00a0\u00a0 number of minor page faults<br \/>\nM\u00a0\u00a0\u00a0\u00a0 maj_flt\u00a0\u00a0\u00a0\u00a0\u00a0 number of major page faults<br \/>\nn\u00a0\u00a0\u00a0\u00a0 cmin_flt\u00a0\u00a0\u00a0\u00a0 cumulative minor page faults<br \/>\nN\u00a0\u00a0\u00a0\u00a0 cmaj_flt\u00a0\u00a0\u00a0\u00a0 cumulative major page faults<br \/>\no\u00a0\u00a0\u00a0\u00a0 session\u00a0\u00a0\u00a0\u00a0\u00a0 session ID<br \/>\np\u00a0\u00a0\u00a0\u00a0 pid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 process ID<br \/>\nP\u00a0\u00a0\u00a0\u00a0 ppid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 parent process ID<br \/>\nr\u00a0\u00a0\u00a0\u00a0 rss\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 resident set size<br \/>\nR\u00a0\u00a0\u00a0\u00a0 resident\u00a0\u00a0\u00a0\u00a0 resident pages<br \/>\ns\u00a0\u00a0\u00a0\u00a0 size\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 memory size in kilobytes<br \/>\nS\u00a0\u00a0\u00a0\u00a0 share\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 amount of shared pages<br \/>\nt\u00a0\u00a0\u00a0\u00a0 tty\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 the device number of the controlling tty<br \/>\nT\u00a0\u00a0\u00a0\u00a0 start_time\u00a0\u00a0 time process was started<br \/>\nU\u00a0\u00a0\u00a0\u00a0 uid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 user ID number<br \/>\nu\u00a0\u00a0\u00a0\u00a0 user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 user name<br \/>\nv\u00a0\u00a0\u00a0\u00a0 vsize\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 total VM size in KiB<br \/>\ny\u00a0\u00a0\u00a0\u00a0 priority\u00a0\u00a0\u00a0\u00a0 kernel scheduling priority<\/p>\n<p>AIX FORMAT DESCRIPTORS<\/p>\n<p>This ps supports AIX format descriptors, which work somewhat like the<br \/>\nformatting codes of printf(1) and printf(3).\u00a0 For example, the normal<br \/>\ndefault output can be produced with this: ps -eo &#8220;%p %y %x %c&#8221;.\u00a0 The<br \/>\nNORMAL codes are described in the next section.<\/p>\n<p>CODE\u00a0\u00a0 NORMAL\u00a0\u00a0 HEADER<br \/>\n%C\u00a0\u00a0\u00a0\u00a0 pcpu\u00a0\u00a0\u00a0\u00a0 %CPU<br \/>\n%G\u00a0\u00a0\u00a0\u00a0 group\u00a0\u00a0\u00a0 GROUP<br \/>\n%P\u00a0\u00a0\u00a0\u00a0 ppid\u00a0\u00a0\u00a0\u00a0 PPID<br \/>\n%U\u00a0\u00a0\u00a0\u00a0 user\u00a0\u00a0\u00a0\u00a0 USER<br \/>\n%a\u00a0\u00a0\u00a0\u00a0 args\u00a0\u00a0\u00a0\u00a0 COMMAND<br \/>\n%c\u00a0\u00a0\u00a0\u00a0 comm\u00a0\u00a0\u00a0\u00a0 COMMAND<br \/>\n%g\u00a0\u00a0\u00a0\u00a0 rgroup\u00a0\u00a0 RGROUP<br \/>\n%n\u00a0\u00a0\u00a0\u00a0 nice\u00a0\u00a0\u00a0\u00a0 NI<br \/>\n%p\u00a0\u00a0\u00a0\u00a0 pid\u00a0\u00a0\u00a0\u00a0\u00a0 PID<br \/>\n%r\u00a0\u00a0\u00a0\u00a0 pgid\u00a0\u00a0\u00a0\u00a0 PGID<br \/>\n%t\u00a0\u00a0\u00a0\u00a0 etime\u00a0\u00a0\u00a0 ELAPSED<br \/>\n%u\u00a0\u00a0\u00a0\u00a0 ruser\u00a0\u00a0\u00a0 RUSER<br \/>\n%x\u00a0\u00a0\u00a0\u00a0 time\u00a0\u00a0\u00a0\u00a0 TIME<br \/>\n%y\u00a0\u00a0\u00a0\u00a0 tty\u00a0\u00a0\u00a0\u00a0\u00a0 TTY<br \/>\n%z\u00a0\u00a0\u00a0\u00a0 vsz\u00a0\u00a0\u00a0\u00a0\u00a0 VSZ<\/p>\n<p>STANDARD FORMAT SPECIFIERS<\/p>\n<p>Here are the different keywords that may be used to control the<br \/>\noutput format (e.g. with option -o) or to sort the selected processes<br \/>\nwith the GNU-style &#8211;sort option.<\/p>\n<p>For example: ps -eo pid,user,args &#8211;sort user<\/p>\n<p>This version of ps tries to recognize most of the keywords used in<br \/>\nother implementations of ps.<\/p>\n<p>The following user-defined format specifiers may contain spaces:<br \/>\nargs, cmd, comm, command, fname, ucmd, ucomm,<br \/>\nlstart, bsdstart, start.<\/p>\n<p>Some keywords may not be available for sorting.<\/p>\n<p>CODE\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 HEADER\u00a0\u00a0\u00a0 DESCRIPTION<\/p>\n<p>%cpu\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 %CPU\u00a0\u00a0\u00a0\u00a0\u00a0 cpu utilization of the process in &#8220;##.#&#8221;<br \/>\nformat.\u00a0 Currently, it is the CPU time used<br \/>\ndivided by the time the process has been<br \/>\nrunning (cputime\/realtime ratio), expressed as<br \/>\na percentage.\u00a0 It will not add up to 100%<br \/>\nunless you are lucky.\u00a0 (alias pcpu).<\/p>\n<p>%mem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 %MEM\u00a0\u00a0\u00a0\u00a0\u00a0 ratio of the process&#8217;s resident set size\u00a0 to<br \/>\nthe physical memory on the machine, expressed<br \/>\nas a percentage.\u00a0 (alias pmem).<\/p>\n<p>args\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0 command with all its arguments as a string.<br \/>\nModifications to the arguments may be shown.<br \/>\nThe output in this column may contain spaces.<br \/>\nA process marked &lt;defunct&gt; is partly dead,<br \/>\nwaiting to be fully destroyed by its parent.<br \/>\nSometimes the process args will be unavailable;<br \/>\nwhen this happens, ps will instead print the<br \/>\nexecutable name in brackets.\u00a0 (alias<br \/>\ncmd, command).\u00a0 See also the comm format<br \/>\nkeyword, the -f option, and the c option.<br \/>\nWhen specified last, this column will extend to<br \/>\nthe edge of the display.\u00a0 If ps can not<br \/>\ndetermine display width, as when output is<br \/>\nredirected (piped) into a file or another<br \/>\ncommand, the output width is undefined (it may<br \/>\nbe 80, unlimited, determined by the TERM<br \/>\nvariable, and so on).\u00a0 The COLUMNS environment<br \/>\nvariable or &#8211;cols option may be used to<br \/>\nexactly determine the width in this case.\u00a0 The<br \/>\nw or -w option may be also be used to adjust<br \/>\nwidth.<\/p>\n<p>blocked\u00a0\u00a0\u00a0\u00a0 BLOCKED\u00a0\u00a0 mask of the blocked signals, see signal(7).<br \/>\nAccording to the width of the field, a 32 or<br \/>\n64-bit mask in hexadecimal format is displayed.<br \/>\n(alias sig_block, sigmask).<\/p>\n<p>bsdstart\u00a0\u00a0\u00a0 START\u00a0\u00a0\u00a0\u00a0 time the command started.\u00a0 If the process was<br \/>\nstarted less than 24 hours ago, the output<br \/>\nformat is &#8221; HH:MM&#8221;, else it is &#8221; Mmm:SS&#8221; (where<br \/>\nMmm is the three letters of the month).\u00a0 See<br \/>\nalso lstart, start, start_time, and stime.<\/p>\n<p>bsdtime\u00a0\u00a0\u00a0\u00a0 TIME\u00a0\u00a0\u00a0\u00a0\u00a0 accumulated cpu time, user + system.\u00a0 The<br \/>\ndisplay format is usually &#8220;MMM:SS&#8221;, but can be<br \/>\nshifted to the right if the process used more<br \/>\nthan 999 minutes of cpu time.<\/p>\n<p>c\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 C\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 processor utilization. Currently, this is the<br \/>\ninteger value of the percent usage over the<br \/>\nlifetime of the process.\u00a0 (see %cpu).<\/p>\n<p>caught\u00a0\u00a0\u00a0\u00a0\u00a0 CAUGHT\u00a0\u00a0\u00a0 mask of the caught signals, see signal(7).<br \/>\nAccording to the width of the field, a 32 or 64<br \/>\nbits mask in hexadecimal format is displayed.<br \/>\n(alias sig_catch, sigcatch).<\/p>\n<p>cgroup\u00a0\u00a0\u00a0\u00a0\u00a0 CGROUP\u00a0\u00a0\u00a0 display control groups to which the process<br \/>\nbelongs.<\/p>\n<p>class\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CLS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 scheduling class of the process.\u00a0 (alias<br \/>\npolicy, cls).\u00a0 Field&#8217;s possible values are:<\/p>\n<p>&#8211;\u00a0\u00a0 not reported<br \/>\nTS\u00a0 SCHED_OTHER<br \/>\nFF\u00a0 SCHED_FIFO<br \/>\nRR\u00a0 SCHED_RR<br \/>\nB\u00a0\u00a0 SCHED_BATCH<br \/>\nISO SCHED_ISO<br \/>\nIDL SCHED_IDLE<br \/>\n?\u00a0\u00a0 unknown value<\/p>\n<p>cls\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CLS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 scheduling class of the process.\u00a0 (alias<br \/>\npolicy, cls).\u00a0 Field&#8217;s possible values are:<\/p>\n<p>&#8211;\u00a0\u00a0 not reported<br \/>\nTS\u00a0 SCHED_OTHER<br \/>\nFF\u00a0 SCHED_FIFO<br \/>\nRR\u00a0 SCHED_RR<br \/>\nB\u00a0\u00a0 SCHED_BATCH<br \/>\nISO SCHED_ISO<br \/>\nIDL SCHED_IDLE<br \/>\n?\u00a0\u00a0 unknown value<\/p>\n<p>cmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CMD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see args.\u00a0 (alias args, command).<\/p>\n<p>comm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0 command name (only the executable name).<br \/>\nModifications to the command name will not be<br \/>\nshown.\u00a0 A process marked &lt;defunct&gt; is partly<br \/>\ndead, waiting to be fully destroyed by its<br \/>\nparent.\u00a0 The output in this column may contain<br \/>\nspaces.\u00a0 (alias ucmd, ucomm).\u00a0 See also the<br \/>\nargs format keyword, the -f option, and the c<br \/>\noption.<br \/>\nWhen specified last, this column will extend to<br \/>\nthe edge of the display.\u00a0 If ps can not<br \/>\ndetermine display width, as when output is<br \/>\nredirected (piped) into a file or another<br \/>\ncommand, the output width is undefined (it may<br \/>\nbe 80, unlimited, determined by the TERM<br \/>\nvariable, and so on).\u00a0 The COLUMNS environment<br \/>\nvariable or &#8211;cols option may be used to<br \/>\nexactly determine the width in this case.\u00a0 The<br \/>\nw or -w option may be also be used to adjust<br \/>\nwidth.<\/p>\n<p>command\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0 See args.\u00a0 (alias args, command).<\/p>\n<p>cp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 per-mill (tenths of a percent) CPU usage.\u00a0 (see<br \/>\n%cpu).<\/p>\n<p>cputime\u00a0\u00a0\u00a0\u00a0 TIME\u00a0\u00a0\u00a0\u00a0\u00a0 cumulative CPU time, &#8220;[DD-]hh:mm:ss&#8221; format.<br \/>\n(alias time).<\/p>\n<p>drs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 DRS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 data resident set size, the amount of physical<br \/>\nmemory devoted to other than executable code.<\/p>\n<p>egid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EGID\u00a0\u00a0\u00a0\u00a0\u00a0 effective group ID number of the process as a<br \/>\ndecimal integer.\u00a0 (alias gid).<\/p>\n<p>egroup\u00a0\u00a0\u00a0\u00a0\u00a0 EGROUP\u00a0\u00a0\u00a0 effective group ID of the process.\u00a0 This will<br \/>\nbe the textual group ID, if it can be obtained<br \/>\nand the field width permits, or a decimal<br \/>\nrepresentation otherwise.\u00a0 (alias group).<\/p>\n<p>eip\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EIP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 instruction pointer.<\/p>\n<p>esp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ESP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 stack pointer.<\/p>\n<p>etime\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 ELAPSED\u00a0\u00a0 elapsed time since the process was started, in<br \/>\nthe form [[DD-]hh:]mm:ss.<\/p>\n<p>etimes\u00a0\u00a0\u00a0\u00a0\u00a0 ELAPSED\u00a0\u00a0 elapsed time since the process was started, in<br \/>\nseconds.<\/p>\n<p>euid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EUID\u00a0\u00a0\u00a0\u00a0\u00a0 effective user ID (alias uid).<\/p>\n<p>euser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 EUSER\u00a0\u00a0\u00a0\u00a0 effective user name.\u00a0 This will be the textual<br \/>\nuser ID, if it can be obtained and the field<br \/>\nwidth permits, or a decimal representation<br \/>\notherwise.\u00a0 The n option can be used to force<br \/>\nthe decimal representation.\u00a0 (alias<br \/>\nuname, user).<\/p>\n<p>f\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 F\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 flags associated with the process, see the<br \/>\nPROCESS FLAGS section.\u00a0 (alias flag, flags).<\/p>\n<p>fgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FGID\u00a0\u00a0\u00a0\u00a0\u00a0 filesystem access group ID.\u00a0 (alias fsgid).<\/p>\n<p>fgroup\u00a0\u00a0\u00a0\u00a0\u00a0 FGROUP\u00a0\u00a0\u00a0 filesystem access group ID.\u00a0 This will be the<br \/>\ntextual group ID, if it can be obtained and the<br \/>\nfield width permits, or a decimal<br \/>\nrepresentation otherwise.\u00a0 (alias fsgroup).<\/p>\n<p>flag\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 F\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see f.\u00a0 (alias f, flags).<\/p>\n<p>flags\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 F\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see f.\u00a0 (alias f, flag).<\/p>\n<p>fname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0 first 8 bytes of the base name of the process&#8217;s<br \/>\nexecutable file.\u00a0 The output in this column may<br \/>\ncontain spaces.<\/p>\n<p>fuid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FUID\u00a0\u00a0\u00a0\u00a0\u00a0 filesystem access user ID.\u00a0 (alias fsuid).<\/p>\n<p>fuser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 FUSER\u00a0\u00a0\u00a0\u00a0 filesystem access user ID.\u00a0 This will be the<br \/>\ntextual user ID, if it can be obtained and the<br \/>\nfield width permits, or a decimal<br \/>\nrepresentation otherwise.<\/p>\n<p>gid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see egid.\u00a0 (alias egid).<\/p>\n<p>group\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 GROUP\u00a0\u00a0\u00a0\u00a0 see egroup.\u00a0 (alias egroup).<\/p>\n<p>ignored\u00a0\u00a0\u00a0\u00a0 IGNORED\u00a0\u00a0 mask of the ignored signals, see signal(7).<br \/>\nAccording to the width of the field, a 32 or 64<br \/>\nbits mask in hexadecimal format is displayed.<br \/>\n(alias sig_ignore, sigignore).<\/p>\n<p>ipcns\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 IPCNS\u00a0\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>label\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LABEL\u00a0\u00a0\u00a0\u00a0 security label, most commonly used for SELinux<br \/>\ncontext data.\u00a0 This is for the Mandatory Access<br \/>\nControl (&#8220;MAC&#8221;) found on high-security systems.<\/p>\n<p>lstart\u00a0\u00a0\u00a0\u00a0\u00a0 STARTED\u00a0\u00a0 time the command started.\u00a0 See also<br \/>\nbsdstart, start, start_time, and stime.<\/p>\n<p>lsession\u00a0\u00a0\u00a0 SESSION\u00a0\u00a0 displays the login session identifier of a<br \/>\nprocess, if systemd support has been included.<\/p>\n<p>lwp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 LWP\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 light weight process (thread) ID of the<br \/>\ndispatchable entity (alias spid, tid).\u00a0 See tid<br \/>\nfor additional information.<\/p>\n<p>machine\u00a0\u00a0\u00a0\u00a0 MACHINE\u00a0\u00a0 displays the machine name for processes<br \/>\nassigned to VM or container, if systemd support<br \/>\nhas been included.<\/p>\n<p>maj_flt\u00a0\u00a0\u00a0\u00a0 MAJFLT\u00a0\u00a0\u00a0 The number of major page faults that have<br \/>\noccurred with this process.<\/p>\n<p>min_flt\u00a0\u00a0\u00a0\u00a0 MINFLT\u00a0\u00a0\u00a0 The number of minor page faults that have<br \/>\noccurred with this process.<\/p>\n<p>mntns\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 MNTNS\u00a0\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>netns\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NETNS\u00a0\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>ni\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 nice value. This ranges from 19 (nicest) to -20<br \/>\n(not nice to others), see nice(1).\u00a0 (alias<br \/>\nnice).<\/p>\n<p>nice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see ni.(alias ni).<\/p>\n<p>nlwp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 NLWP\u00a0\u00a0\u00a0\u00a0\u00a0 number of lwps (threads) in the process.<br \/>\n(alias thcount).<\/p>\n<p>nwchan\u00a0\u00a0\u00a0\u00a0\u00a0 WCHAN\u00a0\u00a0\u00a0\u00a0 address of the kernel function where the<br \/>\nprocess is sleeping (use wchan if you want the<br \/>\nkernel function name).\u00a0 Running tasks will<br \/>\ndisplay a dash (&#8216;-&#8216;) in this column.<\/p>\n<p>ouid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 OWNER\u00a0\u00a0\u00a0\u00a0 displays the Unix user identifier of the owner<br \/>\nof the session of a process, if systemd support<br \/>\nhas been included.<\/p>\n<p>pcpu\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 %CPU\u00a0\u00a0\u00a0\u00a0\u00a0 see %cpu.\u00a0 (alias %cpu).<\/p>\n<p>pending\u00a0\u00a0\u00a0\u00a0 PENDING\u00a0\u00a0 mask of the pending signals. See signal(7).<br \/>\nSignals pending on the process are distinct<br \/>\nfrom signals pending on individual threads.<br \/>\nUse the m option or the -m option to see both.<br \/>\nAccording to the width of the field, a 32 or 64<br \/>\nbits mask in hexadecimal format is displayed.<br \/>\n(alias sig).<\/p>\n<p>pgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PGID\u00a0\u00a0\u00a0\u00a0\u00a0 process group ID or, equivalently, the process<br \/>\nID of the process group leader.\u00a0 (alias pgrp).<\/p>\n<p>pgrp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PGRP\u00a0\u00a0\u00a0\u00a0\u00a0 see pgid.\u00a0 (alias pgid).<\/p>\n<p>pid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 a number representing the process ID (alias<br \/>\ntgid).<\/p>\n<p>pidns\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PIDNS\u00a0\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>pmem\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 %MEM\u00a0\u00a0\u00a0\u00a0\u00a0 see %mem.\u00a0 (alias %mem).<\/p>\n<p>policy\u00a0\u00a0\u00a0\u00a0\u00a0 POL\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 scheduling class of the process.\u00a0 (alias<br \/>\nclass, cls).\u00a0 Possible values are:<\/p>\n<p>&#8211;\u00a0\u00a0 not reported<br \/>\nTS\u00a0 SCHED_OTHER<br \/>\nFF\u00a0 SCHED_FIFO<br \/>\nRR\u00a0 SCHED_RR<br \/>\nB\u00a0\u00a0 SCHED_BATCH<br \/>\nISO SCHED_ISO<br \/>\nIDL SCHED_IDLE<br \/>\n?\u00a0\u00a0 unknown value<\/p>\n<p>ppid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PPID\u00a0\u00a0\u00a0\u00a0\u00a0 parent process ID.<\/p>\n<p>pri\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PRI\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 priority of the process.\u00a0 Higher number means<br \/>\nlower priority.<\/p>\n<p>psr\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PSR\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 processor that process is currently assigned<br \/>\nto.<\/p>\n<p>rgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RGID\u00a0\u00a0\u00a0\u00a0\u00a0 real group ID.<\/p>\n<p>rgroup\u00a0\u00a0\u00a0\u00a0\u00a0 RGROUP\u00a0\u00a0\u00a0 real group name.\u00a0 This will be the textual<br \/>\ngroup ID, if it can be obtained and the field<br \/>\nwidth permits, or a decimal representation<br \/>\notherwise.<\/p>\n<p>rss\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RSS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 resident set size, the non-swapped physical<br \/>\nmemory that a task has used (in kiloBytes).<br \/>\n(alias rssize, rsz).<\/p>\n<p>rssize\u00a0\u00a0\u00a0\u00a0\u00a0 RSS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see rss.\u00a0 (alias rss, rsz).<\/p>\n<p>rsz\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RSZ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see rss.\u00a0 (alias rss, rssize).<\/p>\n<p>rtprio\u00a0\u00a0\u00a0\u00a0\u00a0 RTPRIO\u00a0\u00a0\u00a0 realtime priority.<\/p>\n<p>ruid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RUID\u00a0\u00a0\u00a0\u00a0\u00a0 real user ID.<\/p>\n<p>ruser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 RUSER\u00a0\u00a0\u00a0\u00a0 real user ID.\u00a0 This will be the textual user<br \/>\nID, if it can be obtained and the field width<br \/>\npermits, or a decimal representation otherwise.<\/p>\n<p>s\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 S\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 minimal state display (one character).\u00a0 See<br \/>\nsection PROCESS STATE CODES for the different<br \/>\nvalues.\u00a0 See also stat if you want additional<br \/>\ninformation displayed.\u00a0 (alias state).<\/p>\n<p>sched\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SCH\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 scheduling policy of the process.\u00a0 The policies<br \/>\nSCHED_OTHER (SCHED_NORMAL), SCHED_FIFO,<br \/>\nSCHED_RR, SCHED_BATCH, SCHED_ISO, and<br \/>\nSCHED_IDLE are respectively displayed as 0, 1,<br \/>\n2, 3, 4, and 5.<\/p>\n<p>seat\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SEAT\u00a0\u00a0\u00a0\u00a0\u00a0 displays the identifier associated with all<br \/>\nhardware devices assigned to a specific<br \/>\nworkplace, if systemd support has been<br \/>\nincluded.<\/p>\n<p>sess\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SESS\u00a0\u00a0\u00a0\u00a0\u00a0 session ID or, equivalently, the process ID of<br \/>\nthe session leader.\u00a0 (alias session, sid).<\/p>\n<p>sgi_p\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 P\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 processor that the process is currently<br \/>\nexecuting on.\u00a0 Displays &#8220;*&#8221; if the process is<br \/>\nnot currently running or runnable.<\/p>\n<p>sgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SGID\u00a0\u00a0\u00a0\u00a0\u00a0 saved group ID.\u00a0 (alias svgid).<\/p>\n<p>sgroup\u00a0\u00a0\u00a0\u00a0\u00a0 SGROUP\u00a0\u00a0\u00a0 saved group name.\u00a0 This will be the textual<br \/>\ngroup ID, if it can be obtained and the field<br \/>\nwidth permits, or a decimal representation<br \/>\notherwise.<\/p>\n<p>sid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see sess.\u00a0 (alias sess, session).<\/p>\n<p>sig\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PENDING\u00a0\u00a0 see pending.\u00a0 (alias pending, sig_pend).<\/p>\n<p>sigcatch\u00a0\u00a0\u00a0 CAUGHT\u00a0\u00a0\u00a0 see caught.\u00a0 (alias caught, sig_catch).<\/p>\n<p>sigignore\u00a0\u00a0 IGNORED\u00a0\u00a0 see ignored.\u00a0 (alias ignored, sig_ignore).<\/p>\n<p>sigmask\u00a0\u00a0\u00a0\u00a0 BLOCKED\u00a0\u00a0 see blocked.\u00a0 (alias blocked, sig_block).<\/p>\n<p>size\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SIZE\u00a0\u00a0\u00a0\u00a0\u00a0 approximate amount of swap space that would be<br \/>\nrequired if the process were to dirty all<br \/>\nwritable pages and then be swapped out.\u00a0 This<br \/>\nnumber is very rough!<\/p>\n<p>slice\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SLICE\u00a0\u00a0\u00a0\u00a0 displays the slice unit which a process belongs<br \/>\nto, if systemd support has been included.<\/p>\n<p>spid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SPID\u00a0\u00a0\u00a0\u00a0\u00a0 see lwp.\u00a0 (alias lwp, tid).<\/p>\n<p>stackp\u00a0\u00a0\u00a0\u00a0\u00a0 STACKP\u00a0\u00a0\u00a0 address of the bottom (start) of stack for the<br \/>\nprocess.<\/p>\n<p>start\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STARTED\u00a0\u00a0 time the command started.\u00a0 If the process was<br \/>\nstarted less than 24 hours ago, the output<br \/>\nformat is &#8220;HH:MM:SS&#8221;, else it is &#8221;\u00a0 Mmm dd&#8221;<br \/>\n(where Mmm is a three-letter month name).\u00a0 See<br \/>\nalso lstart, bsdstart, start_time, and stime.<\/p>\n<p>start_time\u00a0 START\u00a0\u00a0\u00a0\u00a0 starting time or date of the process.\u00a0 Only the<br \/>\nyear will be displayed if the process was not<br \/>\nstarted the same year ps was invoked, or<br \/>\n&#8220;MmmDD&#8221; if it was not started the same day, or<br \/>\n&#8220;HH:MM&#8221; otherwise.\u00a0 See also<br \/>\nbsdstart, start, lstart, and stime.<\/p>\n<p>stat\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 STAT\u00a0\u00a0\u00a0\u00a0\u00a0 multi-character process state.\u00a0 See section<br \/>\nPROCESS STATE CODES for the different values<br \/>\nmeaning.\u00a0 See also s and state if you just want<br \/>\nthe first character displayed.<\/p>\n<p>state\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 S\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see s. (alias s).<\/p>\n<p>suid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SUID\u00a0\u00a0\u00a0\u00a0\u00a0 saved user ID.\u00a0 (alias svuid).<\/p>\n<p>supgid\u00a0\u00a0\u00a0\u00a0\u00a0 SUPGID\u00a0\u00a0\u00a0 group ids of supplementary groups, if any.\u00a0 See<br \/>\ngetgroups(2).<\/p>\n<p>supgrp\u00a0\u00a0\u00a0\u00a0\u00a0 SUPGRP\u00a0\u00a0\u00a0 group names of supplementary groups, if any.<br \/>\nSee getgroups(2).<\/p>\n<p>suser\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SUSER\u00a0\u00a0\u00a0\u00a0 saved user name.\u00a0 This will be the textual user<br \/>\nID, if it can be obtained and the field width<br \/>\npermits, or a decimal representation otherwise.<br \/>\n(alias svuser).<\/p>\n<p>svgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SVGID\u00a0\u00a0\u00a0\u00a0 see sgid.\u00a0 (alias sgid).<\/p>\n<p>svuid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SVUID\u00a0\u00a0\u00a0\u00a0 see suid.\u00a0 (alias suid).<\/p>\n<p>sz\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 SZ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 size in physical pages of the core image of the<br \/>\nprocess.\u00a0 This includes text, data, and stack<br \/>\nspace.\u00a0 Device mappings are currently excluded;<br \/>\nthis is subject to change.\u00a0 See vsz and rss.<\/p>\n<p>tgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TGID\u00a0\u00a0\u00a0\u00a0\u00a0 a number representing the thread group to which<br \/>\na task belongs (alias pid).\u00a0 It is the process<br \/>\nID of the thread group leader.<\/p>\n<p>thcount\u00a0\u00a0\u00a0\u00a0 THCNT\u00a0\u00a0\u00a0\u00a0 see nlwp.\u00a0 (alias nlwp).\u00a0 number of kernel<br \/>\nthreads owned by the process.<\/p>\n<p>tid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 the unique number representing a dispatchable<br \/>\nentity (alias lwp, spid).\u00a0 This value may also<br \/>\nappear as: a process ID (pid); a process group<br \/>\nID (pgrp); a session ID for the session leader<br \/>\n(sid); a thread group ID for the thread group<br \/>\nleader (tgid); and a tty process group ID for<br \/>\nthe process group leader (tpgid).<\/p>\n<p>time\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TIME\u00a0\u00a0\u00a0\u00a0\u00a0 cumulative CPU time, &#8220;[DD-]HH:MM:SS&#8221; format.<br \/>\n(alias cputime).<\/p>\n<p>tname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TTY\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 controlling tty (terminal).\u00a0 (alias tt, tty).<\/p>\n<p>tpgid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TPGID\u00a0\u00a0\u00a0\u00a0 ID of the foreground process group on the tty<br \/>\n(terminal) that the process is connected to, or<br \/>\n-1 if the process is not connected to a tty.<\/p>\n<p>trs\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TRS\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 text resident set size, the amount of physical<br \/>\nmemory devoted to executable code.<\/p>\n<p>tt\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 controlling tty (terminal).\u00a0 (alias<br \/>\ntname, tty).<\/p>\n<p>tty\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 TT\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 controlling tty (terminal).\u00a0 (alias tname, tt).<\/p>\n<p>ucmd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 CMD\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see comm.\u00a0 (alias comm, ucomm).<\/p>\n<p>ucomm\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 COMMAND\u00a0\u00a0 see comm.\u00a0 (alias comm, ucmd).<\/p>\n<p>uid\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 UID\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see euid.\u00a0 (alias euid).<\/p>\n<p>uname\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 USER\u00a0\u00a0\u00a0\u00a0\u00a0 see euser.\u00a0 (alias euser, user).<\/p>\n<p>unit\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 UNIT\u00a0\u00a0\u00a0\u00a0\u00a0 displays unit which a process belongs to, if<br \/>\nsystemd support has been included.<\/p>\n<p>user\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 USER\u00a0\u00a0\u00a0\u00a0\u00a0 see euser.\u00a0 (alias euser, uname).<\/p>\n<p>userns\u00a0\u00a0\u00a0\u00a0\u00a0 USERNS\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>utsns\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 UTSNS\u00a0\u00a0\u00a0\u00a0 Unique inode number describing the namespace<br \/>\nthe process belongs to. See namespaces(7).<\/p>\n<p>uunit\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 UUNIT\u00a0\u00a0\u00a0\u00a0 displays user unit which a process belongs to,<br \/>\nif systemd support has been included.<\/p>\n<p>vsize\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VSZ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 see vsz.\u00a0 (alias vsz).<\/p>\n<p>vsz\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 VSZ\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 virtual memory size of the process in KiB<br \/>\n(1024-byte units).\u00a0 Device mappings are<br \/>\ncurrently excluded; this is subject to change.<br \/>\n(alias vsize).<\/p>\n<p>wchan\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 WCHAN\u00a0\u00a0\u00a0\u00a0 name of the kernel function in which the<br \/>\nprocess is sleeping, a &#8220;-&#8221; if the process is<br \/>\nrunning, or a &#8220;*&#8221; if the process is<br \/>\nmulti-threaded and ps is not displaying<br \/>\nthreads.<\/p>\n<p>ENVIRONMENT VARIABLES<\/p>\n<p>The following environment variables could affect ps:<\/p>\n<p>COLUMNS<br \/>\nOverride default display width.<\/p>\n<p>LINES<br \/>\nOverride default display height.<\/p>\n<p>PS_PERSONALITY<br \/>\nSet to one of posix, old, linux, bsd, sun, digital&#8230;\u00a0 (see<br \/>\nsection PERSONALITY below).<\/p>\n<p>CMD_ENV<br \/>\nSet to one of posix, old, linux, bsd, sun, digital&#8230;\u00a0 (see<br \/>\nsection PERSONALITY below).<\/p>\n<p>I_WANT_A_BROKEN_PS<br \/>\nForce obsolete command line interpretation.<\/p>\n<p>LC_TIME<br \/>\nDate format.<\/p>\n<p>PS_COLORS<br \/>\nNot currently supported.<\/p>\n<p>PS_FORMAT<br \/>\nDefault output format override. You may set this to a format<br \/>\nstring of the type used for the -o option.\u00a0 The DefSysV and DefBSD<br \/>\nvalues are particularly useful.<\/p>\n<p>PS_SYSMAP<br \/>\nDefault namelist (System.map) location.<\/p>\n<p>PS_SYSTEM_MAP<br \/>\nDefault namelist (System.map) location.<\/p>\n<p>POSIXLY_CORRECT<br \/>\nDon&#8217;t find excuses to ignore bad &#8220;features&#8221;.<\/p>\n<p>POSIX2<br \/>\nWhen set to &#8220;on&#8221;, acts as POSIXLY_CORRECT.<\/p>\n<p>UNIX95<br \/>\nDon&#8217;t find excuses to ignore bad &#8220;features&#8221;.<\/p>\n<p>_XPG<br \/>\nCancel CMD_ENV=irix non-standard behavior.<\/p>\n<p>In general, it is a bad idea to set these variables.\u00a0 The one<br \/>\nexception is CMD_ENV or PS_PERSONALITY, which could be set to Linux<br \/>\nfor normal systems.\u00a0 Without that setting, ps follows the useless and<br \/>\nbad parts of the Unix98 standard.<\/p>\n<p>PERSONALITY<\/p>\n<p>390\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like the OS\/390 OpenEdition ps<\/p>\n<p>aix\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like AIX ps<br \/>\nbsd\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like FreeBSD ps (totally non-standard)<br \/>\ncompaq\u00a0\u00a0\u00a0\u00a0 like Digital Unix ps<br \/>\ndebian\u00a0\u00a0\u00a0\u00a0 like the old Debian ps<br \/>\ndigital\u00a0\u00a0\u00a0 like Tru64 (was Digital Unix, was OSF\/1) ps<br \/>\ngnu\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like the old Debian ps<br \/>\nhp\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like HP-UX ps<br \/>\nhpux\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like HP-UX ps<br \/>\nirix\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like Irix ps<br \/>\nlinux\u00a0\u00a0\u00a0\u00a0\u00a0 ***** recommended *****<br \/>\nold\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like the original Linux ps (totally non-standard)<br \/>\nos390\u00a0\u00a0\u00a0\u00a0\u00a0 like OS\/390 Open Edition ps<br \/>\nposix\u00a0\u00a0\u00a0\u00a0\u00a0 standard<br \/>\ns390\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like OS\/390 Open Edition ps<br \/>\nsco\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like SCO ps<br \/>\nsgi\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 like Irix ps<br \/>\nsolaris2\u00a0\u00a0 like Solaris 2+ (SunOS 5) ps<br \/>\nsunos4\u00a0\u00a0\u00a0\u00a0 like SunOS 4 (Solaris 1) ps (totally non-standard)<br \/>\nsvr4\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 standard<br \/>\nsysv\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 standard<br \/>\ntru64\u00a0\u00a0\u00a0\u00a0\u00a0 like Tru64 (was Digital Unix, was OSF\/1) ps<br \/>\nunix\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 standard<br \/>\nunix95\u00a0\u00a0\u00a0\u00a0 standard<br \/>\nunix98\u00a0\u00a0\u00a0\u00a0 standard<\/p>\n<p>SEE ALSO<\/p>\n<p>pgrep(1), pstree(1), top(1), proc(5).<\/p>\n<p>STANDARDS<\/p>\n<p>This ps conforms to:<\/p>\n<p>1\u00a0\u00a0 Version 2 of the Single Unix Specification<br \/>\n2\u00a0\u00a0 The Open Group Technical Standard Base Specifications, Issue 6<br \/>\n3\u00a0\u00a0 IEEE Std 1003.1, 2004 Edition<br \/>\n4\u00a0\u00a0 X\/Open System Interfaces Extension [UP XSI]<br \/>\n5\u00a0\u00a0 ISO\/IEC 9945:2003<\/p>\n<p>AUTHOR<\/p>\n<p>ps was originally written by Branko Lankester \u27e8lankeste@fwi.uva.nl\u27e9.<br \/>\nMichael K. Johnson \u27e8johnsonm@redhat.com\u27e9 re-wrote it significantly to<br \/>\nuse the proc filesystem, changing a few things in the process.<br \/>\nMichael Shields \u27e8mjshield@nyx.cs.du.edu\u27e9 added the pid-list feature.<br \/>\nCharles Blake \u27e8cblake@bbn.com\u27e9 added multi-level sorting, the<br \/>\ndirent-style library, the device name-to-number mmaped database, the<br \/>\napproximate binary search directly on System.map, and many code and<br \/>\ndocumentation cleanups.\u00a0 David Mossberger-Tang wrote the generic BFD<br \/>\nsupport for psupdate.\u00a0 Albert Cahalan \u27e8albert@users.sf.net\u27e9 rewrote<br \/>\nps for full Unix98 and BSD support, along with some ugly hacks for<br \/>\nobsolete and foreign syntax.<\/p>\n<p>Please send bug reports to \u27e8procps@freelists.org\u27e9.\u00a0 No subscription<br \/>\nis required or suggested.<\/p>\n<p>COLOPHON<\/p>\n<p>This page is part of the procps-ng (\/proc filesystem utilities)<br \/>\nproject.\u00a0 Information about the project can be found at<br \/>\n\u27e8http:\/\/sourceforge.net\/projects\/procps-ng\/\u27e9.\u00a0 If you have a bug<br \/>\nreport for this manual page, see<br \/>\n\u27e8http:\/\/sourceforge.net\/p\/procps-ng\/tickets\/\u27e9.\u00a0 This page was obtained<br \/>\nfrom the project&#8217;s upstream Git repository<br \/>\n(https:\/\/gitorious.org\/procps) on 2014-12-30.\u00a0 If you discover any<br \/>\nrendering problems in this HTML version of the page, or you believe<br \/>\nthere is a better or more up-to-date source for the page, or you have<br \/>\ncorrections or improvements to the information in this COLOPHON<br \/>\n(which is not part of the original manual page), send a mail to<br \/>\nman-pages@man7.org<\/p>\n<p>procps-ng\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 July 2014\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PS(1)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>PS(1)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 User Commands\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 PS(1) NAME ps &#8211; report a snapshot of the current processes. SYNOPSIS ps [options] DESCRIPTION ps displays information about a selection of the active processes. If you want a repetitive update of the selection and the displayed information, use top(1) instead. This version of ps accepts several kinds of options: 1\u00a0\u00a0 UNIX [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_sitemap_exclude":false,"_sitemap_priority":"","_sitemap_frequency":"","footnotes":""},"categories":[8],"tags":[],"class_list":["post-337","post","type-post","status-publish","format-standard","hentry","category-shell"],"a3_pvc":{"activated":false,"total_views":0,"today_views":0},"_links":{"self":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/337","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=337"}],"version-history":[{"count":0,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=\/wp\/v2\/posts\/337\/revisions"}],"wp:attachment":[{"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=337"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=337"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxboxen.dk\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=337"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}