Skip to content

Instantly share code, notes, and snippets.

@apbarrero
Last active May 30, 2022 02:42
Show Gist options
  • Save apbarrero/6338668 to your computer and use it in GitHub Desktop.
Save apbarrero/6338668 to your computer and use it in GitHub Desktop.
Legend for headers dumped by `ps -f` command
HEADER Meaning
UID effective user ID. (alias uid).
PID process ID number of the process.
PPID parent process ID.
C processor utilization. Currently, this is the integer value of the percent usage over the lifetime of the process. (see %cpu).
START/STIME starting time or date of the process. Only the year will be displayed if the process was not started the same year ps was invoked, or "mmmdd" if it was not started the same day, or "HH:MM" otherwise.
TTY controlling tty (terminal). (alias tt, tty).
STAT multi-character process state. See section PROCESS STATE CODES for the different values meaning. See also s and state if you just want the first character displayed.
TIME cumulative CPU time, "[dd-]hh:mm:ss" format. (alias cputime).
CMD command with all its arguments as a string. Modifications to the arguments may be shown. The output in this column may contain spaces. A process marked is partly dead, waiting to be fully destroyed by its parent. Sometimes the process args will be unavailable; when this happens, ps will instead print the executable name in brackets.
(alias cmd, command). See also the comm format keyword, the -f option, and the c option.
When specified last, this column will extend to the edge of the display. If ps can not determine display width, as when output is redirected (piped) into a file or another command, the output width is undefined. (it may be 80, unlimited, determined by the TERM variable, and so on) The COLUMNS environment variable or --cols option may be used to exactly determine the width in this case. The w or -w option may be also be used to adjust width.
@askmi
Copy link

askmi commented Jan 8, 2022

LWP - Light Weight Process (thread)
NLWP - number on LWP

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment