Why Process Control Manages Running Programs
📖 Scenario: Imagine you are working on a Linux system where multiple programs run at the same time. You want to understand how the system keeps track of these programs and controls their execution.
🎯 Goal: You will create a simple script that lists running programs and shows how process control helps manage them.
📋 What You'll Learn
Create a variable called
process_list that stores the output of the ps -e command.Create a variable called
filter_keyword with the value bash.Use a command to filter
process_list for lines containing filter_keyword and store the result in filtered_processes.Print the
filtered_processes variable to show running bash processes.💡 Why This Matters
🌍 Real World
System administrators and users often need to check which programs are running and control them to keep the system stable and efficient.
💼 Career
Understanding process control is essential for roles like system administration, DevOps, and IT support where managing running programs is a daily task.
Progress0 / 4 steps