由于虚拟机经常快照,搞的实际有时候慢一个多月,新下载的东西,解压可能会出现 tar in the future time stamp 这样的问题不算很大,对于某些配置文件而已,无所谓,但对一些未知的东西,比如说数据库之类的数据文件, 日志文件这样的东西,咱总得防范于未然, find /usr/local/osa/mysql -type f -exec touch -t 201207101700 {} \; 我们知道find 后面的 type 指的就是类型吧,f 值的是file ,还有目录呢,别忘记了啊 find /usr/local/osa/mysql -type d -exec touch -t 201207101700 {} \; 一条命令搞定吧,不指定type 了: find /usr/local/osa/mysql -exec touch -t 201207101700 {} \; |
没有评论:
发表评论