Touch -t 201212211111 /Volumes/Mac\ HD/Pictures/somefile.jpgĢ01212211111 in the example above represent “Decem11:11 AM” or the end of the 5,125 years that comprise the “Great Cycle” in the sacred Tzolk’in calendar of the Maya (and you can relax the world didn’t end then - and I didn’t think it would when I wrote this article!). Open up the Terminal application ( /Applications/Utilities/Terminal.app) or if you prefer use iTerm. 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.Ĥ. Touch -mt 200801120000 /Volumes/Mac\ HD/Pictures/somefile.jpgĢ00801120000 in the example above represents “Januat 12:00 AM” or my twenty-first birthday. Here’s an example of what should be typed into the Terminal at this point: 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:ģ. Open up the Terminal application ( /Applications/Utilities/Terminal.app) or if you prefer use iTerm.Ģ.
How to change the “date modified” attribute of a file?1. 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).MM - The month of the year, from 1 to 12.DD - The day of the month, from 1 to 31.hh - The hour of the day, from 0 to 23.mm - The number indicating minutes, from 0 to 59. 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. #19- How to Create Your First NestJS App.#18- 14 Patterns to Ace Any Coding Interview Question.#17- How to Hack Facebook Accounts: 5 Common Vulnerabilities.#16- How to Hack Roblox and Should You Do it?.#15- The Batman Arkham Games in Chronological Order.#14- Every Resident Evil Game in Chronological Order: A Complete Timeline.#13- The Ace Attorney Timeline: All Phoenix Wright Games in Chronological Order.#12- Git Branch Naming Convention: 7 Best Practices to Follow.#11- 3 Ways To Get Free Robux in Roblox.#10- Apple CarPlay Not Working? - Here's How to Fix Common Issues.#9- Java Algorithms: Linked List in Binary Tree (LeetCode).#8- How to Use DeepAR For AR Effects on Amazon IVS Live Streams.#7- Here's How To Fix Your Ethernet If It's Not Working.#6- Uncover the 7 Best Security Sites on the Internet.
#5- Spray, Pray, and Go Away: Investing is an Art.#4- How Do I Build High-Volume dApps With Ultra-Low Gas Fees? Like a #BAS.#3- 5 Best Pokémon GO Hacks and How to Get Them.#2- 3 Best Kotor Builds Even Vader Would Approve of.#1- Java Algorithms: Merge k Sorted Lists (LeetCode).What is So Good About the Ownership Economy?.Perverse Incentives: A Story About Rats, Nails, and Atrocities.Recreate a Simple Pokemon Game With 70 Lines of Javascript.Break Free From the Work-to-Earn Chains, Help-to-Earn Supports Play-to-Earn.How Can I Tell if My Steam Account Has Been Hacked? (and How to Recover It).