HowTo: Use ps, kill, nice, and killall To Manage processes in FreeBSD and OS X Unix Operating System

The ps or process status command is a command that lists process activities. Many people use the top command to interactively list the processes, but for scripting purpose ps is user friendly.