Total Questions
25
Answered
0
Score
0
Timer
20:00
Result
Question 1
Not answered
What is cron in Linux?
Explanation: cron is the Linux scheduler service. It runs commands or scripts automatically based on time.
Question 2
Not answered
What does crontab mean?
Explanation: crontab means cron table. It is where cron jobs are defined.
Question 3
Not answered
What is a cron job?
Explanation: A cron job is one command or script scheduled to run at a specific time or interval.
Question 4
Not answered
Which command edits the current user's crontab?
Explanation: `crontab -e` opens the current user's crontab for editing.
Question 5
Not answered
Which command lists the current user's cron jobs?
Explanation: `crontab -l` lists cron jobs for the current user.
Question 6
Not answered
Which command removes the current user's crontab?
Explanation: `crontab -r` removes the current user's crontab. Use it carefully.
Question 7
Not answered
Which command removes a crontab with confirmation?
Explanation: `crontab -i -r` asks for confirmation before removing the crontab.
Question 8
Not answered
Which command edits another user's crontab?
Explanation: With sudo/root access, `sudo crontab -u username -e` edits another user's crontab.
Question 9
Not answered
What is the correct five-field cron schedule format?
Explanation: The standard user crontab format is minute, hour, day of month, month, day of week, then command.
Question 10
Not answered
What does `* * * * *` mean?
Explanation: Five asterisks mean every minute, every hour, every day, every month, and every weekday.
Question 11
Not answered
What does `*/5 * * * *` mean?
Explanation: `*/5` in the minute field means every 5 minutes.
Question 12
Not answered
What does `0 * * * *` mean?
Explanation: `0` in the minute field and `*` in the hour field means run at the start of every hour.
Question 13
Not answered
What does `0 0 * * *` mean?
Explanation: `0 0 * * *` means minute 0, hour 0, every day: daily at midnight.
Question 14
Not answered
What does `30 2 * * *` mean?
Explanation: `30 2 * * *` runs every day at 2:30 AM.
Question 15
Not answered
What does `0 9 * * 1-5` mean?
Explanation: `1-5` in the day-of-week field means Monday through Friday. So it runs weekdays at 9 AM.
Question 16
Not answered
What does `0 */6 * * *` mean?
Explanation: `*/6` in the hour field means every 6 hours.
Question 17
Not answered
Which cron shortcut runs a job once when the system boots?
Explanation: `@reboot` runs a command once after system startup.
Question 18
Not answered
Which shortcut runs a job once per day?
Explanation: `@daily` runs a job once per day.
Question 19
Not answered
Why should you use full paths in cron jobs?
Explanation: Cron does not load your full interactive shell environment, so full paths make jobs more reliable.
Question 20
Not answered
Which line sets a useful PATH inside crontab?
Explanation: Setting PATH inside crontab helps cron find common system commands.
Question 21
Not answered
What does `>> /var/log/backup.log 2>&1` do?
Explanation: `>>` appends standard output, and `2>&1` sends standard error to the same place.
Question 22
Not answered
What does `MAILTO=""` do in crontab?
Explanation: `MAILTO=""` disables cron mail output for jobs in that crontab.
Question 23
Not answered
What is the key difference between user crontab and `/etc/crontab`?
Explanation: System crontab `/etc/crontab` has an extra user field to specify which user runs the command.
Question 24
Not answered
Which command checks cron logs on Ubuntu/Debian?
Explanation: On Ubuntu/Debian, cron entries are commonly found in `/var/log/syslog`.
Question 25
Not answered
Which command helps prevent overlapping cron jobs?
Explanation: `flock` can use a lock file so a new cron run does not start if the previous one is still running.