Process Management
Summary
This note is a quick reference for checking and controlling running processes. These commands are especially useful when a program is stuck, consuming resources, or needs to be identified before you inspect logs or restart a service.
Commands
| Command | Purpose |
|---|---|
ps aux | show running processes in a detailed list |
top | show live process activity |
htop | show an interactive live process viewer |
kill <PID> | send a signal to a process by process ID |
kill -9 <PID> | force-kill a process that does not stop normally |
Example usage
ps aux | grep ssh
top
kill 1234Notes
ps auxis good for quick inspection and searchingtopandhtopare better when you need live monitoringkill -9is powerful, but it should not be your first choice unless a normal stop fails
Related
- Back to Linux Reference
- [System Info](System Info)
- Networking
- [Viewing content](Viewing content)