MacClean – Cleanup and Optimize Your Mac

Have a free try on MacClean and use it to clear junk files, optimize your Mac performance, and secure it. Now read on this guide to know how to hide a file on Mac Yosemite.

Files and folders on your Mac El Capitan (macOS Sierra Beta) may be filled with the important business data, personal information and more. Therefore, hiding files and folders is a good choice to keep them safe and private.

However, speaking of hiding files on an Apple Mac, it is not as easy as it be on a Windows computer. We can easily hide a file on Windows by checking the Hidden option, but on a Mac, that's not working. In this post, we will show you how to hide files on El Capitan or macOS Sierra Beta, and also tell you how to view the hidden files as well as unhide them.

Part 1. How to Hide Files and Folders on Mac

To help you quickly solve the issues of hiding files and folders, here we have collected several safe & reliable solutions to make it easy. However, some of the solutions may be difficult and complicated to follow, check the detailed instructions carefully and you can overcome.

Solution 1. Using Terminal to Hide Files and Folders

Built-in with Mac, Terminal is the default application that can help to hide files and folders with few steps. If you have never use it to hide your individual files, please follow the step-by-step guide to complete this.

Step 1. Click Finder > Search Terminal on This Mac > Open Terminal.

How to Hide Files and Folders on Mac via Terminal - Step 1

Step 2. Drag and drop the files and folders you want to hide to Terminal, and the path of the file will show. Hit Return and the file will "disappear" from your Mac.

How to Hide Files and Folders on Mac via Terminal - Step 2

Solution 2. Using Disk Utility to Encrypt Folders

While not necessarily hiding files and folders on your Mac, encrypting them can also keep the personal files safe that only you can access. You can download various encryption unities to encrypt files and folders, and here just try using Disk Unity to complete this.

Step 1. Open up Disk Utility (type in Disk Utility in Spotlight Search and hit Enter) > Go up to the menu bar and navigate to File > New > Disk Image from Folder.

Step 2. Select the folder you want to encrypt and click Image > Name it and ensure you select 256-bit AES Encryption in the drop-down next to Encryption > Hit Save > Enter with your own password and click OK.

How to Hide Files and Folders on Mac - Using Disk Utility to Encrypt Folders

Note: except for hiding files and folders on your Mac, you can also delete the unwanted files to protect your privacy. To completely remove the files you don’t want, it is recommended you just try MacClean.

Solution 3. How to Delete Unwanted Files and Folders on Mac

MacClean is a flexible and comprehensive Mac clean tool only one-click. With it, you can clean up space of your Mac on the go and never worry about the issues of insufficient storage. Besides, it also enables to protect your internal activities from spying eyes. To quickly and thoroughly delete unwanted files on your Mac, simply download MacClean and then follow the detailed steps bellow:

Part 2. How to Show and View Files and Folders on Mac

Some Apple users may wonder how to view the hidden files and folders on Mac, and here we also give you the tips to solve this. In fact, Finder on Mac doesn’t offer a graphical option to let you find those hidden files and folders, but you can also make the hidden files and folders shown by following this:

Step 1. To view hidden files on Mac, firstly open Terminal.

Step 2. Run the following commands in it, and end by hitting Return:

defaults write com.apple.finder AppleShowAllFiles TRUE

killall Finder

How to View Hide Files and Folders on Mac

Part 3. How to Unhide Files on Mac Yosemite

Still don't know how to unhide files and folders on your Mac? The solution is so simple: Run the same commands you ran before during viewing the hidden files and folder, but the only difference is that change “hidden” to "nohidden".

Step 1. To unhide a file on Mac, you need to open Terminal again.

Step 2. Enter the command: chflags nohidden, and end with a space.

Step 3. Unhide the file with steps in Part 2.

Step 4. Now drag the hidden files to the Terminal. Press Enter.

How to Unhide Files on Mac

Note: If you remember the exact path of the folder or file, you can type it into the terminal. If you don’t, you can use the above trick to display hidden files and folder in the Finder and drag and drop that hidden file or folder into the Terminal, as you did earlier.