touchコマンドに引数を付けることで任意のタイムスタンプをファイルに付与することができる。
touchの-tオプションを使うことでタイムスタンプを変更することができ、touchのヘルプでは以下の説明がなされている。
-t STAMP use [[CC]YY]MMDDhhmm[.ss] instead of current time
touch -t YYYYMMDDHHmm [FILE NAME]
touch -t 200605051130 test.txt -rw-r--r-- 1 root root 0 May 5 2006 test.txt
touch -t 200805051130 test.txt -rw-r--r-- 1 root root 0 May 5 11:30 test.txt