首页 > 数据库技术 > 详细

Access, Modify, Change Time of Linux File

时间:2014-03-18 11:51:52      阅读:537      评论:0      收藏:0      [点我收藏+]

All these 3 time can be viewed by "stat " command.

Access time is influenced by read operation, such as command cat, more, less, head, tail, grep, sed, etc. This time is queried by "find . -atime -1", and can be set by "touch -a" command;

Change time is the time when inode is changed, which influenced by command mv, chmod, chown, etc;

Modification time is the time the content of the file changed, and be listed by "ls -l" command. It‘s influenced by command vi, etc, and can be set by "touch -m" command;

"touch -t" set access and modification time to the specified time;

Creation time is not saved. So it‘s impossible to query files according to creation time;

Ref:

Linux文件的??access time,change time,modify time

http://stackoverflow.com/questions/14842195/how-to-get-file-creation-date-time-in-bash-debian

Access, Modify, Change Time of Linux File,布布扣,bubuko.com

Access, Modify, Change Time of Linux File

原文:http://www.cnblogs.com/darkmatter/p/3606841.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!