Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

When typing ps aux, what does each column of the output mean? For example

$ ps aux  
timothy  29217  0.0  0.0 11916 4560 pts/21   S+   08:15   0:00 pine  
root     29505  0.0  0.0 38196 2728 ?        Ss   Mar07   0:00 sshd: can [priv]   
can      29529  0.0  0.0 38332 1904 ?        S    Mar07   0:00 sshd: can@notty   

Thanks and regards!

share|improve this question

3 Answers 3

up vote 99 down vote accepted
$ ps aux  
USER       PID  %CPU %MEM  VSZ RSS     TTY   STAT START   TIME COMMAND
timothy  29217  0.0  0.0 11916 4560 pts/21   S+   08:15   0:00 pine  
root     29505  0.0  0.0 38196 2728 ?        Ss   Mar07   0:00 sshd: can [priv]   
can      29529  0.0  0.0 38332 1904 ?        S    Mar07   0:00 sshd: can@notty  
  • USER = user owning the process
  • PID = process ID of the process
  • %CPU = It is the CPU time used divided by the time the process has been running.
  • %MEM = ratio of the process’s resident set size to the physical memory on the machine
  • VSZ = virtual memory usage of entire process (in KiB)
  • RSS = resident set size, the non-swapped physical memory that a task has used (in KiB)
  • TTY = controlling tty (terminal)
  • STAT = multi-character process state
  • START = starting time or date of the process
  • TIME = cumulative CPU time
  • COMMAND = command with all its arguments

See the ps man page for more info.

share|improve this answer
18  
You could add e.g. that VSZ and RSS are output in KiB, not bytes as I first thought... –  Christian Davén Oct 22 '12 at 8:57
    
Can you say a little more about the differences between VSZ and RSS? Thanks. –  Elgs Qian Chen Jun 11 at 15:53
    
RSS is the amount of physical memory this process is using. Note that this includes any memory that's shared with other processes (eg if other processes are loaded from same executable or libraries) so it may over-report memory usage. VSZ is the size of the virtual memory space - do not be mislead by this as it's not all "used" memory. It includes memory in use (RSS), memory that's swapped, but usually the majority is just additional addressing space that hasn't actually had any real memory allocated to it - in order to use that space, more memory would need to be given to the process. –  thomasrutter Jul 21 at 1:42
    
I tried to think of an analogy. Let's say you're eating dinner so you're sharing a limited supply of food with other people. RSS is the amount of food currently on your plate. VSZ is the size of your plate. Not all of your plate is food and it's not relevant to how much food you've claimed. –  thomasrutter Jul 21 at 1:47

In Linux the command:

ps -aux

Means show all processes for all users. You might be wondering what the x means? The x is a specifier that means 'any of the users'. So you could type this:

ps -auroot

Which displays all the root processes, or

ps -auel

which displays all the processes from user el. The technobabble in the 'man ps' page is: "ps -aux prints all processes owned by a user named 'x' as well as printing all processes that would be selected by the -a option.

share|improve this answer

Also this might be helpful:

PROCESS STATE CODES:

  • R running or runnable (on run queue)
  • D uninterruptible sleep (usually IO)
  • S interruptible sleep (waiting for an event to complete)
  • Z defunct/zombie, terminated but not reaped by its parent
  • T stopped, either by a job control signal or because it is being traced
share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.