cal, calendar and ncal, because the terminal also allows us to see what date we are

cal command Even Microsoft has surrendered to the evidence and has included the Ubuntu Bash in Windows 10. And the Linux terminal allows us to do everything, as long as we get along with it and remember some commands. The terminal allows us to do more useful things, such as creating a USB Bootable in any Linux distribution, and less useful things, such as showing the time. In this article we will talk about three commands: cal, calendar and ncal.

The three commands show us calendar information. At least two of them are not the most useful commands in the world, but it can always come in handy to know them in case we are working in the terminal and we do not want to leave it to see the date we are in. In addition, one of the three will show us useful information, or so I thought when remembering that my father usually always has an app / web to see what it shows.

cal, a calendar in the terminal

El First of all of the three commands is "cal" (without the quotes). We can use it in the following ways:

  • Solo cal: it will show us a calendar of the month in which we are with the day in which we are marked.
  • cal + month number + year number: it will show us the calendar of the month and year that we indicate.
  • cal + year: it will show us the twelve months of the year that we indicate, with the day on which we are marked.

The best example to understand the usefulness of this command we have when we want to know what day fell / will fall on a specific dayFor example, if we put "cal 2020" we will see that July 22 will fall on Wednesday.

ncal, other information

ncal command

The "ncal" command shows us other information. If we put the command without anything else, it will show us the calendar in another format, with the numbers advancing vertically instead of advancing horizontally as in most calendars. We can also see an annual calendar of the days without returning to 1 in each new month, that is, if we put «ncal -j» we will see the month we are in, but the day will not be from 1-31, but how many days of the year have passed to get to the day we are. For example, instead of July 22, the command "cal or ncal -j" will show us that today is the 203rd day of the year. As in «cal», we can also add a month and a year, which for July 2019 would be «ncal -j 7 2019».

calendar, ephemeris in the terminal

Calendar command

And this is what my father likes to look at, a man already with his years. If we put «calendar» (without the quotes), it will show us a list with ephemeris of the day and those of the next day. The results are offered in the language where the day is important, such as "Payador's Day" or "Bonne fête aux Brigitte!"

Three easy-to-remember commands that can come in handy at any time, or we can just use them because we can.

Related article:
5 best calendars for Gnu / Linux

The content of the article adheres to our principles of editorial ethics. To report an error click here.

Be the first to comment

Leave a Comment

Your email address will not be published. Required fields are marked with *



  1. Responsible for the data: AB Internet Networks 2008 SL
  2. Purpose of the data: Control SPAM, comment management.
  3. Legitimation: Your consent
  4. Communication of the data: The data will not be communicated to third parties except by legal obligation.
  5. Data storage: Database hosted by Occentus Networks (EU)
  6. Rights: At any time you can limit, recover and delete your information.