How to Hide Files on Your Mac

Ben Winters -

Apple does not provide you a button to click and hide files, so we can use a third party program like Espionage to hide and secure your files with a password. But there is also a more direct way.

Let’s try to use the command function in Terminal to hide any files you want in your Mac.

Open the app, “Terminal”, by searching for it in Spotlight or go to Applications – Utilities – Terminal.app

Then for the files that you want to hide, you need to understand their location. For instance, the file is located on your Desktop, so the location will be ~/Desktop/filename A file in Documents will be ~/Documents/filename If the file you are hiding is a picture or file with extension name, you need put the extension name on the end, like picture.jpg

In the ”Terminal” app you need to type the following commands:

chflags hidden ~/desktop/[file name you want hide]/

Then click return. You will see that the file is no longer visible on your desktop.

If you want to unhide it, type:

chflags nohidden ~/desktop/[file name you want to unhide]/

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.
Powered by Zendesk