Cal_(UNIX)
[Wikipedia|▼Menu]

calは、Unix系オペレーティングシステムにおける標準的なコマンドラインプログラムで、引数として与えられた年または年月のASCII文字列によるカレンダーを表示する。引数が与えられなかった場合は、コマンドが実行された時点の年月のカレンダーを表示する。
表示列$ cal March 2012 S M Tu W Th F S 1 2 3 4 5 6 7 8 9 1011 12 13 14 15 16 1718 19 20 21 22 23 2425 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 1412 13 14 15 16 17 18 9 10 11 12 13 14 15 15 16 17 18 19 20 2119 20 21 22 23 24 25 16 17 18 19 20 21 22 22 23 24 25 26 27 2826 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 1312 13 14 15 16 17 18 10 11 12 13 14 15 16 14 15 16 17 18 19 2019 20 21 22 23 24 25 17 18 19 20 21 22 23 21 22 23 24 25 26 2726 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 1212 13 14 15 16 17 18 9 10 11 12 13 14 15 13 14 15 16 17 18 1919 20 21 22 23 24 25 16 17 18 19 20 21 22 20 21 22 23 24 25 2626 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 1211 12 13 14 15 16 17 15 16 17 18 19 20 21 13 14 15 16 17 18 1918 19 20 21 22 23 24 22 23 24 25 26 27 28 20 21 22 23 24 25 2625 26 27 28 29 30 31 29 30 27 28 29 30 31$ cal 5 2009 May 2009 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 9 1752 September 1752 S M Tu W Th F S 1 2 14 15 1617 18 19 20 21 22 2324 25 26 27 28 29 30

グレートブリテン王国(後にアメリカ合衆国東部となるイギリスの北米植民地を含む)では、1752年9月にグレゴリオ暦への改暦が行われ、ユリウス暦9月2日の翌日がグレゴリオ暦9月14日となった。calはそれを反映して、1752年9月はスキップされた3日から13日までが表示されないようになっている。calのこの仕様は、Sun SolarisのManページに、「1752年9月は変わったカレンダーが表示される。この月は、閏年調整を欠いたことの埋め合わせに11日間がスキップされた」と明記されている。Plan 9のマニュアルには「cal sep 1752を試してみよう」とだけ書かれている。

calコマンドはUnixの最初のバージョンから存在する。
関連項目

UNIXユーティリティの一覧

参考資料.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-100{font-size:100%}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}

cal
: print a calendar ? The Open Group基本仕様書第7号2018年版「シェル及びユーティリティ」

外部リンク

cal(1)
 ? NetBSD General Commands Manual(en)

Source of explanation of cal 9 1752 phenomena (humor)










Unixコマンド
ファイルとファイルシステム管理

cat

chattr(英語版)

chmod

chown

chgrp

cksum

cmp

cp

dd

du

df(英語版)

file

fsck

fuser(英語版)

ln

ls

lsof

mkdir

mount

mv

pax

pwd

rm

rmdir

size

split

tee

touch

type(英語版)

umask(英語版)

プロセス管理

at

bg

chroot

cron

fg

kill

killall

nice

pgrep

pidof

pkill

ps

pstree(英語版)

reboot

shutdown

time

top

ユーザ管理/環境

clear

env

exit

finger

history(英語版)

id

logname(英語版)

mesg

passwd

su

sudo

uptime

talk

tput(英語版)

uname

w

wall

who

whoami

write

テキスト処理

awk

banner

basename

comm(英語版)

csplit(英語版)

cut

diff

dirname

ed

ex(英語版)

fmt

fold(英語版)

head

iconv

join(英語版)

less

m4

more

nkf

nl

paste(英語版)

patch

printf(英語版)

read(英語版)

sed

sort

spell(英語版)

strings

tail

tr

troff

uniq

vi

wc

xargs

yes

シェルビルトイン

alias

cd

echo

test(英語版)

unset

wait

通信

dig

host(英語版)

ifconfig

inetd

ip (iproute2)

netcat

netstat

nslookup

ping

rdate(英語版)

rlogin

route

ssh

traceroute

検索

find

grep

locate(英語版)

whatis(英語版)


次ページ
記事の検索
おまかせリスト
▼オプションを表示
ブックマーク登録
mixiチェック!
Twitterに投稿
オプション/リンク一覧
話題のニュース
列車運行情報
暇つぶしWikipedia

Size:13 KB
出典: フリー百科事典『ウィキペディア(Wikipedia)
担当:undef