2012年3月15日 星期四

Display access change modify time in FreeBSD

http://www.cyberciti.biz/faq/howto-finding-files-by-date/
Each file has three time stamps, which record the last time that certain operations were performed on the file:

[a] access (read the file's contents) - atime

[b] change the status (modify the file or its attributes) - ctime

[c] modify (change the file's contents) - mtime

http://www.cyberciti.biz/tips/display-file-or-file-system-status.html

stat

-f
%N Displays the name of file.
%n new line
%t tab

-t timespec

stat -f "%N%n%tAccess: %Sa%n%tModify: %Sm%n%tChange: %Sc" -t "%Y-%m-%d %H:%M:%S" ./*

沒有留言:

張貼留言