Bird
0
0

Why does this command fail?

medium📝 Debug Q7 of 15
Linux CLI - Cron and Scheduling
Why does this command fail?
at 12:00
ls -l
Ctrl+D
ANo newline after <code>ls -l</code>
BUser lacks permission to use <code>at</code>
CMissing <code>echo</code> before command
DIncorrect time format
Step-by-Step Solution
Solution:
  1. Step 1: Understand at permissions

    Users must be allowed in /etc/at.allow or not denied in /etc/at.deny to run at.
  2. Step 2: Analyze other options

    Newline after command is required but usually pressing Ctrl+D ends input correctly. Time format 12:00 is valid. echo is not needed when typing interactively.
  3. Final Answer:

    User lacks permission to use at -> Option B
  4. Quick Check:

    User permission controls at usage = B [OK]
Quick Trick: Check /etc/at.allow and /etc/at.deny files [OK]
Common Mistakes:
  • Forgetting user permission controls
  • Misunderstanding interactive input
  • Assuming syntax error

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes