Please find consolidated commands below:
Command | Syntax | Description | Example |
---|---|---|---|
ps | ps [options] | Display information about running processes | ps – Display information about the current shell and any child processes |
top | top | Display real-time information about running processes | top – Display real-time information about running processes |
kill | kill [signal] PID | Send a signal to a process to terminate it | kill 12345 – Send a signal to process with PID 12345 to terminate it |
killall | killall [options] process-name | Send a signal to all processes with the specified name | killall firefox – Send a signal to all processes named “firefox” to terminate them |
nohup | nohup command [arguments] | Run a command that will continue running even after the terminal is closed | nohup long-running-command – Run “long-running-command” and allow it to continue running even after the terminal is closed |
bg | bg [job-spec] | Resume a suspended job in the background | bg %1 – Resume job 1 in the background |
fg | fg [job-spec] | Bring a background job to the foreground | fg %1 – Bring job 1 to the foreground |
Note that the options listed here are just a few examples.