mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-01-26 11:33:59 +00:00
38 lines
668 B
Plaintext
38 lines
668 B
Plaintext
---
|
|
syntax: markdown
|
|
tags: [tldr, linux]
|
|
source: https://github.com/tldr-pages/tldr.git
|
|
---
|
|
# cal
|
|
|
|
> Display a calendar with the current day highlighted.
|
|
> More information: <https://manned.org/cal>.
|
|
|
|
- Display a calendar for the current month:
|
|
|
|
`cal`
|
|
|
|
- Display 3 months spanning the date:
|
|
|
|
`cal {{[-3|--three]}}`
|
|
|
|
- Display the whole calendar for the current year:
|
|
|
|
`cal {{[-y|--year]}}`
|
|
|
|
- Display the next twelve months:
|
|
|
|
`cal {{[-Y|--twelve]}}`
|
|
|
|
- Use Monday as the first day of the week:
|
|
|
|
`cal {{[-m|--monday]}}`
|
|
|
|
- Display a calendar for a specific year (4 digits):
|
|
|
|
`cal {{year}}`
|
|
|
|
- Display a calendar for a specific month and year:
|
|
|
|
`cal {{month}} {{year}}`
|