有没有办法知道在Ubuntu的文件创建时间? [英] Is there a way to know the creation time of a file in ubuntu?

查看:278
本文介绍了有没有办法知道在Ubuntu的文件创建时间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用ubuntu,想要知道文件的创建时间,即使它被修改或访问?

解决方案

不幸的是,Unix并没有存储文件的创建时间。

您可以使用 stat


  1. 最后一次访问时间

  2. 上次修改时间
  3. >
  4. 上次状态更改的时间


$ 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

  1. time of last access
  2. time of last modification
  3. time of last status change

Note: When using filesystem type ext4 crtime is available!

这篇关于有没有办法知道在Ubuntu的文件创建时间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆