Fri. Aug 14th, 2020

View Linux process with ps command

1 min read

ps – report a snapshot of the current processes

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 UNIX options, which may be grouped and must be preceded by a dash.
2 BSD options, which may be grouped and must not be used with a dash.
3 GNU long options, which are preceded by two dashes.

Options of different types may be freely mixed, but conflicts can appear. There are some synonymous options, which are functionally identical, due to the many standards and ps implementations that this ps is compatible with.



The content display format is eleven columns
  1. USER: the process was spawned by user_name
  2. PID: process id
  3. %CPU: CPU usage, higher occupancy means that the process consumes more resources
  4. %MEM: Memory usage; higher usage means more resources are consumed by this process
  5. VSZ: Virtual Memory Size
  6. RSS: ReSident Memory Size
  7. TTY: controlling tty (terminal), show a question mark to indicate nothing to do with the terminal
  8. STAT: Process status
    1. R (running )
    2. S (interruptable sleeping)
    3. D (uninterruptable sleeping)
    4. T (stopped)
    5. Z (zombie)
    6. + (Foreground process)
    7. l (multi-threaded process)
    8. N (low-priority process)
    9. < (high-priority process)
    10. s (child process)
  9. START: the start time
  10. TIME: the running cumulative time
  11. COMMAND: specific procedures or commands that generate the process