linux列出目录下文件的完整时间信息

2019-02-20 16:45:23 阅读量:2098,日阅读:1,周阅读:6,月阅读:35 0条

1、Linux 下查看文件时,ls –l 缺省是不显示秒,如下列出/etc/下文件:

# ls -l /etc/
total 0
-rw-r--r--.  1 root   root         16 Jan  5 09:43 adjtime
-rw-r--r--.  1 root   root       1518 Jun  7  2013 aliases

2、要显示秒(实际更精确),可以用 –full-time 参数:

# ls -l /etc/ --full-time
total 0
-rw-r--r--.  1 root   root         16 2018-01-05 09:43:59.352996227 +0800 adjtime
-rw-r--r--.  1 root   root       1518 2013-06-07 22:31:32.000000000 +0800 aliases
标签: linux 时间

非特殊说明,本博所有文章均为博主原创。

请使用[QQ登录]后进行评论