码迷,mamicode.com
首页 > 其他好文 > 详细

Create a file which date is several days ago

时间:2014-07-19 12:41:24      阅读:195      评论:0      收藏:0      [点我收藏+]

标签:create file

Create a file "1 week ago"

============================

#root@ubun1204:/root/study# date +%Y%m%d
20140718
root@ubun1204:/root/study# touch -d "1 week ago" file2
root@ubun1204:/root/study# touch -d "10 day ago" file1
root@ubun1204:/root/study# ls -l file1 file2
-rw-r--r-- 1 root root 0 Jul  8 23:10 file1
-rw-r--r-- 1 root root 0 Jul 11 23:10 file2

Create a file which date is several days ago

标签:create file

原文地址:http://9181221.blog.51cto.com/9171221/1440092

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!