2022-02-14 03:22:51 +01:00
|
|
|
---
|
|
|
|
title: cal
|
|
|
|
layout: command
|
|
|
|
version: 0.59.0
|
|
|
|
---
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
Display a calendar.
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Signature
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
```> cal --year --quarter --month --full-year --week-start --month-names```
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Parameters
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
- `--year`: Display the year column
|
|
|
|
- `--quarter`: Display the quarter column
|
|
|
|
- `--month`: Display the month column
|
|
|
|
- `--full-year {int}`: Display a year-long calendar for the specified year
|
|
|
|
- `--week-start {string}`: Display the calendar with the specified day as the first day of the week
|
|
|
|
- `--month-names`: Display the month names instead of integers
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
## Examples
|
2020-05-10 01:05:48 +02:00
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
This month's calendar
|
2020-05-10 01:05:48 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> cal
|
2020-05-10 01:05:48 +02:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
The calendar for all of 2012
|
2020-05-10 01:05:48 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> cal --full-year 2012
|
2020-05-10 01:05:48 +02:00
|
|
|
```
|
|
|
|
|
2022-02-14 03:22:51 +01:00
|
|
|
This month's calendar with the week starting on monday
|
2020-05-10 01:05:48 +02:00
|
|
|
```shell
|
2022-02-14 03:22:51 +01:00
|
|
|
> cal --week-start monday
|
2020-05-10 01:05:48 +02:00
|
|
|
```
|