ps
stands for process status. This command is used to display all the running processes in the linux system.
- To display all the running processes in the current shell
Syntax: ps [OPTIONS] Information about the information that is displayed upon using ps.
PID
: Unique Proces IDTTY
: Terminal Type of user logged in toTIME
: amount of CPU in min and sec that process has been runningCMD
: name of the command that launched the process
- To see all the running processes
1 2 3
Syntax: ps -e OR Syntax: ps -A
- To see all the runnnig processes in full format
1
Syntax: ps -ef
- To see the process by a user
1
Syntax: ps -u <username>
- To see the process by a group
1
Syntax: ps -G <groupname>
- To see the process tree
1
Syntax: ps -ejH