How Do I Open a Crontab File in Linux?
Contents

First, open a terminal window from your Linux desktop’s applications menu. You can click the Dash icon, type Terminal and press Enter to open one if you’re using Ubuntu. Use the crontab -e command to open your user account’s crontab file.

How do I view crontab files in Linux?

To verify that a crontab file exists for a user, use the ls -l command in the /var/spool/cron/crontabs directory. For example, the following display shows that crontab files exist for users smith and jones. Verify the contents of user’s crontab file by using crontab -l as described in “How to Display a crontab File”.

How do I run a cron job in Linux?

Cron reads the crontab (cron tables) for predefined commands and scripts. By using a specific syntax, you can configure a cron job to schedule scripts or other commands to run automatically.
…
Cron Job Examples.

Cron Job Command
Run Cron Job on Saturday at Midnight 0 0 * * 6 /root/backup.sh
James H. Sterling

James H. Sterling

Environmental Science & Climate Journalist

James Sterling reports on renewable energy developments, climate policy, ecological conservation, and green tech innovations around the globe.

Share this article
Twitter Facebook Pinterest