{"id":11972,"date":"2021-11-15T10:27:25","date_gmt":"2021-11-15T10:27:25","guid":{"rendered":"https:\/\/linuxways.net\/?p=11972"},"modified":"2021-11-16T13:15:35","modified_gmt":"2021-11-16T13:15:35","slug":"how-to-use-the-cal-command-in-linux-mint-20","status":"publish","type":"post","link":"https:\/\/linuxways.net\/de\/mint\/how-to-use-the-cal-command-in-linux-mint-20\/","title":{"rendered":"How to Use the \u201ccal\u201d Command in Linux Mint 20?"},"content":{"rendered":"<h2>Introduction:<\/h2>\n<p>There are different built-in commands in Linux that are there to serve some very special purposes. One such commands is the \u201ccal\u201d command that is used to print the calendar on the terminal. The goal of this article is to discuss the different methods in which the \u201ccal\u201d command can be used on a Linux Mint 20 system.<\/p>\n<h2>Method of Using the \u201ccal\u201d Command in Linux Mint 20:<\/h2>\n<p>For learning the usage of the \u201ccal\u201d command in Linux Mint 20, you will have to proceed with the following examples:<\/p>\n<h3>Example # 1: Displaying the Calendar for the Current Month:<\/h3>\n<p>You can display the calendar for the current month by using the \u201ccal\u201d command without any options as shown in the image below:<\/p>\n<pre>\r\n<strong>$ cal<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"273\" height=\"25\" class=\"wp-image-11977\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-195.png\" \/><\/strong><\/p>\n<p>The calendar for the current month with the current date highlighted is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"319\" height=\"178\" class=\"wp-image-11981\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-198.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-198.png 319w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-198-300x167.png 300w\" sizes=\"auto, (max-width: 319px) 100vw, 319px\" \/><\/p>\n<h3>Example # 2: Another Way of Displaying the Calendar for the Current Month:<\/h3>\n<p>There is another way of displaying the calendar for the current month and it is stated below:<\/p>\n<pre>\r\n<strong>$ cal 11 2021<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"337\" height=\"24\" class=\"wp-image-11982\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-199.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-199.png 337w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-199-300x21.png 300w\" sizes=\"auto, (max-width: 337px) 100vw, 337px\" \/><\/strong><\/p>\n<p>In this command, you will have to mention the current month and year with the \u201ccal\u201d command. Since the current month is \u201cNovember\u201d and the current year is \u201c2021\u201d, that is why we have written \u201c11 2021\u201d in the above-mentioned command.<\/p>\n<p>The calendar for the current month with the current date highlighted is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"369\" height=\"180\" class=\"wp-image-11985\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-202.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-202.png 369w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-202-300x146.png 300w\" sizes=\"auto, (max-width: 369px) 100vw, 369px\" \/><\/p>\n<h3>Example # 3: Displaying the Calendar for the Current Year:<\/h3>\n<p>You can also display the whole calendar for the current year i.e. the calendar for all the months of the ongoing year at once. For that, you will have to execute the command shown below:<\/p>\n<pre>\r\n<strong>$ cal 2021<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"316\" height=\"24\" class=\"wp-image-11989\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-205.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-205.png 316w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-205-300x23.png 300w\" sizes=\"auto, (max-width: 316px) 100vw, 316px\" \/><\/strong><\/p>\n<p>The calendar for the year 2021 i.e. the current year is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"526\" height=\"411\" class=\"wp-image-11992\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-209.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-209.png 526w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-209-300x234.png 300w\" sizes=\"auto, (max-width: 526px) 100vw, 526px\" \/><\/p>\n<h3>Example # 4: Displaying the Calendar for any Specific Year:<\/h3>\n<p>You can also display the whole calendar for any specific year whether it is previous, next, or current with the help of the \u201ccal\u201d command by running it in the manner shown below:<\/p>\n<pre>\r\n<strong>$ cal 2014<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"314\" height=\"24\" class=\"wp-image-11995\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-212.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-212.png 314w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-212-300x23.png 300w\" sizes=\"auto, (max-width: 314px) 100vw, 314px\" \/><\/strong><\/p>\n<p>In this example, we wanted to display the whole calendar for the year 2014 and it is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"534\" height=\"412\" class=\"wp-image-11998\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-215.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-215.png 534w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-215-300x231.png 300w\" sizes=\"auto, (max-width: 534px) 100vw, 534px\" \/><\/p>\n<h3>Example # 5: Displaying the Calendar for the Previous, Current, and Next Month:<\/h3>\n<p>If you just want to display the calendar for the previous, current, and next month of the current year i.e. the calendar for the month of October, November, and December in this case, then you will have to use the \u201ccal\u201d command in the manner shown below:<\/p>\n<pre>\r\n<strong>$ cal -3<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"301\" height=\"27\" class=\"wp-image-11999\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-216.png\" \/><\/strong><\/p>\n<p>The calendar for the previous, current, and next month with the current date highlighted is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"561\" height=\"207\" class=\"wp-image-12000\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-217.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-217.png 561w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-217-300x111.png 300w\" sizes=\"auto, (max-width: 561px) 100vw, 561px\" \/><\/p>\n<h3>Example # 6: Displaying the Julian Calendar for the Current Month:<\/h3>\n<p>You can even display the Julian calendar for the current month by running the \u201ccal\u201d command. Julian calendar is the one in which the dates start from 001 and go up till 365 (for the normal years) and 366 (for the leap year). This can be done with the \u201ccal\u201d command shown below:<\/p>\n<pre>\r\n<strong>$ cal \u2013j<\/strong>\r\n<\/pre>\n<p><strong><img loading=\"lazy\" decoding=\"async\" width=\"291\" height=\"22\" class=\"wp-image-12001\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-218.png\" \/><\/strong><\/p>\n<p>The Julian calendar for the current month with the current date highlighted is shown in the following image:<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" width=\"384\" height=\"171\" class=\"wp-image-12002\" src=\"http:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-219.png\" srcset=\"https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-219.png 384w, https:\/\/linuxways.net\/wp-content\/uploads\/2021\/11\/word-image-219-300x134.png 300w\" sizes=\"auto, (max-width: 384px) 100vw, 384px\" \/><\/p>\n<h2>Conclusion:<\/h2>\n<p>In this article, we talked about the six different methods in which the \u201ccal\u201d command can be used on a Linux Mint 20 system. All of these methods simply imply that the \u201ccal\u201d command is indeed a very useful Linux command.<\/p>","protected":false},"excerpt":{"rendered":"<p>Introduction: There are different built-in commands in Linux that are there to serve some very special purposes. One such commands is the \u201ccal\u201d command that is used to&hellip;<\/p>","protected":false},"author":1,"featured_media":12005,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[],"class_list":["post-11972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-mint"],"_links":{"self":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11972","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/comments?post=11972"}],"version-history":[{"count":0,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/posts\/11972\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media\/12005"}],"wp:attachment":[{"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/media?parent=11972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/categories?post=11972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxways.net\/de\/wp-json\/wp\/v2\/tags?post=11972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}