Bird
0
0

Which command correctly runs backup.sh in the background, ensuring it continues after logout using nohup?

easy📝 Syntax Q3 of 15
Linux CLI - Process Management
Which command correctly runs backup.sh in the background, ensuring it continues after logout using nohup?
Anohup ./backup.sh &
Bnohup backup.sh
Cbackup.sh & nohup
Dnohup ./backup.sh
Step-by-Step Solution
Solution:
  1. Step 1: Running with nohup

    Use nohup before the command to ignore hangup signals.
  2. Step 2: Running in background

    Appending & runs the process in the background.
  3. Step 3: Correct syntax

    nohup ./backup.sh & runs the script persistently in background.
  4. Final Answer:

    nohup ./backup.sh & -> Option A
  5. Quick Check:

    Is nohup before command and & at end? [OK]
Quick Trick: nohup before command and & to background it [OK]
Common Mistakes:
  • Placing & before nohup
  • Omitting & to run in background
  • Not specifying script path correctly

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes