You can use the ps
command in Bash to list all running processes. Here are three commonly used options:
ps
without any options will list only the processes that are associated with your current terminal session.
ps -e
or ps -A
will list all processes running on the system.
ps -ef
will show all the running processes in full format, including the process ID (PID) and other details.
To list all running processes, open your terminal and run one of the following commands:
ps
or
ps -e
or
ps -A
or
ps -ef