Challenge - 5 Problems
Process Control Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Purpose of Process Control in Linux
Why does process control exist to manage running programs in Linux?
Attempts:
2 left
💡 Hint
Think about what managing running programs means in terms of system resources.
✗ Incorrect
Process control helps the operating system handle programs by starting, stopping, and keeping track of them so the system runs smoothly.
💻 Command Output
intermediate1:30remaining
Output of 'ps' Command
What is the output of the command
ps -e | grep bash on a Linux system?Linux CLI
ps -e | grep bash
Attempts:
2 left
💡 Hint
The 'ps' command lists processes; 'grep' filters output.
✗ Incorrect
The command lists all running processes and filters to show only those with 'bash' in their name, showing active bash shells.
📝 Syntax
advanced1:30remaining
Correct Syntax to Kill a Process
Which command correctly stops a running process with PID 1234?
Attempts:
2 left
💡 Hint
The signal option comes immediately after 'kill'.
✗ Incorrect
The correct syntax is 'kill -9 1234' where '-9' is the signal to force kill the process with PID 1234.
🔧 Debug
advanced1:30remaining
Why Does 'kill 1234 -9' Fail?
Given the command
kill 1234 -9, why does it fail to stop the process?Attempts:
2 left
💡 Hint
Check the order of arguments in the kill command.
✗ Incorrect
The kill command expects the signal option before the PID. Writing 'kill 1234 -9' treats '-9' as a PID, causing failure.
🚀 Application
expert2:00remaining
Using 'top' to Identify High CPU Processes
You want to find which running program is using the most CPU on your Linux system. Which steps using the 'top' command will help you do this?
Attempts:
2 left
💡 Hint
Look for the key that sorts by CPU usage in descending order.
✗ Incorrect
Pressing 'P' in 'top' sorts the process list by CPU usage from highest to lowest, helping identify the most CPU-intensive programs.