If you share your MacBook with others, you may need to hide important files. macOS offers several ways to hide files and folders for privacy and security. Some methods use built-in macOS features, while others require third-party apps. This guide will show different ways to hide files and folders on macOS easily.
Keyboard Shortcut to Hide Files and Folders
A simple keyboard shortcut can instantly hide files and folders. This is a quick method to remove files from view.
Steps to Hide Files Using a Shortcut
- Select the file or folder you want to hide.
- Press Command + Shift + Period (.) together.
- The selected files or folders will disappear.
Steps to Unhide Files
- Press Command + Shift + Period (.) again.
- The hidden files will reappear.
Pros of This Method
- Fast and easy to use.
- No need for extra software.
Cons of This Method
- Anyone who knows the shortcut can unhide the files.
- Not suitable for sensitive files.
Hide Files and Folders on macOS Using Terminal
The Terminal is a built-in macOS tool that allows advanced file management. You can use it to hide and unhide files securely.
Steps to Hide Files Using Terminal
- Open Terminal from Finder → Applications → Utilities.
- Type this command: chflags hidden
- Press the spacebar, then drag and drop the file or folder into the Terminal window.
- Press Enter to hide the file or folder.
Steps to Unhide Files Using Terminal
- Open Terminal again.
- Type the following command: chflags nohidden
- Press spacebar and drag the hidden file or folder into the Terminal window.
- Press Enter to make the file visible again.
Pros of This Method
- Works even if someone doesn’t know the shortcut.
- More secure than a keyboard shortcut.
Cons of This Method
- Requires knowledge of Terminal commands.
- If you forget the folder path, it may be hard to find.
Using FileVault to Encrypt and Hide Files
FileVault is a macOS feature that encrypts your entire disk. This method is useful for hiding confidential data securely.
Steps to Enable FileVault
- Open System Settings → Privacy & Security.
- Scroll down and click FileVault.
- Click Turn On FileVault and enter your password.
- Choose your recovery method (iCloud or a recovery key).
How This Method Works
- Encrypts all files and folders on your disk.
- Hidden files can only be accessed with a password.
- Best for securing highly sensitive data.
Pros of This Method
- Maximum security for files and folders.
- Even if someone accesses your Mac, they can’t open hidden files without a password.
Cons of This Method
- Slows down older Macs.
- If you forget the password or recovery key, you lose access.
The Final Words
Hiding files and folders on macOS is easy with the right method. The keyboard shortcut is the fastest way, but it’s not very secure. Terminal offers a more reliable option for hiding files. FileVault is the best choice for protecting sensitive files with encryption. Choose the method that fits your needs and keep your data safe.