linuxのファイル更新日について
linuxにおけるファイルの更新日についてわけがわからなくなったので、まとめてみました。
まんがでわかるLinux シス管系女子(日経BP Next ICT選書)
- 作者: Piro(結城洋志)
- 出版社/メーカー: 日経BP社
- 発売日: 2015/02/19
- メディア: Kindle版
- この商品を含むブログを見る
mtime
ファイルが最終変更された日付
# ls -l file.txt -rw-r--r-- 1 root root 811510 Aug 7 12:57 file.txt
atime
ファイルがアクセスされた最終日付
# ls -lu file.txt -rw-r--r-- 1 root root 811510 Jan 19 03:54 file.txt
ctime
ファイルが最終変更された日付、createじゃないよ!change
mtimeと違うのは、inode に変更が生じた時もそうなるってこと * ファイル名 * ファイルサイズ * パーミッション * リンク数 * オーナー・グループ
# ls -lc file.txt -rw-r--r-- 1 root root 811510 Jan 19 03:51 file.txt
単なるメモです