Here are some common tasks for managing processes in FreeBSD and OS X Unix operating system using the ps
, kill
, nice
, and killall
commands:
- List running processes:
ps aux
- Kill a process by PID:
kill [pid]
- Change the priority of a process:
nice -n [priority] [command]
- Kill all processes with a specific name:
killall [process name]
Note: ps
shows information about the running processes, including their PID and the command used to start them. kill
sends a signal to a process to terminate it. nice
changes the priority of a process, where a lower number indicates a higher priority. killall
terminates all processes with the specified name.
Keep in mind that using these commands requires superuser privileges in most cases.