Linux 下修改文件的时间属性

5690阅读 0评论2010-06-05 大鬼不动
分类:

用法:
1. 同时修改文件的修改时间和 访问时间
touch -d "2010-05-31 08:10:30" test.doc

2. 只修改文件的修改时间

touch -m -d "2010-05-31 08:10:30" test.doc

3. 只修改文件的访问时间

touch -a -d "2010-05-31 08:10:30" test.doc
上一篇:Linux 下 修改 Google Earth 的默认缓存目录
下一篇:神奇Ghost 轻松远程安装软件