linux查看文件按的精确的时间
2013-04-12 16:59
330 查看
Linux 下查看文件时,ls –l 缺省是不显示秒的:
$ ls -l
total 0
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21 README.txt
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21 test.txt
要显示秒(实际更精确),可以用 –full-time 参数:
$ ls --full-time
total 0
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21:15.550557727 +0800 README.txt
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21:23.720354220 +0800 test.txt
要显示更多信息,用 stat 命令:
$ stat test.txt
File: `test.txt'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 801h/2049d Inode: 4980751 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ gps) Gid: ( 1000/ gps)
Access: 2012-06-12 16:21:23.720354220 +0800
Modify: 2012-06-12 16:21:23.720354220 +0800
Change: 2012-06-12 16:21:23.720354220 +0800
http://blog.sina.com.cn/s/blog_6262a50e01015zbl.html
$ ls -l
total 0
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21 README.txt
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21 test.txt
要显示秒(实际更精确),可以用 –full-time 参数:
$ ls --full-time
total 0
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21:15.550557727 +0800 README.txt
-rw-r--r-- 1 gps gps 0 2012-06-12 16:21:23.720354220 +0800 test.txt
要显示更多信息,用 stat 命令:
$ stat test.txt
File: `test.txt'
Size: 0 Blocks: 0 IO Block: 4096 regular empty file
Device: 801h/2049d Inode: 4980751 Links: 1
Access: (0644/-rw-r--r--) Uid: ( 1000/ gps) Gid: ( 1000/ gps)
Access: 2012-06-12 16:21:23.720354220 +0800
Modify: 2012-06-12 16:21:23.720354220 +0800
Change: 2012-06-12 16:21:23.720354220 +0800
http://blog.sina.com.cn/s/blog_6262a50e01015zbl.html
相关文章推荐
- Linux下查看文件精确到秒的修改时间
- Linux 查看文件修改时间(精确到秒)
- Linux 查看文件修改时间(精确到秒)
- [转载]Linux 查看文件修改时间(精确到秒)
- 查看linux系统,服务,配置文件被修改的时间
- linux文件时间的查看和改动touch
- Linux中如何查看文件的最初创建时间
- linux 按文件大小排序和按时间排序查看文件命令
- linux 下查看文件修改时间,访问时间,状态改变时间
- linux 下查看文件修改时间
- linux中用stat查看文件信息的三个时间的含义
- Linux 命令 之 【stat】 查看文件状态。 (包括修改时间)
- linux 下查看文件修改时间,访问时间,状态改变时间
- linux查看文件最近修改时间
- 如何在Linux操作系统查看文件创建时间
- Linux中如何查看文件的最初创建时间
- linux 文件时间查看及修改
- linux 下查看文件修改时间,访问时间,状态改变时间
- linux下的stat命令查看文件系统的时间
- Linux 下查看文件修改时间 等