Ps: Difference between revisions
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
=Overview= | =Overview= | ||
ps gets its information from [[/proc/pid/stat|/proc/<pid>/stat]] files. | |||
=Options= | =Options= |
Revision as of 22:44, 1 March 2018
Internal
Overview
ps gets its information from /proc/<pid>/stat files.
Options
-A, -e
Select all processes. -A and -e are identical.
-f
Full-format listing.
-L
Show threads.
The thread ID is listed under the "LWP" column.
--forest
Hierarchical display of the process tree.
--no-headers
Skips the display of the header line. Useful when counting lines in the ps output with wc -l.
Columns
PID
LWP
The thread ID.
NLWP
The number of threads for the process.