Challenge - 5 Problems
Signal Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of sending SIGTERM to a process?
You run the command
kill -15 1234 to send a SIGTERM signal to process 1234. What is the expected behavior if the process handles SIGTERM properly?Attempts:
2 left
💡 Hint
SIGTERM is a polite request to terminate a process.
✗ Incorrect
SIGTERM (signal 15) asks a process to terminate gracefully. If the process handles it, it can clean up before exiting.
💻 Command Output
intermediate2:00remaining
What happens when you send SIGKILL to a process?
You execute
kill -9 5678 to send SIGKILL to process 5678. What is the immediate effect?Attempts:
2 left
💡 Hint
SIGKILL cannot be caught or ignored.
✗ Incorrect
SIGKILL (signal 9) forces the kernel to stop the process immediately without giving it a chance to clean up.
📝 Syntax
advanced2:00remaining
Which kill command syntax sends SIGUSR1 to process 4321?
Choose the correct command to send the SIGUSR1 signal to process ID 4321.
Attempts:
2 left
💡 Hint
Use the -s option to specify signal by name.
✗ Incorrect
The correct syntax to send a named signal is 'kill -s SIGNAL PID'. Other forms are invalid or unsupported.
🔧 Debug
advanced2:00remaining
Why does
kill -15 without a PID fail?You run
kill -15 without specifying a process ID. What error or behavior occurs?Attempts:
2 left
💡 Hint
kill requires a PID argument to know which process to signal.
✗ Incorrect
Without a PID, kill cannot send a signal and shows a usage error message.
🧠 Conceptual
expert3:00remaining
What signal number corresponds to SIGSTOP and what is its effect?
Identify the signal number for SIGSTOP and explain what happens to a process when it receives this signal.
Attempts:
2 left
💡 Hint
SIGSTOP pauses a process without terminating it.
✗ Incorrect
SIGSTOP (usually signal 19) stops a process execution until it is resumed with SIGCONT.