小编fus*_*ren的帖子

stat:文件的修改时间戳

我用来stat -f %m .bashrc在 osx 上获取我的 .bashrc 的修改时间。但是当我在 ubuntu 上运行相同的命令时,它吐出错误:

stat: cannot read file system information for %m': No such file or directory

有没有兼容的方法来实现这一目标?

bash stat timestamps files portability

14
推荐指数
3
解决办法
1万
查看次数

标签 统计

bash ×1

files ×1

portability ×1

stat ×1

timestamps ×1