0
0
Linux CLIscripting~20 mins

Why process control manages running programs in Linux CLI - Challenge Your Understanding

Choose your learning style9 modes available
Challenge - 5 Problems
🎖️
Process Control Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate
1:30remaining
Purpose of Process Control in Linux
Why does process control exist to manage running programs in Linux?
ATo increase the size of files on the disk automatically
BTo allow the system to start, stop, and monitor programs efficiently
CTo change the color scheme of the terminal interface
DTo permanently delete all user data without confirmation
Attempts:
2 left
💡 Hint
Think about what managing running programs means in terms of system resources.
💻 Command Output
intermediate
1: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
ALists all running processes including those with 'bash' in their name
BShows the disk usage of the bash shell
CDisplays the contents of the bash configuration file
DDeletes all bash processes immediately
Attempts:
2 left
💡 Hint
The 'ps' command lists processes; 'grep' filters output.
📝 Syntax
advanced
1:30remaining
Correct Syntax to Kill a Process
Which command correctly stops a running process with PID 1234?
Akill 1234 -k
Bkill 1234 -9
Ckill -9 1234
Dkill -x 1234
Attempts:
2 left
💡 Hint
The signal option comes immediately after 'kill'.
🔧 Debug
advanced
1:30remaining
Why Does 'kill 1234 -9' Fail?
Given the command kill 1234 -9, why does it fail to stop the process?
ABecause 'kill' cannot stop processes
BBecause PID 1234 does not exist
CBecause '-9' is not a valid signal
DBecause the signal option '-9' must come before the PID
Attempts:
2 left
💡 Hint
Check the order of arguments in the kill command.
🚀 Application
expert
2: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?
ARun 'top', then press 'P' to sort processes by CPU usage descending
BRun 'top', then press 'M' to sort processes by memory usage ascending
CRun 'top', then press 'T' to sort processes by time ascending
DRun 'top', then press 'Q' to quit immediately
Attempts:
2 left
💡 Hint
Look for the key that sorts by CPU usage in descending order.