我使用Stat
命令查找文件的最后修改日期,结果为:
File: ‘first.php’
Size: 145 Blocks: 8 IO Block: 4096 regular file
Device: 801h/2049d Inode: 1771067 Links: 1
Access: (0664/-rw-rw-r--) Uid: ( 1000/ fn) Gid: ( 1000/ fn)
Access: 2017-02-28 12:44:32.853785914 +0330
Modify: 2017-02-27 23:22:11.280625946 +0330
Change: 2017-02-27 23:22:11.344625946 +0330
Birth: -
我应该使用什么命令在输出中显示first.php 2017-02-27 23:22:11.280625946 +0330
?
答案 0 :(得分:3)
尝试阅读手册页:
man stat
然后使用格式选项:
stat -c '%n %y'