2012年7月31日火曜日

[linux]find atime ctime mtime

linuxの日付周り色々あってややこしい。

http://ysweb.blog116.fc2.com/blog-entry-5.html

atime:ls -lu
ctime:ls -lc
mtime:ls -l
find のオプション atime ctime mtime それぞれは ls コマンドの上記オプションで参照できる日付と対応している。

で、一個ずつ見るのめんどくさいのでこんなのもある。
linuxなら、って記述されてたけどSolarisとかだとできねーの?
知らんけど。

stat /path/to/file

こんなん。

Access
Modify
Change

みたいなんがあるけどこれがそれぞれ atime ctime mtime に対応してるっぽい。


0 件のコメント:

コメントを投稿