linux 中查看文件的具体时间

 

001、 ll 只能显示日期

[root@PC1 test01]# ls
a.txt
[root@PC1 test01]# ll             ##  ll命令显示日期
total 4
-rw-r--r--. 1 root root 21 Jul 17 16:51 a.txt

 

002、stat显示完整的日期

[root@PC1 test01]# ls
a.txt
[root@PC1 test01]# stat a.txt
  File: ‘a.txt’
  Size: 21              Blocks: 8          IO Block: 4096   regular file
Device: fd00h/64768d    Inode: 20891003    Links: 1
Access: (0644/-rw-r--r--)  Uid: (    0/    root)   Gid: (    0/    root)
Context: unconfined_u:object_r:home_root_t:s0
Access: 2023-07-17 16:51:33.225020102 +0800
Modify: 2023-07-17 16:51:33.229020102 +0800
Change: 2023-07-17 16:51:33.229020102 +0800
 Birth: -

 。

 

posted @ 2023-07-17 08:59  小鲨鱼2018  阅读(1539)  评论(0编辑  收藏  举报