相對于ls命令,touch命令參數(shù)顯得就少的可憐了,
touch-a? change only the access time
只是改變訪問事件
touch-c,--no-createdo not create any files
? ?不創(chuàng)建不存在的文件
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
將時間修改為參數(shù)指定的日期,如:07081556代表7月8號15點56分