Quration AIQ

terminal

Automating a repetitive task like 'run this backup script every night at 3 a.m.' has relied on the same old Linux tool for decades.

'Run the backup script at 3 a.m. every day' — which venerable Linux scheduler has handled jobs like this for decades?

cron
cron runs commands on a timetable (the crontab). Its five-field '* * * * *' syntax for minute, hour, day, month, and weekday has been automation's standard language for nearly half a century.

cron is a Linux utility that runs commands automatically according to a schedule you define in a file called the crontab, letting you set up tasks like running a backup script every night at a specific time without any manual intervention. Its scheduling syntax uses five fields representing minute, hour, day of month, month, and day of week, written compactly as something like '0 3 * * *' for 3 a.m. daily.

'clock' and 'alarm' are simply generic, non-technical words describing time-related concepts, but neither is an actual scheduling tool used in Linux systems.

cron's five-field syntax has remained essentially unchanged for decades, making it one of the longest-lived pieces of standard automation language in computing, still taught to programmers today exactly as it was originally designed.

▶ Quration AIQ

terminal

Which environment variable holds the list of folders the computer searches for commands?What's this feature called?Which command follows a file's tail and shows each new line as it arrives?Which command is the terminal's task manager, showing processes with live CPU and memory usage?What is it short for?The 'Hello World' of shell scripting, and the command you reach for whenever you need to check a variable's value?Where does 'cd ~' take you?What's the fundamental key combination to interrupt it?What's this file, saved with a .sh extension, called?What's this approach called, in contrast to the icon-clicking GUI?What is it?Which terminal command — probably the most-typed two letters in computing history — answers 'what's in this folder?'

Quration — Quration AIQ