Almighty adds a menu bar toggle to instantly hide all desktop files and folders before a Zoom call or presentation — no Terminal, no shortcuts needed. Available on Setapp.
Multiple methods to hide files on Mac, from quick fixes to full security. You can hide files using Terminal commands, the dot-prefix naming trick, the hidden Library folder, Apple Developer Tools, or by moving files to a separate user account. Each method offers a different level of privacy.
FileVault encryption is the most secure option. For truly sensitive data, enabling FileVault locks your entire drive, so that no one can access your files without a password, making it the go-to choice when privacy really matters.
Third-party apps make hiding files instant and effortless. Almighty and One Switch let you clear your desktop in one click, which is perfect before a screen share or presentation. Commander One and Forklift make managing hidden files easy without touching Terminal.
You can always get your hidden files back. Depending on the method used, you can reveal files with a Terminal command, the chflags nohidden path, or by switching on visibility in a file manager app.
All the apps mentioned are available on Setapp. Get access to Almighty, One Switch, Commander One, Forklift, and 270+ more Mac apps for $14.99 USD/mo + tax. Try them free for 7 days.
You can hide files on your Mac using Terminal commands, by moving them to the Library folder, or through third-party apps. If your goal is to protect the data, use FileVault encryption or create a separate user account.
Here's a quick overview of the main ways to hide files on Mac. I'll explain each method in detail below:
Making files invisible even with Show Hidden Files on (legacy tool)
Medium
SetFile -a v + file path
Hide files with a keyboard shortcut
The fastest way to peek at hidden files on macOS is the built-in Finder shortcut. With Finder active, press Shift + Command + . (period), and any items already marked as hidden appear as translucent icons. The same combo hides them again.
This shortcut is fast, and it toggles both ways. Just note that it only reveals files that are already hidden (dot-files or items with the hidden flag).
To actually hide something, rename it with a leading dot (e.g., .myfolder) or run chflags hidden /path/to/folder in Terminal (see the step below).
Protect your data with FileVault
FileVault is Apple's built-in encryption tool. Here's how to enable it:
Open System Settings from the Apple menu > Privacy & Security.
Scroll down to the Security section > Click FileVault.
Click Turn On FileVault.
Choose your recovery method and click Continue.
Wait for the encryption process to complete.
It locks everything on your drive, so no one can access your files without a password. This is the most secure way to protect sensitive data on your Mac.
Hide files and folders on Mac with Terminal
With this method, the files become completely invisible in Finder until you specifically unhide them.
To hide files using Terminal:
Open Terminal from Applications > Utilities.
Type chflags hidden followed by a space.
Drag the file or folder you want to hide into the Terminal window.
Press the Return key to execute the command.
To access a hidden file, press Shift + Command + G and enter the path. To unhide it, type chflags nohidden followed by the full path in Terminal and hit Return.
Hide all files and folders on your desktop
If I want to hide files and folders on my desktop in a quicker way, I’ll use Almighty or One Switch. Both tools give me full control right from the menu bar, so I don’t have to remember shortcuts or Terminal commands.
Hide desktop items with third-party apps
If you want to clear your entire desktop before a presentation or screen share, I recommend Almighty. With it, you can instantly hide all desktop items in just one click. Open Almighty’s menu right from the menu bar at the top of your screen and turn off the right toggle. That’s it.
I use Almighty every time I need to share my screen, because it offers several genuinely useful features, like highlighting the active window and visualizing the cursor.
One Switch offers similar functionality. It sits in your menu bar and lets you hide all desktop icons instantly. In fact, I also use it to access Mac features fast from a single menu, for example, to manage my AirPods connection or enable Do Not Disturb. One Switch puts your most-used Mac toggles in one place.
In my experience, these are the fastest options for clearing your screen before a presentation. Both apps are available with Setapp Membership. And you can try them free for 7 days.
Hide desktop items with Terminal
If you prefer a more technical way to hide desktop items, you can use Terminal.
Here’s how to do it:
Open Terminal from Applications > Utilities.
Type defaults write com.apple.finder CreateDesktop false.
Press Return.
Type killall Finder and press Return.
To show your desktop items again, repeat the process but replace false with true in step 2.
Hide desktop items through System Settings
If you are running a recent version of macOS, you can go to System Settings to hide desktop icons.
Here’s how you can do it:
Open System Settings > Desktop & Dock.
Scroll down to the Desktop & Stage Manager section.
Uncheck On Desktop next to Show Items.
This way, you can easily turn your desktop icons on and off whenever you need a clean screen, without having to touch the Terminal.
Hide folders in a secret location
macOS has a hidden Library folder that most users never see. You can use it to store sensitive files out of plain sight.
To access and use the Library folder:
Open Finder and click Go in the menu bar.
Choose Go to Folder.
Type ~/Library and press Return.
Create a new folder inside Library for your hidden files.
Move your sensitive documents into this new folder.
The Library folder remains hidden by default, making it a convenient spot for files you want to keep private but still access occasionally.
While you're organizing your files, you might also want to change folder colors and icons on Mac to make the ones you do keep visible easier to spot at a glance.
Hide files from other users with Apple Developer Tools
This method makes files completely invisible even when showing hidden files is enabled.
Type SetFile -a V followed by a space and the file path.
Press Return to make the file invisible.
To make the file visible again, use SetFile -a v (lowercase v) with the same file path.
Hide a file by adding a dot to its name
macOS automatically treats any file starting with a period as hidden.
To hide a file this way, you’ll need to use Terminal:
Open Terminal from Applications > Utilities.
Type mv (followed by space).
Drag the file or folder you want to hide into the Terminal window.
Add a space and drag the exact same file or folder in again.
Add a period at the beginning of the file name.
Press Return.
The file icon becomes translucent immediately. Use Shift + Command + . to turn on or off the visibility of all dot-prefixed files.
Hide files and folders by moving them to another user account
To create a separate user account:
Open System Settings > Users & Groups.
Click Add User…
Enter your password when prompted.
Fill in the account details and click Create User.
Log out and switch to the new account.
Store your private files under this account.
This approach works well if you regularly need to keep certain files completely separate from your main account.
Permanently show hidden files and folders
To access your hidden files again, you have several options depending on how you hid them initially.
For files hidden with the dot-prefix naming: Simply press Shift + Command + . (period) to enable visibility.
For Terminal-hidden files: Open Terminal > Type chflags nohidden followed by the file path > Press Return.
To permanently show all hidden files on your Mac: Open Terminal > Type defaults write com.apple.finder AppleShowAllFiles TRUE > Press Return > Type killall Finder > Press Return again.
Master file privacy on your Mac
Whether you need a quick desktop cleanup with Almighty or One Switch, advanced file management with Commander One or Forklift, or just the built-in macOS methods I've covered, you now have all the tools to keep your sensitive data private.
All the apps I mentioned are available through Setapp. The platform gives you access to 270+ Mac and iOS apps for $14.99 USD/mo + tax. Try them free for 7 days and find the privacy solution that works best for your workflow.
FAQ
What is the easiest way to permanently hide a folder on Mac?
The simplest way is to turn on FileVault to encrypt your whole drive or move the folder to a separate user account or the hidden ~/Library folder. Those options keep the data invisible.
Why did my hidden files disappear on Mac?
First, check if you're looking in the right location using Shift + Command + G with the exact file path. Try showing all hidden files with Shift + Command + . or the Terminal command defaults write com.apple.finder AppleShowAllFiles TRUE. If files are still missing, check Time Machine backups or run First Aid in Disk Utility. Files might have been deleted accidentally, corrupted, or affected by disk errors. For Terminal-hidden files, verify you used the correct path when hiding them.
What makes folders on Mac invisible to prying eyes?
FileVault encryption secures your entire drive with password protection.
Dot-prefix naming hides individual files from casual viewing.
The Library folder offers a built-in hidden location.
Separate user accounts provide complete isolation between users.
How do I stop files from showing up in Recents on Mac?
Open Finder and click Recents in the sidebar. Right-click and choose Remove from Sidebar to hide the entire Recents section. Alternatively, go to System Settings > Spotlight > Search Privacy and add specific folders you want excluded from searches and recent items. This prevents those files from appearing in any smart folders or search results while keeping them accessible through normal navigation.
Does Spotlight search reveal hidden files?
Spotlight doesn't index files hidden with Terminal commands or dot-prefix naming by default. Files in the ~/Library folder also stay out of Spotlight results. For complete search privacy, add folders to Spotlight's Search Privacy list in System Settings or use FileVault encryption for sensitive data.
Superpowers for your Mac
Tackle your tasks with dozens of helpful apps on Setapp.