Documentation
¶
Overview ¶
Package ps implements the ps builtin command.
ps — report process status
Usage: ps [-e|-A] [-f] [-p PIDLIST] [--help]
Display information about running processes. By default shows processes in the current session (ancestor chain from the current process).
Accepted flags:
-e, -A
Select all processes.
-f
Full-format listing: UID PID PPID C STIME TTY TIME CMD
-p PIDLIST
Select processes by comma- or space-separated PID list.
--help
Print usage to stdout and exit 0.
Output columns (default):
PID TTY TIME CMD
Output columns (-f):
UID PID PPID C STIME TTY TIME CMD
Exit codes:
0 Success (even if 0 processes match). 1 Invalid PID value or OS error fetching process list.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Cmd = builtins.Command{
Name: "ps",
Description: "report process status",
MakeFlags: registerFlags,
}
Cmd is the ps builtin command descriptor.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.