本文共 523 字,大约阅读时间需要 1 分钟。
linux mtime
How to get the mtime
of a file on from the file’s path?
如何从文件路径获取上文件的mtime
?
You can use to get the file status including the mtime:
您可以使用来获取文件状态,包括mtime:
%y time of last modification, human-readable %Y time of last modification, seconds since%y time of last modification, human-readable %Y time of last modification, seconds since
As an example,
举个例子,
$ stat -c %y ./file 2017-06-26 13:33:06.764042064 +0800$ stat -c %Y ./file 1498455186
翻译自:
linux mtime
转载地址:http://khowd.baihongyu.com/