Calendar in the command line

DATE COMMANDER

Article from Issue 58/2005
Author(s):

The legacy cal and date tools help users keep track of the time and date. You can even change the system time with a single shell command.

Wall calendars are pretty, and PDAs are handy, but there is nothing like Linux to help you track the time. Linux gives a quick overview of the date and time with the cal and date command line tools.

You can use cal to draw a calendar sheet or an overview for a full year in a terminal window, and date not only outputs the date and time in various formats, but can also adjust the system time, assuming you have administrative privileges.

Buy this article as PDF

Express-Checkout as PDF
Price $2.95
(incl. VAT)

Buy Linux Magazine

SINGLE ISSUES
 
SUBSCRIPTIONS
 
TABLET & SMARTPHONE APPS
Get it on Google Play

US / Canada

Get it on Google Play

UK / Australia

Related content

  • Command Line: Cal, Date, Hwclock, NTP

    I’m late, I’m late, for a very important date. For many applications, it is important that your PC has the correct time and time zone. We’ll show you how to keep your PC clock ticking and how to use NTP to synchronize the time with a time server on the Web.

  • Command Line: Calendar Tools

    We take a spin through several personal calendar apps that you can manage from the command line.

  • Perl: DateTime Module

    Because calendar rules are influenced by historical and political decisions, date manipulations are riddled with pitfalls. Perl’s DateTime module knows all the tricks.

  • Time Machines

    Command-line aficionados do not have to forgo calendars and appointment reminders. The shell offers many tools for user-friendly handling of date definitions in scripts.

  • Reverse Engineering Bluetooth

    What do you do when all your Bluetooth clocks show slightly different times? With some reverse engineering, you can write a Python program to synchronize your clocks.

comments powered by Disqus
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters

Support Our Work

Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.

Learn More

News