What command is used to schedule tasks that need to run periodically in Linux?

Disable ads (and more) with a premium pass for a one time $4.99 payment

Boost your Linux skills with the CompTIA Linux+ Certification Exam simulator. Engage with multiple choice questions and detailed feedback. Master Linux concepts and prepare for your exam with confidence!

The command used to schedule tasks that need to run periodically in Linux is cron. This command is part of the cron daemon, which is a background process that allows users to schedule jobs (commands or scripts) to be executed at specified intervals. Users can define these scheduled tasks in a crontab (cron table) file, which specifies what commands to run and at what times.

Cron is especially useful for automating system maintenance tasks such as backups, system monitoring, and updating software, ensuring that they occur without the need for manual intervention. The syntax for cron jobs allows for flexibility in scheduling, such as setting tasks to run every minute, hour, day, Monday of the week, or even on specific dates.

The other options are not valid commands for scheduling tasks in Linux: "task" is not a standard command for scheduling; "schedule" does not correspond to a specific command in Linux; and "every" is not a recognized command or utility in the context of task scheduling. Therefore, cron stands out as the correct choice for this function.

Subscribe

Get the latest from Examzify

You can unsubscribe at any time. Read our privacy policy