ps – View process

To view current process use the pc command:

ps aux | less
ps aux | grep "process-name"
ps aux | grep "httpd"
ps alx | grep "mysqld"

Example options include:

  • -aux — list all running processes (by all users with some information).
  • -a — list all processes from all users.
  • -u — list more information including user names, %cpu usage, and %mem usage et cetera.
  • -x — list processes without controlling terminals.
  • -l — display different information including UID and nice value.
  • –forest — this makes it easier to see the process hierarchy, which will give you an indication of how the various processes on your system interrelate (although you should also try pstree).