Linux02命令之touch

2017-06-02  本文已影响12人  问道心路长几许

相对于ls命令,touch命令参数显得就少的可怜了,

touch-a  change only the access time

只是改变访问事件

touch-c,--no-createdo not create any files

   不创建不存在的文件

touch-m change only the modification time,只更新修改时间,不改变访问时间

touch-r,--reference=FILE

use this file’s times instead of current time

使用文件file的时间更新文件的时间

touch-t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time

将时间修改为参数指定的日期,如:07081556代表7月8号15点56分

上一篇 下一篇

猜你喜欢

热点阅读