- Unix Commands Reference
- Unix - Tutorial Home
cal - Unix, Linux Command
NAME
cal - To display a calendar.
SYNOPSIS
cal [-mjy] [[month] year]
DESCRIPTION
A single parameter specifies the 4 digit year (1 - 9999) to be displayed. Two parameters denote the Month (1 - 12) and Year (1 - 9999). If arguments are not specified, the current month is displayed. A year starts on 01 Jan.
OPTIONS
Tag | Description |
---|---|
-m | Display monday as the first day of the week. |
-j | Display julian dates (days one-based, numbered from January 1). |
-y | Display a calendar for the current year. |
EXAMPLES
To display current month's calendar
$ cal April 2016 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
To display feb 2015 calendar
$ cal 2 2015 February 2015 Su Mo Tu We Th Fr Sa 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
To display complete year calendar.
$ cal -yPrint
Advertisements
To Continue Learning Please Login
Login with Google