0
0
Linux CLIscripting~5 mins

Why cron automates recurring tasks in Linux CLI - Quick Recap

Choose your learning style9 modes available
Recall & Review
beginner
What is the main purpose of cron in Linux?
Cron is a tool that automatically runs tasks at scheduled times or intervals without manual intervention.
Click to reveal answer
beginner
How does cron help with recurring tasks?
Cron runs commands or scripts repeatedly at fixed times, like every day or every hour, so you don't have to remember to run them yourself.
Click to reveal answer
beginner
What file does cron use to schedule tasks?
Cron uses a file called a crontab where you list commands and the times they should run.
Click to reveal answer
beginner
Why is automating recurring tasks with cron useful in real life?
It saves time and avoids mistakes by running important jobs like backups or updates automatically, even when you forget or are away.
Click to reveal answer
beginner
Can cron run tasks when the computer is off?
No, cron only runs tasks when the computer is on and the cron service is running.
Click to reveal answer
What does cron automate?
AGraphical user interface actions
BOne-time manual commands
CRecurring tasks at scheduled times
DHardware device drivers
Where do you list tasks for cron to run?
A/etc/passwd
Bcrontab file
C/var/log/syslog
D/home/user/.bashrc
Which of these is a benefit of using cron?
AAutomatic task running
BForgetting to run tasks
CSlowing down the computer
DManual task execution
If the computer is off, what happens to cron jobs?
AThey run twice
BThey run when the computer turns on
CThey run anyway
DThey do not run
Which command shows your current cron jobs?
Acrontab -l
Bcron -show
Cls /cron
Dcronjobs --list
Explain in your own words why cron is useful for automating recurring tasks.
Think about tasks you do often and how cron can help run them without you.
You got /4 concepts.
    Describe how you would set up a simple cron job to run a backup script every day at 2 AM.
    Remember the crontab time fields and the command to run your script.
    You got /4 concepts.