


Click the lock in the corner of the window, then enter your administrator password to unlock the settings. Open up the Terminal application ( /Applications/Utilities/Terminal.app) or if you prefer use iTerm.ģ. Choose Apple menu > System Preferences, then click Date & Time. Again, create a backup before taking this action. Don’t store files in this folder if you don’t want them to be modified.Ģ. Format FAT32 on Mac Terminal Command Line The command-line behavior does the same way to erase data with the Disk Utility. When a command is shown on a line by itself as you might type it in a Terminal window, it follows a dollar sign that represents the shell prompt. For example, You can use the doit command to get things done. Make sure all the files you want to modify are in the top directory of the same folder. Commands or command parameters that you might type, along with other text that normally appears in a Terminal window, are shown in this font.
#Change time on mac command line how to#
How to batch update the “date modified” attribute of multiple files? 1. If all is in order press the return key.īelow is supplementary information on how to batch modify/update/change files using the commands above. Once in the Terminal, enter the following command and hit return/enter: If your time and date are incorrect, use the following command to set up a correct date to continue with the installation or upgrade. Or, select the up and down arrows next to the time field above the clock to change the time. Select the clock face and drag the clock hands.
#Change time on mac command line mac os#
of Mac OS X, or you can install X11 from the installation DVD at a later time. You may need to unlock the lock at the bottom of the screen and enter your Mac password to make changes. Invoking bash with the -posix command-line option changes the default. Make sure to change 201212211111 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.Ĥ. In the Date & Time tab, clear the check box next to Set date and time automatically. 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!).
