Change file date in linux using touch

To change the date on all files in a folder to 19th February 2009 at 18:00 using the linux command touch

# touch * -t "200902191800"

It’s a nice way to correct file dates.
Replace * with the actual file name if you don’t want to correct all files in the current folder.

Leave a Reply