【问题标题】:How can i see Timestamps in Unix files [closed]我如何在 Unix 文件中查看时间戳 [关闭]
【发布时间】:2011-09-26 03:45:36
【问题描述】:

UNIX 文件系统中的文件有 3 种类型的时间戳:访问、修改和更改。为了对此进行调查,我创建了一个文件,我想查看 timestamps 。任何人都知道我如何查看不同的时间戳。然后,哪个命令时间戳。

【问题讨论】:

  • 我也想知道哪个命令改变了时间戳

标签: unix ubuntu


【解决方案1】:

使用stat 命令:

stat filename

【讨论】:

  • bash: stat: command not found 如果我们没有stat 命令怎么办?
【解决方案2】:

要更改atimemtime,请使用touch 命令:

touch --time=atime -t 198805232211.45
touch --time=mtime -t 205012300945.30

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-08-26
    • 1970-01-01
    • 1970-01-01
    • 2014-08-30
    • 1970-01-01
    • 1970-01-01
    • 2012-04-17
    • 1970-01-01
    相关资源
    最近更新 更多