如何在Linux中获得“文件创建时间" [英] How to get 'file creation time' in Linux

查看:93
本文介绍了如何在Linux中获得“文件创建时间"的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要找出在Linux上使用C ++创建文件的时间和日期.

I need to find out at what time and date a file has been created using C++ in Linux.

推荐答案

4.8文件时间更新:

在Linux中:与文件关联的三个不同的时间戳:

In Linux: three distinct timestamps associated with a file:

  • 上次访问内容(atime)的时间,
  • 内容的最后修改时间(mtime),
  • 以及索引节点的最后修改时间(元数据,ctime).
  • time of last access of contents (atime),
  • time of last modification of contents (mtime),
  • and time of last modification of the inode (metadata, ctime).

因此,不,您无法找到文件创建时间. (参考).一些与您有关的有用链接:

So, no, you cannot find file creation time. (reference). Some useful Links related to you question:

  • How do I do a ls and then sort the results by date created?
  • Get file created/creation time?
  • A good article, "file creation times".

这篇关于如何在Linux中获得“文件创建时间"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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