> ## Content Index
> Fetch the complete content index at: https://www.techloy.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# HOW TO: Hide and View Files or Folders on MacOS
- URL: https://www.techloy.com/how-to-hide-and-vifiles-and-folders-on-macos/
- Published: 2025-04-03T14:45:49.000Z
- Updated: 2025-04-03T14:45:49.000Z
- Description: Safeguard your information by keeping sensitive files hidden from view.
- Author: David Adubiina
- Tags: / Tech Guide, MacOS, MacBook

No matter how many passwords or security measures you set up, there’s never a 100% guarantee that you’ll be the only one using your laptop. And if you own a [Mac](https://www.techloy.com/tag/macbook/), the chances of attracting attention are even higher—after all, Apple’s sleek design and premium feel make it irresistible.

I remember when a relative of mine got his first Mac. I was instantly curious and tempted to explore how it compared to my [Windows](https://www.techloy.com/tag/microsoft-windows/) laptop. And trust me, I wasn’t the only one. 

But what happens when you have files you’d rather keep private? Maybe it’s work documents, personal notes, or just things you don’t want others stumbling upon. As luck would have it, macOS gives you a few simple ways to [keep your files and folders](https://www.techloy.com/how-to-hide-and-view-folders-on-your-windows-pc-using-command-prompt/) hidden so you don’t have to worry about prying eyes.

Here’s how you can tuck them away quickly and easily.

## 3 Ways to Hide and View Files on MacOS

### **Method 1: Using Terminal Commands**

If you’re comfortable using the command line, this is one of the quickest ways to hide a file or folder.

### **Steps to Hide a File or Folder**

### Step 1\. Head over to "Launchpad" to open "**Terminal"** (You can find it in Applications > Utilities > Terminal).

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-9.48.18-AM-1.png)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-9.48.37-AM-1.png)

### Step 2\. Type the following command: chflags hidden followed by a space, then drag the file or folder you want to hide to the terminal.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.22.07-AM-1.png)

### Step 3\. Press "**Enter,"** and the folder will disappear from Finder.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.38.09-AM-1.png)

### **Steps to Unhide a File or Folder**

### Step 1\. Open **Terminal** again.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/image-24.png)

### Step 2\. Type: chflags nohidden \~/Path/To/Your/Folder

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.33.09-AM-1.png)

### Step 3\. Press "**Enter,"** and your file or folder will reappear.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.40.24-AM-1.png)

## **Method 2: Using a Period (.) to Make Files Invisible**

On macOS, any file or folder that starts with a period (.) is automatically hidden from Finder, but this is not allowed when you rename it directly. To do this, you need to use the Terminal.

### **Steps to Hide a File or Folder**

### Step 1\. Open **Terminal**.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/image-26.png)

### Step 2\. Type: mv \~/Path/To/YourFolder \~/Path/To/.YourFolder (see screenshot below)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-12.04.30-PM-1.png)

### Step 3\. Press "**Enter**," and the folder will be hidden.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/image-27.png)

### **Steps to Unhide It**

### Step 1\. Open "**Terminal**."

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/image-28.png)

### Step 2\. Type: mv \~/Path/To/.YourFolder \~/Path/To/YourFolder

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-12.05.34-PM-1-1.png)

### Step 3\. Press **Enter**, and your folder will be visible again.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/image-29.png)

## **Method 3: Using Finder’s Hidden File View Option**

If you’ve already hidden a file but need to access it without using Terminal, you can reveal hidden files in Finder.

### Step 1\. Open **Finder**.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.31.29-AM-1.png)

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.31.16-AM--1-.png)

### Step 2\. Press **Cmd + Shift + (period.)**. All hidden files and folders will now be visible. To hide them again, press the same key combination.

![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/2025/04/Screen-Shot-2025-04-03-at-10.40.24-AM--1--1.png)

[How to Turn Off AdBlock in Safari on MacKnowing how to turn off Adblock in Safari on Mac helps you access blocked content and ensure websites function properly![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/icon/techloy-avatar-1-1296.png)TechloyOgbonda Chivumnovu![](https://storage.ghost.io/c/c1/a6/c1a6d111-d951-41ad-a392-c1e841210b93/content/images/thumbnail/photo-1487014679447-9f8336841d58)](https://www.techloy.com/how-to-turn-off-adblock-in-safari-on-mac/)

## **Conclusion**

Hiding files and folders on macOS is easier than you think, whether you prefer quick Terminal commands or Finder tricks. However, it is important to remember that while these methods help conceal your files, they are not foolproof security measures—anyone with the right knowledge can still uncover them. For more robust protection, consider encrypting sensitive files or using dedicated privacy software.

*Image credit: Ogbonda Chivumnovu/Techloy.com*