Closed downgoon closed 5 years ago
setfile -d "09/28/2018 08:03:20" "demo.txt"
注意 setfile需要提前安装,安装指令:xcode-select --install
setfile
xcode-select --install
touch -mt 201807211134 "demo.txt"
https://gmelikov.com/2016/12/19/change-a-files-last-modified-and-creation-dates-on-mac-os-x-and-linux/ https://apple.stackexchange.com/questions/99536/changing-creation-date-of-a-file/99599 http://fishshell.com/
修改命令
参考资料
https://gmelikov.com/2016/12/19/change-a-files-last-modified-and-creation-dates-on-mac-os-x-and-linux/ https://apple.stackexchange.com/questions/99536/changing-creation-date-of-a-file/99599 http://fishshell.com/