1. 程式人生 > >Linux系統touch命令改變檔案的建立時間

Linux系統touch命令改變檔案的建立時間

使用touch命令:將檔案的時間修改為2013年1月21日19點25分

touch -c -m -t 201301211925 version.dat 前提是必須有這個檔案。

解釋說明:

-c表示不建立檔案  --no-create    do not create any files

-m僅僅改變時間  change only the modification time

-t表示時間戳STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time

 

在Linux系統裡面可以通過命令man touch 檢視touch的使用方法