修改文件时间

1. 同时修改文件的修改时间和访问时间
touch -d "2010-05-31 08:10:30" install.log
2. 只修改文件的修改时间
touch -m -d "2010-05-31 08:10:30" install.log
3. 只修改文件的访问时间
touch -a -d "2010-05-31 08:10:30" install.log
发布了42 篇原创文章 · 获赞 6 · 访问量 6151

猜你喜欢

转载自blog.csdn.net/qq_25617289/article/details/88821760