

Open a Finder window and locate the file you wish to modify and drag and drop it into the Terminal window. Type this into Terminal (without hitting enter/return) replacing YYYYMMDDhhmm with the desired date information: touch -t 201212211111ģ. Open up the Terminal application ( /Applications/Utilities/Terminal.app) or if you prefer use iTerm.Ģ.
#Mac os x terminal view editor how to
How to change the “date created” attribute of a file? Warning: This will change both the “date modified” and “date created” attributes.ġ. Make sure to change 200801120000 to the date you want and to replace /Volumes/Mac\ HD/Pictures/somefile.jpg with the proper path to the file you wish to alter the date for.Ĥ. Here’s an example of what should be typed into the Terminal at this point: touch -mt 200801120000 /Volumes/Mac\ HD/Pictures/somefile.jpgĢ00801120000 in the example above represents “Januat 12:00 AM” or my twenty-first birthday.

Type this into Terminal (without hitting enter/return) replacing YYYYMMDDhhmm with the desired date information: touch -mt YYYYMMDDhhmmģ. How to change the “date modified” attribute of a file? 1. mm - The number indicating minutes, from 0 to 59. MM - The month of the year, from 1 to 12.
#Mac os x terminal view editor for mac os x
Since then these directions have been updated for Mac OS X 10.10 Yosemite.ĭate Format Key: YYYY - The year (the first two digits/century can be omitted). This a very simple guide on how to change a file’s “date modified” and “date created” attributes on Mac OS X I wrote back in May 2009. How to Change a File’s Last Modified and Creation Dates on Mac OS X
