Press "Enter" to skip to content

Listing Processes in Linux/Unix Using ps Command

To list all the processes running or started in Linux/Unix use ps command. Below is the simple example of ps command without any parameters to view all the processes started by the user you are logged in:
$ ps
It will show the output something like this:
PID TTY TIME CMD
33214 pts/3 0:00 ps
14897 pts/4 0:00 bash
To view all the processes running in Linux or Unix box use -e and -f option with ps command to display every process in full format:
$ ps -ef
To view all the process containing the string pmon use pipe (|) and grep to filter the search for processes as shown in below example:
$ ps -ef | grep -i pmon
The above command will list out all the processes containing string pmon in it.
listing processes example of linux/unix