如何在Unix文件中查看时间戳

如何在Unix文件中查看时间戳,unix,ubuntu,Unix,Ubuntu,UNIX文件系统中的文件有3种时间戳:访问、修改和更改。为了研究这个问题,我创建了一个文件,我想看看时间戳。任何人都知道我怎么看不同的时间戳。然后,它命令时间戳 使用stat命令: stat filename touch --time=atime -t 198805232211.45 touch --time=mtime -t 205012300945.30 要更改atime和mtime,请使用touch命令: stat filename touch --time=atime -t 198

UNIX文件系统中的文件有3种时间戳:访问、修改和更改。为了研究这个问题,我创建了一个文件,我想看看时间戳。任何人都知道我怎么看不同的时间戳。然后,它命令时间戳

使用
stat
命令:

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

要更改
atime
mtime
,请使用
touch
命令:

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

我还想知道哪个命令更改时间戳
bash:stat:command not found
如果我们没有
stat
命令该怎么办?