In this Linux/Mac terminal tutorial, we will be learning about cron jobs and how to schedule commands with crontab. The will allow you to run commands on a repetitive schedule. So if you want to run a job daily, weekly, or at a certain time of day, this video will show you how you can get this set up. This helps a ton with system administration type of tasks and can automate a lot of work. Let’s get started.

The snippets from this video can be found at:

✅ Support My Channel Through Patreon:

✅ Become a Channel Member:

✅ One-Time Contribution Through PayPal:

✅ Cryptocurrency Donations:
Bitcoin Wallet – 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3
Ethereum Wallet – 0x151649418616068fB46C3598083817101d3bCD33
Litecoin Wallet – MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot

✅ Corey’s Public Amazon Wishlist

✅ Equipment I Use and Books I Recommend:

▶️ You Can Find Me On:
My Website –
My Second Channel –
Facebook –
Twitter –
Instagram –

#Linux #Mac

Nguồn: https://codeigniterbrasil.com

Xem thêm bài viết khác: https://codeigniterbrasil.com/lap-trinh-linux/

44 Comments

Julian Russell

April 19, 2020

Thank you!!! 🙏🏾

Reply

shivam shrivastava

April 19, 2020

Hello Corey
In this video Buddy No Discussion about time Zones
Please could you tell me how to add time zone of my choice and by default it takes what time zone.

Reply

Simon Heron

April 19, 2020

Thank you very much for your explanation. And thank you for the tip on the crontab guru website!

Reply

TANISHQ VYAS

April 19, 2020

Those who unliked it are all Non-techies or dumbheads

Reply

TANISHQ VYAS

April 19, 2020

Those who unliked it are all Non-techies or dumbheads

Reply

That Guy

April 19, 2020

Perfectly explained 👌

Reply

Magister Classicus

April 19, 2020

what if a cron job requires a user to input a password?

Reply

Kinjal Vora

April 19, 2020

Can I schedule a backup to let's say google drive using crontrab?
I see that you have an example for google Pictures but I am wondering if it is similar for the drive?

Reply

Marlo Mitchell

April 19, 2020

Great vid.

Reply

abdullah alasaad

April 19, 2020

would that work automatically even if the machine is turned off?

Reply

Gaurav Sharma

April 19, 2020

Very useful, you've cleared all my doubt, really appreciate.

Reply

Joseph Princiotta

April 19, 2020

Great work sir! Thank Yhou

Reply

Ethan Chan

April 19, 2020

Hello Corey, thanks for the awesome video!
I was trying to run a web monitoring script (which sends me an email when new content is posted) using crontab but came across a snag. I put all the commands I needed in a shell script. The script executed perfectly when I manually ran the shell script in the terminal, but when I scheduled the task into crontab, it kept raising this error –> -bash: syntax error near unexpected token `newline'.
Do you have any idea what might have gone wrong?

Reply

scott lucas

April 19, 2020

For any problems understanding the crontab timer:

https://crontab.guru/

Reply

Loop loop

April 19, 2020

how may I get the first Friday of each month please?

Reply

Gon-Salis ZB

April 19, 2020

.

Reply

Luke M Perez

April 19, 2020

Maybe I missed it in the comments below or in the video, but what happens if the chron job is set and the machine is asleep (closed laptop) or off?

Reply

Ajay Kumar Arya

April 19, 2020

sir this algo is not working because every second is calculte in to a min so your query have not provide a solution

Reply

chris Athanas

April 19, 2020

well done explanation, now i understand

Reply

Yajant Bhawsar

April 19, 2020

Hello All/Corey, Is there any way to set-up crons, which take less CPU UTILIZATION ? When I run multiple crons on server, the CPU UTILIZATION increases vastly.
Any help or recommendatios are appreciated. Thanks.

Reply

Abdullah Ajmal

April 19, 2020

Hey can I run a swift file using Cron?

Reply

gztsarmata

April 19, 2020

thank you; great , simple presentation, very usefull !

Reply

KEIC

April 19, 2020

Great video, didn't feel like nearly 19 minutes, everything was clear and concise.
One thing that was probably worth mentioning though – what if you want to set a cron job for last day of every month? Set the days to 28-31 and of course leave the month as *.
Although Corey showed us how to specify a range, last day of month kinda threw me off a bit. It took a few seconds to realise haha I guess I'm just slow.

Reply

Kerwin So

April 19, 2020

3 people will never use crontab

Reply

betcald1

April 19, 2020

great video. thanks. if I want to start an application .Appimage? how it would be the sentence?

Reply

Ben Walsh

April 19, 2020

I really enjoyed this video. All your videos are so well done. Would you be able to do a video comparing CRON to AT? When you have time, of course. Both seem like they could be very useful.

Reply

raghav atreya

April 19, 2020

How to mimic cron job in django

Reply

Gaunter O'Dimm

April 19, 2020

You'r Breathtaking Corey!

Reply

Anil P

April 19, 2020

Please tell me how can I execute my shell script as a Cron job . The script is written as part of automation.

Reply

keshav nayak

April 19, 2020

the best you tube channel when it comes to learning

Reply

MrTutoDZ

April 19, 2020

Tu for the vidéo 🙂

Reply

StarCitizen Modding

April 19, 2020

You have taught me a lot. just so you know 😀

Reply

Farah Haris

April 19, 2020

Thank you so much for the explanations!

Reply

Simon WoodburyForget

April 19, 2020

So there's absolutely no years and seconds option? That's odd… also, how does it handle time zones, and winter/summer time, and leep seconds and leep days? This tool seems very loosely put together. I don't understand why it's so popular.

Reply

codecaine

April 19, 2020

I needed this refresher. Great tutorial my friend.

Reply

Dragan Dimitrijevic

April 19, 2020

Excellent Corey, very well explained. Not jumping from one topic to another. Bravo!

Reply

Tung Nguyen

April 19, 2020

Is there any way to run a script whenever we start the server?

Reply

Joseph Bautsch

April 19, 2020

Can you run a 'sudo' command like this?

Reply

WhiskeyEchoBravo

April 19, 2020

Simple just amazing! THANK YOU Corey!

Reply

JlXip

April 19, 2020

Thank you!!!

Reply

Karl Morisset

April 19, 2020

Thanks !

Reply

UnknownSource

April 19, 2020

Thank you for this video. Finally, i perfectly understand Cron jobs and rsync!

Reply

john mwansa

April 19, 2020

this is the nice teaching

Reply

Po Xin

April 19, 2020

Ubuntu 16.04 = export EDITOR=/bin/nano

Reply

Leave a Reply