我用来stat -f %m .bashrc在 osx 上获取我的 .bashrc 的修改时间。但是当我在 ubuntu 上运行相同的命令时,它吐出错误:
stat -f %m .bashrc
stat: cannot read file system information for %m': No such file or directory
有没有兼容的方法来实现这一目标?
bash stat timestamps files portability
bash ×1
files ×1
portability ×1
stat ×1
timestamps ×1