Categories
Linux Tutorial Series

Linux Tutorial Series – 15 – Talking about time – date and cal

Here is the video version, if you prefer it:

Today, let’s talk about two time-related commands in the shell. They are called date and cal. (Shotts, 2019)⁠

date gives you the current time:

mislav@mislavovo-racunalo:~$ date

Sun 22 Dec 2019 12:11:15 PM CET

cal gives you the calendar:

mislav@mislavovo-racunalo:~$ cal

December 2019

Su Mo Tu We Th Fr Sa

1 2 3 4 5 6 7

8 9 10 11 12 13 14

15 16 17 18 19 20 21

22 23 24 25 26 27 28

29 30 31

Obviously, applications of this are vast. Let’s say you freeze yourself and wake up 70 years in the future. Of course you’re not going to ask some human what year is it! That would be ludicrous! Instead, you will find the first computer with Linux and run the commands you learned from this article. I just saved your life 70 years in the future. You are welcome.

References

Shotts, W. (2019). The Linux Command Line, Fifth Internet Edition. Retrieved from http://linuxcommand.org/tlcl.php. Page 28

NewsletterUpdates on interesting things I am doing

Subscribe to my newsletter to keep abreast of the interesting things I'm doing. I will send you the newsletter only when there is something interesting. This means 0% spam, 100% interesting content.

Leave a Reply

Your email address will not be published.