Access, Modify, Change Time of Linux File
2014-03-18 08:15
435 查看
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 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
相关文章推荐
- 【Linux】Linux下的Access time/Modify time/Change time三个时间
- linux中文件的accesstime/modifytime/changetime的区别
- Linux下文件权限及三个时间:Access,Modify,Change
- Linux下的 Access Modify Change
- linux下Access、Modify、Change时间的查看和修改
- 【整理归纳】Linux中文件的Access,Modify,Change区别
- Linux权限以及Stat命令中的Access、Modify、Change
- Linux下的Access、Modify、Change , touch的使用以及权限问题
- linux下的access,modify,和change
- Linux系统文件有三个主要的时间属性,分别是ctime(change time), atime(access time), mtime(modify time)
- Linux中对于Access,Modify,Change的解释
- 【Linux】Linux下stat命令后Access,Modify,Change的含义
- 按照 access/modify/change time 来给文件排序 --- 我的秘笈:)
- Linux权限问题以及Stat命令中的Access、Modify、Change
- linux的3个时间点的定义和使用方法 Access,Modify,Change
- Linux三个时间: Access,Modify,Change以及-r,-w,-x所对应的权限问题
- Linux环境,使用C语言获得文件access、modify、change的时间
- Linux的权限&Access/Modify/Change时间
- [Linux] Touch--Change the time of files after changing your system time
- 认识和修改在Linux中stat命令下出现的Access,Modify,Change三类时间