Cal (Unix)

Cal (Unix)

cal is a standard program on Unix that prints an ASCII calendar of the given month or year. If the user does not specify any options, cal will print a calendar of the current month.

Examples

$ cal October 2008 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 31 $ cal 1992 1992 January February March S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S 1 2 3 4 1 1 2 3 4 5 6 7 5 6 7 8 9 10 11 2 3 4 5 6 7 8 8 9 10 11 12 13 14 12 13 14 15 16 17 18 9 10 11 12 13 14 15 15 16 17 18 19 20 21 19 20 21 22 23 24 25 16 17 18 19 20 21 22 22 23 24 25 26 27 28 26 27 28 29 30 31 23 24 25 26 27 28 29 29 30 31 April May June S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S 1 2 3 4 1 2 1 2 3 4 5 6 5 6 7 8 9 10 11 3 4 5 6 7 8 9 7 8 9 10 11 12 13 12 13 14 15 16 17 18 10 11 12 13 14 15 16 14 15 16 17 18 19 20 19 20 21 22 23 24 25 17 18 19 20 21 22 23 21 22 23 24 25 26 27 26 27 28 29 30 24 25 26 27 28 29 30 28 29 30 31 July August September S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S 1 2 3 4 1 1 2 3 4 5 5 6 7 8 9 10 11 2 3 4 5 6 7 8 6 7 8 9 10 11 12 12 13 14 15 16 17 18 9 10 11 12 13 14 15 13 14 15 16 17 18 19 19 20 21 22 23 24 25 16 17 18 19 20 21 22 20 21 22 23 24 25 26 26 27 28 29 30 31 23 24 25 26 27 28 29 27 28 29 30 30 31 October November December S M Tu W Th F S S M Tu W Th F S S M Tu W Th F S 1 2 3 1 2 3 4 5 6 7 1 2 3 4 5 4 5 6 7 8 9 10 8 9 10 11 12 13 14 6 7 8 9 10 11 12 11 12 13 14 15 16 17 15 16 17 18 19 20 21 13 14 15 16 17 18 19 18 19 20 21 22 23 24 22 23 24 25 26 27 28 20 21 22 23 24 25 26 25 26 27 28 29 30 31 29 30 27 28 29 30 31

Features

$ cal 9 1752 September 1752 S M Tu W Th F S 1 2 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30

The Gregorian reformation was adopted by the Kingdom of Great Britain, including its possessions in North America (later to become eastern USA), in September 1752. As a result the September 1752 cal shows the adjusted days missing. This month was the official (British) adoption of the Gregorian calendar from the previously used Julian calendar. This has been documented in the man pages for Sun Solaris as follows. "An unusual calendar is printed for September 1752. That is the month 11 days were skipped to make up for lack of leap year adjustments." The Plan 9 from Bell Labs manual states: "Try cal sep 1752."

History

The cal command was present in 1st Edition Unix.

See also

* List of Unix programs
* Cron process for scheduling jobs to run on a particular date.

References

External links

*man|cu|cal|SUS|print a calendar
* [http://netbsd.gw.com/cgi-bin/man-cgi?cal++NetBSD-current NetBSD manual page for cal]
* [http://www.csd.uwo.ca/staff/magi/personal/humour/Computer_Audience/'cal%209%201752'%20explained.html Source of explanation of cal 9 1752 phenomena] (humor)
* [http://www.skytouch.com/cgi-bin/calendar Calendar] , seems to be a web interface for cal


Wikimedia Foundation. 2010.

Игры ⚽ Нужно сделать НИР?

Look at other dictionaries:

  • Cal (Unix) — Saltar a navegación, búsqueda cal es una instrucción de UNIX que muestra el calendario mensual. Sin argumentos, cal muestra el calendario del mes actual. Si se indica un argumento, se muestra el calendario de ese año. Si se indican dos argumentos …   Wikipedia Español

  • Cal (Unix) — cal es una instrucción de UNIX que muestra el calendario mensual. Sin argumentos, cal muestra el calendario del mes actual. Si se indica un argumento, se muestra el calendario de ese año. Si se indican dos argumentos numéricos, el primero se… …   Enciclopedia Universal

  • cal (Unix) — Pour les articles homonymes, voir CAL. cal est le nom du programme sous UNIX qui permet d afficher le calendrier. Son nom provient de l anglais calendar (calendrier). Il existe aussi une version améliorée, ncal. Ces commandes sont aujourd hui… …   Wikipédia en Français

  • Cal — may refer to: * Chronic Obstructive Pulmonary Disease, ie, CAL = Chronic Airway Limitation * cal (Unix), a standard program on Unix that prints an ASCII calendar of the given month or year * Cal (novel), a 1983 novel by Bernard MacLaverty, about… …   Wikipedia

  • CAL —  Pour l’article homophone, voir Cale. Cette page d’homonymie répertorie les différents sujets et articles partageant un même nom.   Sigles d’une seule lettre    …   Wikipédia en Français

  • cal — (от англ. calendar) UNIX‐утилита, отображающая простой календарь. Если аргументы не указаны, то выводится календарь на текущий месяц. Использование cal [ smjy13] [[month] year] Возможны следующие опции: 1 Выводит календарь только на один… …   Википедия

  • Cal — (от англ. calendar) UNIX‐утилита, отображающая простой календарь. Если аргументы не указаны, то выводится календарь на текущий месяц. Использование cal [ smjy13] [[month] year] Возможны следующие опции: 1 Выводит календарь только на один месяц.… …   Википедия

  • Unix — (marque déposée officiellement comme UNIX, parfois aussi écrit comme Unix avec les petites capitalisations) est le nom d un système d exploitation multitâche et multi utilisateur créé en 1969, conceptuellement ouvert et fondé sur une approche par …   Wikipédia en Français

  • Unix — (registrado oficialmente como UNIX®) es un sistema operativo portable, multitarea y multiusuario; desarrollado, en principio, en 1969 por un grupo de empleados de los laboratorios Bell de AT T, entre los que figuran Ken Thompson, Dennis Ritchie y …   Wikipedia Español

  • UNIX — UNIX, parfois écrit « Unix », avec des petites capitales, est un système d exploitation multitâche et multi utilisateur créé en 1969, conceptuellement ouvert et fondé sur une approche par laquelle il offre de nombreux petits outils… …   Wikipédia en Français

Share the article and excerpts

Direct link
Do a right-click on the link above
and select “Copy Link”