Unix-commands-cal

提供:Dev Guides
移動先:案内検索

cal-Unix、Linuxコマンド

NAME

*cal* -カレンダーを表示します。

概要

cal [-mjy] [[month] year]

説明

単一のパラメーターは、表示する4桁の年(1-9999)を指定します。 2つのパラメーターは、月(1〜12)と年(1〜9999)を示します。 引数が指定されていない場合、現在の月が表示されます。 1年は1月1日から始まります。

オプション

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.

今月のカレンダーを表示するには

$ 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

2015年2月のカレンダーを表示するには

$ 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

完全な年カレンダーを表示します。

$ cal -y

link:/cgi-bin/printpage.cgi [__印刷]