Name
ps
Synopsis
ps [options]
Reports on active processes. Note that you do not need to include a - before options. In options, list arguments should either be separated by commas or be put in double quotes.
Options
-
a List all processes.
-
c List the command name without the path.
-
e Include environment.
-
h Includes a header with each page of information.
-
j List information for keywords:
user,pid,ppid,pgid,sess,jobc,state,tt,time, andcommand.-
L List all keywords.
-
l List information for keywords:
uid,pid,ppid,cpu,pri,nice,vsz,rss,wchan,state,tt,time, andcommand.-
M List each tasks threads.
-
m Sort by memory usage.
-
O Appends the keywords that are in a list after the process ID. The title of the keyword can be changed by using an = sign after the keyword. (keyword=newtitle)
-
o Same as
Oexcept it uses only the supplied keywords for the output ofps.-
p List information for the supplied PID.
-
r List by cpu rather than by PID.
-
S Include child processes’ CPU time and page faults.
-
T List information for standard input process.
-
ttty Display only processes running on tty.
-
U List processes belonging to username.
-
u List information for keywords:
user,pid,%cpu,%mem,vsz,rss,tt,state,start,time, andcommand. The listing will be as if the-roption was supplied tops.-
v List information for keywords:
pid,state,time,sl,re,pagein,vsz,rss,lim,tsiz,%cpu,%mem, andcommand. The listing will be as if the-moption was supplied tops.-
w Wide format. Don’t truncate ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access