ncal Command in Linux with Examples Last Updated : 19 Aug, 2024 Comments Improve Suggest changes Like Article Like Report ncal is a command-line tool to view a calendar on the terminal in Linux. It is similar to the cal command in Linux. The major difference between both the commands is the output they display. It shows the current month calendar of the current year with the date highlighted. But with command options, you could even change the month and year. Working with ncal Command1. To view calendar. ncalThis command will display a vertical calendar in the terminal. 2. To remove the highlighting from the current date. ncal -hThis command will not highlight the current date in the output. 3. To display calendar of a specific month of the current year. ncal -m3This command will display the calendar for the month of March of this year which is 2020. 4. To display calendar of a specific year ncal -y 2016This command will display the calendar for the year 2016. 5. To display preceding and upcoming month. ncal -3This command will print the current month calendar along with the calendar of the previous and upcoming months. 6. To print week number below every week. ncal -w This command will print the week number below every week. 7. To print specific months before the current month. ncal -B2This command will display 2 months preceding the current month. 8. To print specific month after the current month. ncal -A2This command will display 2 upcoming months from the current month. 9. To display calendar in horizontal mode. ncal -CThis command will display the calendar in the horizontal mode or in the way cal command displays it. 10. To print a specific month of a specific year. ncal -d 2015-04This command will print the April month of the 2015 year. Comment More infoAdvertise with us Next Article ncal Command in Linux with Examples manav014 Follow Improve Article Tags : Technical Scripter Linux-Unix linux-command Linux-system-commands Similar Reads ln command in Linux with Examples The 'ln' command in Linux is a powerful utility that allows you to create links between files. These links can either be hard links or soft (symbolic) links. If you're unfamiliar with these concepts, check out our detailed guide on Hard and Soft Links in Linux to understand their differences, use ca 3 min read Nmap Command in Linux with Examples Nmap is Linux command-line tool for network exploration and security auditing. This tool is generally used by hackers and cybersecurity enthusiasts and even by network and system administrators. It is used for the following purposes:Â Real time information of a networkDetailed information of all the 6 min read nproc Command in Linux with Examples nproc It is a simple Unix command which is used to print the number of processing units available in the system or to the current process. This command could be used in system diagnostics and related purposes. It is part of GNU Core utils, so it comes pre-installed with all modern Linux operating sy 3 min read uname command in Linux with Examples Linux, renowned for its open-source flexibility and powerful performance, offers a range of commands that reveal the inner workings of your system. Among these, the 'uname' command stands out as a versatile tool that provides key details about your Linux machine. Here, we will learn the basics of th 4 min read rcp Command in Linux with examples When working in a Linux environment, there often comes a time when you need to transfer files from one computer to another. While more secure options like scp or rsync exist, the rcp (Remote Copy Protocol) command offers a simple and efficient way to copy files between systems, especially for beginn 5 min read read command in Linux with Examples read command in the Linux system is used to read from a file descriptor. This command reads up the total number of bytes from the specified file descriptor into the buffer. If the number or count is zero, this command may detect errors. But on success, it returns the number of bytes read. Zero indic 3 min read od command in Linux with example The od (octal dump) command in Linux is a versatile tool used to display file contents in various formats, with the default being octal. This command is particularly useful for debugging scripts, examining binary files, or visualizing non-human-readable data like executable code. It allows users to 6 min read whatis Command in Linux with Examples whatis command in Linux is used to get a one-line manual page description. In Linux, each manual page has some sort of description within it. So, this command search for the manual pages names and show the manual page description of the specified filename or argument. Syntax of the `whatis` command 5 min read printf command in Linux with Examples The 'printf' command in Linux is a versatile tool used to display formatted text, numbers, or other data types directly in the terminal. Like the 'printf' function in programming languages like C, the Linux printf command allows users to format output with great precision, making it ideal for script 4 min read username Command in Linux With Examples Linux as an operating system holds the capabilities of handling multiple users each with a username and a display name (Full Name). So it is important to keep a check on the users and their related information in order to maintain the integrity and security of the system. Whenever a user is added it 4 min read Like