> For the complete documentation index, see [llms.txt](https://devops-3.gitbook.io/devops/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://devops-3.gitbook.io/devops/docs/linux-cheat-sheet/process-management.md).

# Process Management

| Command                                             | Description                         | Example                                                              |
| --------------------------------------------------- | ----------------------------------- | -------------------------------------------------------------------- |
| <mark style="color:red;">**ps**</mark>              | Display active processes.           | ps → Lists currently running processes for the current user.         |
| <mark style="color:red;">**top**</mark>             | Real-time process monitoring.       | top → Displays an interactive view of processes with resource usage. |
| <mark style="color:red;">**kill \[PID]**</mark>     | Terminate a process by PID.         | kill 1234 → Kills the process with PID 1234.                         |
| <mark style="color:red;">**killall \[name]**</mark> | Terminate processes by name.        | killall chrome → Stops all processes named chrome.                   |
| <mark style="color:red;">**bg**</mark>              | Resume a process in the background. | bg → Resumes the last suspended process in the background.           |
| <mark style="color:red;">**fg**</mark>              | Resume a process in the foreground. | fg → Brings the last backgrounded job to the foreground.             |
| <mark style="color:red;">**jobs**</mark>            | List background jobs.               | jobs → Displays all processes running in the background.             |
