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.
Table of Contents
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
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
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.