搜索
查看: 1195|回复: 0

linux文件和目录的ctime,mtime,atime的区别

[复制链接]

146

主题

7

回帖

574

积分

高级会员

积分
574
发表于 2014-8-18 17:00:21 | 显示全部楼层 |阅读模式


st_atime

Time when file data was last accessed. Changed by the
following functions: creat(), mknod(), pipe(),
utime(2), and read(2).

st_mtime
Time when data was last modified. Changed by the fol-
lowing functions: creat(), mknod(), pipe(), utime(),
and write(2).

st_ctime
Time when file status was last changed. Changed by the
following functions: chmod(), chown(), creat(),
link(2), mknod(), pipe(), unlink(2), utime(), and
write().

ctime不是create,是change的意思。

注意:

ls 中的时间,是mtime

ls -lc filename 列出文件的 ctime
ls -lu filename 列出文件的 atime
ls -l filename 列出文件的 mtime

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

 
 
大数据行业交流
大数据行业交流
大数据求职招聘
大数据求职招聘
站长电话:
15010106923
微信联系:
hb-0310
站长邮箱:
ab12-120@163.com
大数据中国微信

QQ   

版权所有: Discuz! © 2001-2013 大数据.

GMT+8, 2024-5-16 12:24 , Processed in 0.099186 second(s), 24 queries .

快速回复 返回顶部 返回列表