Challenge - 5 Problems
At Command Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
💻 Command Output
intermediate2:00remaining
What is the output of scheduling a job with 'at'?
You run the command
echo 'echo Hello' | at now + 1 minute. What output do you expect immediately after running this command?Linux CLI
echo 'echo Hello' | at now + 1 minute
Attempts:
2 left
💡 Hint
Think about what the 'at' command prints when scheduling a job, not the job's output.
✗ Incorrect
The 'at' command confirms scheduling by printing the job number and scheduled time. It does not run the job immediately or print the job's output.
💻 Command Output
intermediate2:00remaining
What happens if you run 'at' without permissions?
If a user without permission runs
echo 'ls' | at now + 5 minutes, what is the expected output?Linux CLI
echo 'ls' | at now + 5 minutes
Attempts:
2 left
💡 Hint
Consider system restrictions on who can use 'at'.
✗ Incorrect
If the user is not allowed to use 'at', the command prints a permission error and does not schedule the job.
📝 Syntax
advanced2:00remaining
Which 'at' command syntax schedules a job for 3:30 PM today?
Choose the correct command to schedule a job to run at 3:30 PM today using 'at'.
Attempts:
2 left
💡 Hint
The 'at' command accepts 24-hour time format without extra words.
✗ Incorrect
The correct syntax uses 24-hour time like '15:30'. 'now + 15:30' is invalid, '3:30pm today' is not accepted, and '15.30' uses wrong separator.
🚀 Application
advanced2:00remaining
How to list and remove scheduled 'at' jobs?
You have scheduled multiple jobs with 'at'. Which commands correctly list all jobs and remove job number 3?
Attempts:
2 left
💡 Hint
The 'atq' and 'atrm' commands are used for managing 'at' jobs.
✗ Incorrect
'atq' lists scheduled jobs, and 'atrm' removes a job by its number. This is option C.
🧠 Conceptual
expert3:00remaining
What is the environment context of an 'at' job execution?
When an 'at' job runs, which environment variables and context does it have?
Attempts:
2 left
💡 Hint
Think about how 'at' jobs run non-interactively and what environment they inherit.
✗ Incorrect
'at' jobs run in a minimal environment, usually without user shell aliases or functions. They inherit basic environment variables like PATH but not the full interactive shell environment.