linux中的ctime atime mtime
2011-05-13 15:58
330 查看
Linux系统中文件的时间有3类,分别是ctime(chage time ) atime(access time ) mtime(modified time),默认情况下ls显示出来的是mtime.这3个的区别今天做个总结,忘性太大~_~.
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()
atime ---当文件被读取或执行的时候时间会改变
ctime ---当文件的权限、名称或i-node改变的时候时间会改变
mtime ---当文件内容改变的时候时间会改变,这个时候ctime 和atime也会改变
查看方法--time=atime | ctime --full-time本文出自 “Fight For Free & Union” 博客,请务必保留此出处http://renpeng.blog.51cto.com/623897/564925
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()
atime ---当文件被读取或执行的时候时间会改变
ctime ---当文件的权限、名称或i-node改变的时候时间会改变
mtime ---当文件内容改变的时候时间会改变,这个时候ctime 和atime也会改变
查看方法--time=atime | ctime --full-time本文出自 “Fight For Free & Union” 博客,请务必保留此出处http://renpeng.blog.51cto.com/623897/564925
相关文章推荐
- Linux下的ctime,mtime和atime的区别
- Linux之 find之 ctime,atime,mtime
- 关于Linux中的几个时间变量atime,ctime,mtime
- 【Linux】 atime、ctime、mtime 概述
- Linux - find命令搭配atime/ctime/mtime的写法
- linux中ctime,mtime,atime的区别
- Linux下文件的三个时间:ctime、mtime、atime的区别
- Linux之 find之 ctime,atime,mtime
- linux文件的mtime,ctime,atime
- linux中ctime,mtime,atime的区别
- linux中文件的三种time(atime,mtime,ctime)
- Linux下文件的mtime/atime/ctime研究
- linux中ctime、mtime、atime的区别
- Linux下文件的三个时间(Atime,Mtime,Ctime)
- Linux文件与目录的三种时间状态(mtime,atime,ctime)区别
- LINUX下三个时间点--atime,ctime,mtime解析
- Linux - atime,mtime,ctime以及用touch指令来进行修改
- Linux下文件系统的三个主要时间属性atime、ctime、mtime
- linux文件时间参数atime,ctime,mtime
- linux中三个time:atime、mtime、ctime