Cron Job at Every 5 Minutes in Linux

Last updated on Jan 2, 2020 in Linux

To schedule a task to be run in every 5 minutes, you can set up a cron job in Linux.

Open Crontab

You can use your favorite text editor to open the file:

$ vim /etc/crontab

Add “*/5 * * * *” to The Crontab

Let’s assume that your script name is /home/theuser/ To make it run every 5 minutes, add the following line to the end of the file:

*/5 * * * * /home/theuser/

The first entry */5 defines the “at every 5 minutes”.