linux下面的三种时间

linux下面的三种时间

命令全程说明
mitmemodify time修改时间(文件内容变化,修改文件保存以后)
ctimechange time属性改变的时间(文件属性、大小、变化、类型、inode、权限、所有者用户组、硬链接数量)
atimeaccess time访问时间(cat)
       -c     with -lt: sort by, and show, ctime (time of last modification of
              file status information); with -l: show ctime and sort by  name;
              otherwise: sort by ctime, newest first

       -u     with  -lt:  sort by, and show, access time; with -l: show access
              time and sort by name; otherwise: sort by access time

ctime

[root@shell ~ 141]# ls -cl
total 8
-rw-r--r--. 1 root root 1031 Aug  4 11:56 2.txt
lrwxrwxrwx. 1 root root    5 Aug  4 00:49 3.txt -> 1.txt
-rw-------. 1 root root 1264 Jul 22 15:19 anaconda-ks.cfg
drwxr-xr-x. 2 root root   61 Aug  4 12:58 test
-rw-rw----. 1 root root    0 Aug  4 11:02 zheng
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.c
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.sh
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.txt

atime

[root@shell ~ 142]# ls -ul
total 8
-rw-r--r--. 1 root root 1031 Aug  3 23:43 2.txt
lrwxrwxrwx. 1 root root    5 Aug  4 00:49 3.txt -> 1.txt
-rw-------. 1 root root 1264 Jul 22 15:19 anaconda-ks.cfg
drwxr-xr-x. 2 root root   61 Aug  4 12:57 test
-rw-rw----. 1 root root    0 Aug  4 11:02 zheng
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.c
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.sh
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.txt

mtime

[root@shell ~ 143]# ls -l 
total 8
-rw-r--r--. 1 root root 1031 Aug  4 11:56 2.txt
lrwxrwxrwx. 1 root root    5 Aug  4 00:49 3.txt -> 1.txt
-rw-------. 1 root root 1264 Jul 22 15:19 anaconda-ks.cfg
drwxr-xr-x. 2 root root   61 Aug  4 12:58 test
-rw-rw----. 1 root root    0 Aug  4 11:02 zheng
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.c
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.sh
-rw-r--r--. 1 root root    0 Aug  4 12:52 zheng.txt
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值