
コマンド
下記コマンドにて実施する
touch -d "(日付+時間)" (ファイル名)
実行例
# ll test.txt -rw-r--r-- 1 root root 0 6月 25 14:32 2015 test.txt # touch -d "2015/5/31 00:00" test.txt # ll test.txt -rw-r--r-- 1 root root 0 5月 31 00:00 2015 test.txt |
下記コマンドにて実施する
touch -d "(日付+時間)" (ファイル名)
# ll test.txt -rw-r--r-- 1 root root 0 6月 25 14:32 2015 test.txt # touch -d "2015/5/31 00:00" test.txt # ll test.txt -rw-r--r-- 1 root root 0 5月 31 00:00 2015 test.txt |