Linux Commands | Process Management | ps Process List
ps Command
The ps command prints a list of currently running processes.
Syntax
ps (options)
Options
-e: Prints information for all processes.-f: Prints detailed process information.-a: Prints all processes for all users that are running.-u: Prints information about the user who started the process and the process start time.-x: Prints processes that do not have a controlling terminal.
ps Command Examples
Example 1
You can check the PID and PPID.
ps -ef | grep *** (running process):
Example 2
You can check USER, PID, %CPU, %MEM, RSS, TTY, STAT, and START.
ps -aux | grep *** (running process):
Note
- USER: User who started the process.
- PID: Process ID.
- %CPU: Percentage of CPU time used by the process in the last minute.
- %MEM: Percentage of actual memory used by the process in the last minute.
- RSS: Actual memory size currently used by the process.
- TTY: Terminal controlling the process.
- STAT: Process status code.
- START: Process start time.