html tool

2017年6月8日星期四

stat 使用秒钟数显示文件的最后修改时间


stat -c "%Y" $file

man stat 中说明
       %y     time of last modification, human-readable

       %Y     time of last modification, seconds since Epoch


$ stat -c "%Y" tmp
1496977331
$ stat -c "%y" tmp
2017-06-09 11:02:11.226308111 +0800



没有评论:

发表评论