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?
Mac – Changing date created of bulk files to 9 hours before
filemacterminal
Related Question
- ZIP files created with GUI have more bytes than ZIP files created in a shell
- MacOS – Images have an older (correct) timestamp within the Photos app but exported files show the current date and time
- How to batch rename files via Terminal using the file’s date as filename
- Terminal loop command to change created date for all files in a large directory
- ~$ files created when transferring files from MacOS to thumb drive
- Modifying the timestamps of multiple files
- MacOS – Change file creation date to content created date using terminal
- MacOS – Set file created/modified timestamp to the earlier of the 2 for a ton of files
Best Answer
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.