This article is Part 3 in a series of cheat-sheets on the command line shell, bash. (Previous Page | Next Page)
$ ps
Show running processes for user. Some options include:
-e (See every process)-f (Full format)-F (Extra full output)-u (Another long format)-H (Hierarchical format)--forest (Output ASCII tree)Show user's processes running in background mode:
$ jobs -l
Use the command htop for real-time process info. (Which is similar to the Task Manager if you're coming from Windows.) btop is a another useful process manager.
Move background process x to foreground:
$ fg x
Start running process x in background:
$ bg x
$ kill pid
Sends TERM signal to specified PID (Process ID). Some options include:
-s signal (Specify alternate signal to send)-l (Show list of available signals)$ killall name* (Kill all processes starting with a name of name)
| This article is part of a series on Command Line | |
|---|---|
| bash: | Overview - Getting Started - Shortcuts & Piping - Managing Processes - Users & Permissions - Files & Archives - Customization |
| Other *nix & MacOS: | zsh |
| Windows: | PowerShell |