linux命令(30):touch命令

实例一:创建不存在的文件

touch test.log test1.log

实例二:更新log.log的时间和log2012.log时间戳相同

touch  -r test.log test1.log

实例三:设定文件的时间戳

touch -t 201211142234.50 log.log

posted on 2016-05-06 22:24  Jasongo  阅读(445)  评论(0编辑  收藏  举报