更新目录下面所有文件的时间:find ./* -type f -exec touch {} \;
更新目录下面所有目录的时间:find ./* -type d -exec touch {} \;
修改一个文件的日期时间:touch -d "2020-11-11 11:00:00" test.txt
linux下面修改目录下所有文件时间
原文:https://blog.51cto.com/7794482/2444531