Managing Processes: `kill`, `bg`, `fg`
Learn to terminate, suspend, and resume processes effectively from the command line.
Introduction to Process Control
In Linux, every running program is called a process. Managing these processes is essential for system efficiency and troubleshooting.
This lesson teaches you how to take control of processes: suspending them, sending them to the background, bringing them forward, and even terminating them when they misbehave.
The `kill` Command Basics
The kill command is used to send signals to processes. Its primary use is to terminate processes.
To use kill, you need the Process ID (PID) of the target process. You can find PIDs using commands like ps (covered in a previous lesson).
ps aux | grep sleepAll lessons in this course
- Understanding Processes: `ps`, `top`, `htop`
- Managing Processes: `kill`, `bg`, `fg`
- Monitoring System Resources: `df`, `du`, `free`
- Process Priorities with nice, renice, and Signals