有没有办法知道在Ubuntu的文件创建时间? [英] Is there a way to know the creation time of a file in ubuntu?
本文介绍了有没有办法知道在Ubuntu的文件创建时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
解决方案
不幸的是,Unix并没有存储文件的创建时间。
您可以使用 stat 是
- 最后一次访问时间
- 上次修改时间 >
- 上次状态更改的时间
$ b 注意: strong> ext4 crtime 可用!
i am using ubuntu and want to know the creation time of a file even when it gets modified or accessed ?
解决方案
Unfortunately Unix does not store the creation time of a file.
All you are able to get using stat is
- time of last access
- time of last modification
- time of last status change
Note: When using filesystem type ext4 crtime is available!
这篇关于有没有办法知道在Ubuntu的文件创建时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文