0

I have 3000 files which all have different dates in which they were created. For example a file has a date created timestamp of: 1 August 11:05. How can I use the terminal to change the timestamp to 9 hours earlier: i.e. 1 August 2:05?

1
  • Do you only want to change the date shown for Created? Do you want to leave the Modified and Last Accessed times alone? Commented Aug 16, 2019 at 16:11

1 Answer 1

1

To do that, you need to open the 'Terminal'

In your Terminal, enter the following command:

touch -t YYYYMMDDhhmm.ss (DON'T press enter yet)

replace YYYYMMDDhhmm.ss by it's respective characters

So for example: touch -t 197512232000.23 (DON'T press enter yet)

Locate the files you want to change their timestamps in Finder

Select all the files you want to modify and drag them into your Terminal and now, press enter

The timestamps are now changed.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .