うい。
先日、Linux 関連で、ab (Apache Bench)について書いてみたのだが。。。
良く考えるとabってかなりコマンドの中ではかなり先頭にあるんじゃねーか?
と思って
]# a [TAB][TAB]
と実行してみると。。。やはり。。。
で、つい訳もなく、その他のコマンドを追っかけてみる。
これでブログのネタに困る事もなくなるだろう(って、別にブログそんなに書いてないけど)。
ちなみに、RHEL6相当の環境下で当面は書かせてください。
ac コマンド
===========
]# whatis ac
ac (1) - print statistics about users' connect time
===========
man ac (1) から抜粋
ac prints out a report of connect time (in hours) based on the lo-
gins/logouts in the current wtmp file. A total is also printed out.
なるほど。とりあえず実行すべさ。
=======
]# ac
total 11425.43
=======
フムフム。何これ。時間数なの?多分そう。
=======
~]# ac -p
test 196.52
test2 0.29
root 10.09
hoge 11218.73
total 11425.62
=======
アカウント毎ってことのようで、hogeさん頑張ってるね。
このブログ自体、hogeで頑張ってみてるわけですが。
=======
]# ac -p root
root 10.09
total 10.09
=======
ああ。やっぱりユーザ名も受け付けるのね。
次は。。。日毎??
======
] ac -d
(出力略)
Aug 23 total 30.32
Aug 25 total 95.10
Aug 26 total 27.21
Aug 31 total 18.88
Sep 5 total 235.22
Sep 6 total 34.76
======
ん??何だこれ。。。時間数とは思いがたいな。。。分数にしても。。。変な気もする。
混乱してきたぞい。
組み合わせてみる。
] ac -d -p hoge
Aug 31 total 18.88
hoge 235.22
Sep 5 total 235.22
hoge 34.76
Sep 6 total 34.76
hoge 20.79
Today total 20.79
うーん。。やっぱり時間数ではないようだね。。。
