首页 > 其他 > 详细

Create a file which date is several days ago

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

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

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

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!