If we pass arguments with a (-) dash then we will get the output in standard syntax. In contrast, if we pass arguments without any (-) dash then we will get output in BSD (Berkeley Software Distribution) syntax.
To view all running processes :
ps -eorps -A
To view full formated list of all running processes:ps -efL
$ ps -efL | more # more for viewing from the beginning-------------------------------------------------------------------UID PID PPID LWP C NLWP STIME TTY TIME CMD root 1 0 1 1 1 03:44 ? 00:00:20 /sbin/init root 2 0 2 0 1 03:44 ? 00:00:00 [kthreadd] ... ...
We can use grep along with ps command to search for a specific process;
Let’s say we want to see our “httpd” server is running or not. We can do that in the following way: