Ben Chuanlong Du's Blog

It is never too late to learn.

Change Modified Time of Files

Things on this page are fragmentary and immature notes/thoughts of the author. Please read with your own judgement!

  1. Change the modifiled timestamp of a file to the specified timestamp.

    touch -m -t 201512180130.09 some_file
    
  2. Change the modified timestamp of a file to the current time.

    touch -m some_file …