Bird
0
0

Why does nohup not protect a process from being killed by kill -9?

hard📝 Conceptual Q10 of 15
Linux CLI - Process Management
Why does nohup not protect a process from being killed by kill -9?
ABecause nohup only works for background processes
BBecause nohup only works for shell scripts
CBecause kill -9 sends SIGHUP which nohup blocks
DBecause SIGKILL cannot be caught or ignored by any process
Step-by-Step Solution
Solution:
  1. Step 1: Understand signals and their behavior

    kill -9 sends SIGKILL, which immediately terminates a process.

  2. Step 2: Check nohup limitations

    SIGKILL cannot be caught, blocked, or ignored by any process, including those run with nohup.

  3. Final Answer:

    SIGKILL cannot be caught or ignored by any process -> Option D
  4. Quick Check:

    SIGKILL always kills, nohup can't block it [OK]
Quick Trick: SIGKILL (kill -9) always kills, nohup can't block it [OK]
Common Mistakes:
  • Thinking nohup blocks all signals
  • Confusing SIGHUP with SIGKILL
  • Assuming nohup only works for scripts

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes