Change Timestamp of a file

Using the touch command you can change the modified date and time of a file. Here is how to Change the timestamp to 02/26/2010 7:30am of a file on your  desktop.

touch -t 201002260730 ~/Desktop/myfile.txt

Tags

  • Apple
  • Macbook
  • SSD

Categories

  • Hints 56