lsで古いファイルのタイムスタンプを表示

普通にls -alをすると下記の通り.

# ls -la /etc/ntp.conf
-rw-r--r-- 1 root root 2490 Jul 30 2007 /etc/ntp.conf

調べてみた所,ファイルの時刻が6カ月以上前または1 時間以上先の場合、タイムスタンプには時刻のかわりに年が入るそうです.
参考)http://www.linux.or.jp/JM/html/gnumaniak/man1/ls.1.html


そこで--full-timeオプションを加えて実行.

# ls -la --full-time /etc/ntp.conf
-rw-r--r-- 1 root root 2490 2007-07-30 15:10:30.000000000 +0900 /etc/ntp.conf

これで古いファイルの作成時刻が分かりました^^