Skip to content

Hide files and folders on Mac

If we have some Top Secret files on our Mac that we want to hide from the Finder we can easily do so with the Terminal . When we do this the files will not appear in the folder containing them , however we can always show the hidden files to access them.

Hiding Files and Folders

The steps are simple:

  1. We open the Terminal app that we will find inside the folder Others inside Applications or using the Spotlight.
  2. We write “chflags hidden”, without the quotes. Let’s make sure we leave a space after hidden.
  3. Drag the file or folder from its current location to the terminal window. When we do this we’ll see that the path to that file or folder is typed.
  4. Press Enter (?).
Hide files and folders on MacHide files and folders on Mac

Et voilà, the file or folder will have disappeared from our sight.

How to display files and folders again

The first thing we need to do is show all the hidden files on the system by following the steps we saw in the article “How to view the hidden files on your Mac”.

While our computer shows us all the hidden files, we can access the ones that we hide manually to consult them, if we want them to stop being hidden we will follow these steps:

  1. We open the Terminal app that we will find inside the folder Others inside Applications or using the Spotlight.
  2. We write “chflags nohidden”, without the quotes. Let’s make sure we leave a space after hidden.
  3. Drag the file or folder from its current location to the terminal window. When we do this we’ll see that the path to that file or folder is typed.
  4. Press Enter (?).

At AppleHow to force the trash out of our Mac

Let’s keep in mind that hiding the files only protects them to a certain extent. It is easy for someone with access to our computer to follow the same steps in this article to access them. Even so, they will undoubtedly be safe from prying eyes if they are not specifically looking for them.