[[email protected] ~]# stat test/test2
File: ‘test/test2‘
Size: 0 Blocks: 0 IO Block: 4096 普通空文件
Device: 803h/2051d Inode: 261657 Links: 1
Access: (0744/-rwxr--r--) Uid: ( 500/ user1) Gid: ( 500/testgroup)
Access: 2013-05-10 09:00:36.092000531 +0800
Modify: 2013-05-10 09:00:36.092000531 +0800
Change: 2013-05-10 09:30:58.788996594 +0800
atime不一定在访问文件之后被修改,因为:使用ext3文件系统的时候,如果在mount的时候使用了noatime参数那么就不会更新atime的信息。总之, 這三個 time stamp 都放在 inode 中。若 mtime, atime 修改inode 就一定會改, 既然 inode 改了, 那 ctime 也就跟着要改了。
阿铭继续’find’常用选项:
‘-name filename’ 直接查找该文件名的文件,这个选项使用很多。[[email protected] ~]# find . -name test2
./test/test2
./test2
‘-type filetype’ 通过文件类型查找。文件类型在前面部分已经简单介绍过,相信您已经大体上了解了。filetype 包含了 f, b, c, d, l, s 等。[[email protected] ~]# find /tmp/ -type d
/tmp/
/tmp/.ICE-unix
/tmp/test
[[email protected] ~]# find /tmp/ -type f
/tmp/yum.log
/tmp/.bash_history
/tmp/ip.txtStat 后缀文件Access 访问时间Modify;创建或更改时间Change 更改元数据时间Date 看时间