美文网首页
3 kinds of timestamps 2023-02-15

3 kinds of timestamps 2023-02-15

作者: 9_SooHyun | 来源:发表于2023-02-14 16:35 被阅读0次

3 kinds of timestamps

Access - the last time the file was read
Modify - the last time the file was modified (content has been modified)
Change - the last time meta data(the data stored in inode) of the file was changed (e.g. permissions)

To display this information, you can use stat which is part of the coreutils.

[root@TEN /]# stat test.tgz 
  File: test.tgz
  Size: 43816570        Blocks: 85584      IO Block: 4096   regular file
Device: 10302h/66306d   Inode: 416278      Links: 1
Access: (0666/-rw-rw-rw-)  Uid: (    0/    root)   Gid: (    0/    root)
Access: 2023-02-15 14:44:53.000000000 +0800
Modify: 2023-01-16 17:35:14.000000000 +0800
Change: 2023-02-15 14:44:53.117573290 +0800
 Birth: 2023-02-15 14:44:52.753572208 +0800  # 文件在本机的createtime
[root@TEN /]# 

Some file systems support an additional entry in the inode regarding the creation time (or birth time). I know that ext4 supports this feature and also JFS and BTRFS.

ls -l显示的是mtime

相关文章

  • Kinds of Errors(3)

    对于洛克的这个清单,我们还应该增加一种类型:那些对已经形成的观点从来不费心检验的人。这些人是所有人中经常出错的,因...

  • Kinds of Errors3

    那些决心让激情而不是理智支配他们生活的人。这些人只受支持他们偏见的推理的影响。 那些真诚追随理智,但缺乏健全,整体...

  • Kinds of Errors3

    那些根本不理智的人,却像周围的人那样思考和行动--父母,邻居,教士或者他们钦佩和尊敬的任何人。这样的人要避免伴随思...

  • ffmpeg # copyts

    -copyts -copytsDo not process input timestamps, but keep ...

  • Linux 命令分类_文件时间戳管理工具

    touch change file timestamps Update the access and ...

  • 今日盘点

    比特币白皮书 2. 交易transactions 3. 时间戳服务器 Timestamps Server文字都不多...

  • 2019-03-16两篇TED感想

    First:3 kinds of bias that shape your worldview By J. Mar...

  • Flink-Streaming-EventTime

    OverviewGenerating Timestamps / WatermarksPre-defined Tim...

  • laravel

    去除updated_at;public $timestamps = false; Session Response...

  • Rails 5 更新数据不更新updated_at字段

    Rails 5 updating a record without updating timestamps htt...

网友评论

      本文标题:3 kinds of timestamps 2023-02-15

      本文链接:https://www.haomeiwen.com/subject/xrmekdtx.html