请问ls -l 的时间是什么时间,相当于atime,ctime,还是mtime??? 如果我想把目录下面的所有(ls -l)显示的时间距今超过90天的文件全部删除,find应该用哪个参数?
by wondershow - Shell - 2004-12-18 22:01:21 阅读(1651) 回复(2)
atime: access time mtime: modify time (timestamp) ctime: change time mtime 和ctime 的区别在于是更改文件内容,还是更改文件属性。前者是文件内容发生了变化,后者是文件的索引节点发生变化。 如,touch 文件abc.123,看atime, mtime, ctime #istat abc.123 Inode 1271 on device 10/4 File Protection: rw-r--r-- Owner: 0(root) Group: 0(system) Link count: 1 Length...
I just want to konw how we can find out the atime,ctime.mtime attributes of a file,are there any commands? for example we can use this attribute in find,but how can we find out the detail informination of atime,ctime,mtime attributes of a file or a directory?
请教如何同时列出access time(atime) 和 change time(ctime) ? 有什么ls 的选项吗? 我查了 GNU ls 也没找到.
首先,我们先来看一下ctime ,atime , mtime之间的关系和区别: atime: access time mtime: modify time (timestamp) ctime: change time 文件的 Access time,atime 是在读取文件或者执行文件时更改的。 文件的 Modified time,mtime 是在写入文件时随文件内容的更改而更改的。 文件的 Create time,ctime 是在写入文件、更改所有者、权限或链接设置时随 Inode 的内容更改而更改的。 mtime 和ctime 的区别在于是...
请问 -ctime 和 -mtime 有什么关系 ? 如果父目录的 ctime 改变, 那它下面的文件的 ctime 就会自动都改了吗 ? -ctime 和 -mtime ,-atime 这些信息是存在哪儿呢 ? 多谢!
请教如何同时列出access time(atime) 和 change time(ctime) ? 有什么ls 的选项吗?