Category: Linux Terminal

Added: 6th of November 2020

Viewed: 505 times

Display a calendar in the terminal

The calendar is installed by default in Debian, however if you are running Ubuntu or another Ubuntu based distribution you may need to install it by entering the following command

sudo apt-get install ncal


To display a calendar in the terminal enter the following command
cal


Display current month

To display a specific month we use the -m switch followed by the month
cal -m December


Display specific month

To display a calendar for a specific year we use the -y switch followed by the year
cal -y 2020


Display complete year

To add (x) months after the current month we use the -a switch followed by the number of months
cal -A 4


Add 4 months to current month




Other Tips & Tutorials

Linux Terminal

Kill multiple processes using the pkill command in Linux

Posted: 5th of January 2021

Views: 401

Linux Terminal

Display free memory using the terminal in Linux

Posted: 17th of December 2020

Views: 500

Linux Terminal

Using mlocate to find files by name, extension using the terminal in Linux

Posted: 27th of November 2020

Views: 423

Linux Terminal

Capture screenshots of websites using cutycapt in different formats using the terminal in Ubuntu and Ubuntu based distributions

Posted: 15th of November 2020

Views: 557

Linux Terminal

Display a calendar in the terminal

Posted: 6th of November 2020

Views: 505

Linux Terminal

Create a simple cronjob in Linux

Posted: 20th of October 2020

Views: 633

Linux Terminal

Create a new folder and file using the mkdir and touch commands using the terminal in Linux

Posted: 16th of August 2020

Views: 577

Linux Terminal

Convert a PDF document to text or html using pdftotext, pdftohtml in Linux using the terminal

Posted: 3rd of August 2020

Views: 878

Linux Terminal

List files in a directory using the ls command

Posted: 22nd of July 2020

Views: 612

Linux Terminal

How to access HP Linux Imaging and Printing System set up on Ubuntu using the terminal

Posted: 13th of November 2019

Views: 1308