Tip 199Lock Files for Safety

You can manually lock any file on your Mac, which will prevent edits or deletion until the file is specifically unlocked. This can be useful if you have a master version of a file, for example, that you want to ensure remains sacrosanct. Folders can also be locked, which will prevent the folder or its contents from being edited or deleted.

If you try to edit a locked file, you’ll be warned and will have to specifically opt to unlock the file.

Locking Files via File Info

There are several ways to lock a file or folder. The easiest is simply to select the file or folder in Finder or on the desktop and hit Command+I to open the File Info dialog box. Then put a check in the Locked box under the General heading.

To unlock ...

Get Mac Kung Fu, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.