0PricingLogin
Linux Command Line Mastery · Lesson

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 sleep

All lessons in this course

  1. Understanding Processes: `ps`, `top`, `htop`
  2. Managing Processes: `kill`, `bg`, `fg`
  3. Monitoring System Resources: `df`, `du`, `free`
  4. Process Priorities with nice, renice, and Signals
← Back to Linux Command Line Mastery