博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
linux mtime_如何在Linux上获取文件的mtime?
阅读量:2516 次
发布时间:2019-05-11

本文共 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
Answered by Eric Z Ma.
埃里克·马(Eric Z Ma)回答。

翻译自:

linux mtime

转载地址:http://khowd.baihongyu.com/

你可能感兴趣的文章
AOP面向切面编程C#实例
查看>>
访问修饰符、封装、继承
查看>>
更换pip源到国内镜像,提升pip下载速度.
查看>>
Kendo MVVM 数据绑定(七) Invisible/Visible
查看>>
插入返回ibatis 的selectKey 实现插入数据后获得id
查看>>
解决win7下打开Excel2007,报“向程序发送命令时出现问题”的错误
查看>>
Win form碎知识点
查看>>
避免使用不必要的浮动
查看>>
第一节:ASP.NET开发环境配置
查看>>
sqlserver database常用命令
查看>>
rsync远程同步的基本配置与使用
查看>>
第二天作业
查看>>
访问属性和访问实例变量的区别
查看>>
Spring MVC 异常处理 - SimpleMappingExceptionResolver
查看>>
props 父组件给子组件传递参数
查看>>
【loj6038】「雅礼集训 2017 Day5」远行 树的直径+并查集+LCT
查看>>
十二种获取Spring的上下文环境ApplicationContext的方法
查看>>
UVA 11346 Probability 概率 (连续概率)
查看>>
linux uniq 命令
查看>>
Openssl rand命令
查看>>