System and process management

Session

Exit the current terminal session

exit

Shutdown or restart the system

shutdown
reboot

Processes

Kill process you own or created

killall <process-name>

Search for named running process and return process id (-l to include process name)

pgrep -l <process-name>

Kill named process (-l for long output, -f to match against full arguments)

pkill -l <process-name>

Search for process details

ps aux | grep <process-name>

Kill a running process (by id)

Hangup process

Kill process (using force kill signal -9)

Open File Processes

List open process IDs for file

List open files for all processes

List open files for a user

List processes for a specific file or volume

List open files for internet address processes

Filter internet address listing by port

Identify processes using a volume (eg. when unable to unmount external drive)

Kill process using a volume

Terminal

Change Unix shell (enter path to new shell when prompted)

Output default shell

Maintenance

Update package list

Upgrade outdated packages

Last updated