Linux下修改文件的时间属性

来源:岁月联盟 编辑:exp 时间:2012-03-13

用法:
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



作者 大鬼不动