Process Management
Module 5: Process Management
Lesson 1: Managing Processes
1.1 Viewing Running Processes
ps: Display information about active processes.
ps aux
top: Dynamic real-time view of system processes.
top
1.2 Killing Processes
kill: Terminate a process using its process ID (PID).
kill PID
pkill: Send a signal to processes based on their name.
pkill process_name
Lesson 2: Managing Services
2.1 Starting, Stopping, and Restarting Services
Starting a Service:
sudo systemctl start service_name
Stopping a Service:
sudo systemctl stop service_name
Restarting a Service:
sudo systemctl restart service_name
2.2 Enabling Services at Boot
Enabling a Service:
sudo systemctl enable service_name
Disabling a Service:
sudo systemctl disable service_name
Module 5 focused on process and service management, key components in maintaining a well-functioning Linux system. We explored methods to view running processes, terminate unwanted processes, and gained insights into tools like ps and top. Additionally, we delved into the management of system services, learning how to start, stop, restart, enable, and disable services using systemctl. Understanding these processes and services is essential for monitoring system performance, troubleshooting issues, and ensuring the availability of critical services. As we progress in our Linux journey, mastering these skills will contribute to the overall efficiency and reliability of the systems we administer.