Categories
Linux Tutorial Series

Linux Tutorial Series – 163 – Time

Here is the video version, if you prefer it:

A quick word on time in Linux – incorrect time can cause web browser issues. (“How to troubleshoot time related errors on secure websites,” n.d.)⁠ Many distributions support using the NTP (Network Time Protocol) daemon to maintain the time using the remote server. (Ward, 2014)⁠ You can also mangle with timezones, but I never needed this. My advice: Don’t mangle with time unless you really need to (such as when you find the error above). I never had to.

Thank you for reading!

References

How to troubleshoot time related errors on secure websites. (n.d.). Retrieved February 13, 2020, from https://support.mozilla.org/hr/kb/troubleshoot-time-errors-secure-websites

Ward, B. (2014). How Linux Works: What Every Superuser Should Know (2nd ed.). No Starch Press. Pages 157-159

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