How to Create a Cron Task in Ubuntu

Bit Ninja


In this video, we describe how to create a cron task in Ubuntu. .

Commands used:
sudo apt-get update
sudo apt-get upgrade
dpkg -l cron
sudo apt-get install cron
systemctl status cron
sudo systemctl start cron
crontab -e
0 4 * * * /bin/sh /scripts/backup-script.sh
Escape, colon, w, q (:wq)
/scripts/backup-script.sh
chmod +x /scripts/backup-script.sh

The related article for this article can be found here:

Create a Cron Task in Ubuntu 16.04

For more information about this and other topics, visit us at https://www.liquidweb.com/kb/ and to learn more about our dedicated server offerings, visit: *https://www.liquidweb.com/products/dedicated/”

Video by: Alex Gorzen


Duration: 00:06:16
Publisher: Liquid Web
You can watch this video also at the source.