• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

ps

ps

ps Displays process status report.
ps [-aCcefhjMmrSTuvwx] [-O <fmt>] [-o <fmt>] [-p <pid>] [-t <tty>] [-U
<username>]

ps [-L]

-a Includes information about processes owned by others in addition to yours.
-C Changes the way CPU percentage is calculated by using a raw CPU calculation that ignores resident time. This normally has no effect.
-c Changes the command column output to contain just the executable name rather than the full command line.
-e Displays the environment as well.
-f Shows command-line and environment information about swapped-out processes. This is honored only if the user's user ID is 0.
-h Repeats the header information so that there is one header per page of information.
-j Prints information associated with the following keywords: user, pid, ppid, pgid, sess, jobc, state, tt, time, and command.
-l Displays information associated with the following keywords: uid, pid, ppid, cpu, pri, nice, vsz, rss, wchan, state, tt, time, and command.
-M Prints the threads corresponding with each taskll.
-m Sorts by memory usage, rather than by process ID.
-r Sorts by current CPU usage, rather than by process ID.
-S Changes the way the process time is calculated by summing all exited children to their parent process.
-T Displays information about processes attached to the device associated with standard output.
-u Displays information associated with the following keywords: user, pid, %cpu, %mem, vsz, rss, tt, state, start, time, and command. The -u option implies the -r option.
-v Displays information associated with the following keywords: pid, state, time, sl, re, pagein, vsz, rss, lim, tsiz, %cpu, %mem, and command. The -v option implies the -m option.
-w Uses 132 columns to display information, instead of the default, which is your window size. If -w option is specified more than once, ps uses as many columns as necessary, regardless of your window size.
-x Displays information about processes without controlling terminals.
-O <fmt> Adds the information associated with the space or comma separated list of keywords specified, after the process ID, in the default information displayed. Keywords may be further defined with an = and a string. Keywords further specified in this manner are displayed in the header as specified rather than using the standard header.
-o <fmt> Displays information associated with the space or comma-separated list of keywords specified. Keywords may be further defined with an = and a string. Keywords further specified in this manner are displayed in the header as specified rather than using the standard header.
-p <pid> Displays information associated with the specified process ID <pid>.
-t <tty> Displays information about processes attached to the specified terminal device <tty>.
-U <usernam> Displays information about processes belonging to the specified <username>.
-L Lists the set of available keywords.
The following is a list of the definitions of the keywords that some of the options already include. More keywords are available than are defined here.
%cpu Percentage CPU usage (alias pcpu).
%mem Percentage memory usage (alias pmem).
command Command and arguments.
cpu Short-term CPU usage factor (for scheduling).
jobc Job control count.
lim Memory use limit.
nice Nice value (alias to ni).
pagein Pageins (total page faults).
pgid Process group number.
pid Process ID.
ppid Parent process ID.
pri Scheduling priority.
re Core residency time (in seconds; 127 = infinity).
rss Resident set size (real memory).
rsz Resident set size + (text size/text use count) (alias rs-size).
sess Session pointer.
sl Sleep time (in seconds; 127 = infinity) .
start Time started.
state Symbolic process state (alias stat).
tsiz Text size (in kilobytes).
tt Control terminal name (two-letter abbreviation).
uid Effective user ID.
user Username (from uid).
vsz Size of process in virtual memory in kilobytes (alias vsize).
wchan Wait channel (as a symbolic name).



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint