When you use the cal command, you will see the current month and the current date selected, if you want to see the next month Calneder as well you can make use -A1 option along with the cal command.
mac ~ % cal -A1
August 2021 September 2021
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7 1 2 3 4
8 9 10 11 12 13 14 5 6 7 8 9 10 11
15 16 17 18 19 20 21 12 13 14 15 16 17 18
22 23 24 25 26 27 28 19 20 21 22 23 24 25
29 30 31 26 27 28 29 30
Similarly if you want to see forward 2 months use -A2
mac ~ % cal -A2
August 2021 September 2021 October 2021
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 5 6 7 1 2 3 4 1 2
8 9 10 11 12 13 14 5 6 7 8 9 10 11 3 4 5 6 7 8 9
15 16 17 18 19 20 21 12 13 14 15 16 17 18 10 11 12 13 14 15 16
22 23 24 25 26 27 28 19 20 21 22 23 24 25 17 18 19 20 21 22 23
29 30 31 26 27 28 29 30 24 25 26 27 28 29 30
31
To see previous months you can use -B1, -B2, etc
mac % cal -B2
June 2021 July 2021 August 2021
Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa Su Mo Tu We Th Fr Sa
1 2 3 4 5 1 2 3 1 2 3 4 5 6 7
6 7 8 9 10 11 12 4 5 6 7 8 9 10 8 9 10 11 12 13 14
13 14 15 16 17 18 19 11 12 13 14 15 16 17 15 16 17 18 19 20 21
20 21 22 23 24 25 26 18 19 20 21 22 23 24 22 23 24 25 26 27 28
27 28 29 30 25 26 27 28 29 30 31 29 30 31
More Posts related to Linux,
- How to remove/delete a directory in Linux/macOs
- What does apt-get update command does?
- How to quit or exit SFTP Prompt on Terminal
- How to exit from nano command
- Rename a directory using Linux/Unix command
- Calculate days between dates using dateutils ddiff command
- 3 Commands to stop Nginx Server
- How to use SCP Command to Copy Directory
- bash: cls: command not found
- How to Install CVS Version Control on Linux/Ubuntu
- Copy entire directory using Terminal Command [Linux, Mac, Bash]
- [Ubuntu] Search a package and versions using apt command
- zsh hello world example
- SCP Copy all files from directory to Local Folder
- Create Hidden File or Directory using Shell Command
- Check SSH/OpenSSH version Command
- How to install python pip on Ubuntu using apt command
- How to remove or uninstall Java from Ubuntu using apt-get
- How to change bash terminal prompt string and color
- scp: ssh: connect to host xxxx port 22: Connection refused Error
- ls command sort by file size [Linix/UNIX/macOS/bash]
- Install Java Runtime Environment (Oracle or open JRE) on Ubuntu
- How to tar.gz a directory/folder
- Terminal display next month Calendar
- 3 ways to clear screen on Linux Terminal
More Posts:
- How to remove Siri from Menu Bar [macOS Big Sur] - MacOS
- How to fix Microsoft Windows 10 update error 80070020 - Microsoft
- Bootstrap Nav Menu Dropdown on hover - Bootstrap
- Android Parsing Data for android-L failed Unsupported major.minor version 51.0 Error - Android
- How to open a new tab in Notepad++ - NotepadPlusPlus
- Notepad++ Editor alternatives for Mac OS X - NotepadPlusPlus
- Create SharePoint Site Collection with new Content database in existing web application - SharePoint
- Change Height of Android ActionBar - Android