Smart Systems for Home

Plain how-to guides for smart home, security and home Wi-Fi

How to Hide or Unhide Files on a USB Drive

· 6 min read · Home Tech

In this article
  1. What You'll Need
  2. Step-by-Step
  3. Common Mistakes
  4. Tips
  5. Troubleshooting
  6. Frequently Asked Questions

Hiding files on a USB drive is a quick way to keep sensitive documents out of sight when you share the drive with others, or to reduce clutter. This guide shows you how to hide and unhide files on Windows, macOS, and Linux using built-in tools—no extra software needed. You'll also learn how to make hidden files visible again and what to do if the files seem lost.

What You'll Need

  • A USB drive connected to your computer
  • Administrator rights on Windows (to change folder options)
  • Basic file manager access (File Explorer, Finder, or Nautilus/Dolphin)

Step-by-Step

On Windows (File Explorer)

  1. Plug the USB drive into a USB port. Wait for Windows to recognize it and assign a drive letter (e.g., E:, F:).
  2. Open File Explorer (press Win + E). In the left sidebar, click This PC, then double-click your USB drive under Devices and drives.
  3. Right-click the file or folder you want to hide. Select Properties from the context menu.
  4. In the General tab, at the bottom, check the box next to Hidden. Click Apply, then OK.
  5. If you want to hide multiple files at once, select them all (hold Ctrl while clicking each), then right-click and choose Properties. Check Hidden and apply.
  6. To make hidden files invisible, open File Explorer and click the View tab at the top. In the Show/hide section, uncheck Hidden items. The hidden files will disappear from the folder view.
  7. To unhide a file, repeat step 3 and uncheck Hidden. Or, with Hidden items checked, the file appears dimmed—right-click it, select Properties, and uncheck Hidden.

On macOS (Finder)

  1. Connect the USB drive. It appears on the desktop or in Finder's sidebar under Locations.
  2. Open Finder and click the USB drive in the sidebar.
  3. Right-click (or Control-click) the file or folder you want to hide. Select Get Info.
  4. In the Info window, look for the General section. Click the triangle next to Sharing & Permissions to expand it (if not already expanded).
  5. Click the lock icon at the bottom right and enter your administrator password to unlock changes.
  6. In the Name & Extension field, you can add a dot (.) at the beginning of the file name to hide it from normal Finder views. For example, rename report.pdf to .report.pdf.
  7. Alternatively, use the Terminal command: open Terminal (in Utilities folder) and type chflags hidden /Volumes/USBDrive/yourfile.pdf (replace the path with your actual file). Press Enter.
  8. To unhide, either rename the file to remove the leading dot, or use the Terminal command chflags nohidden /Volumes/USBDrive/yourfile.pdf.

On Linux (GNOME Files / Nautilus)

  1. Plug in the USB drive. It should auto-mount and appear in the file manager sidebar.
  2. Open the file manager (Files). Navigate to the USB drive.
  3. Right-click the file or folder and select Rename. Add a dot (.) at the beginning of the name (e.g., .notes.txt). Press Enter.
  4. To hide the file from view, press Ctrl + H in the file manager. This toggles the display of hidden files. When hidden files are not shown, the dot-prefixed file will be invisible.
  5. To unhide, press Ctrl + H again to show hidden files, then rename the file to remove the leading dot.

Common Mistakes

  • Forgetting to unhide before copying: If you copy a hidden file to another drive, it may remain hidden on the destination, causing confusion.
  • Using the hidden attribute on Windows but not on other systems: The Windows hidden attribute is not recognized by macOS or Linux. A file hidden on Windows may still appear on a Mac.
  • Renaming a file with a dot on Windows: Windows does not treat a leading dot as hidden; it just becomes part of the name. The dot method only works on Unix-like systems (macOS, Linux).
  • Checking “Hidden items” but not seeing the file: On Windows, you must also ensure that “Hide protected operating system files” is unchecked if you're trying to hide system files—but for personal files, this is rarely needed.
  • Not refreshing the view: After changing attributes, the file may still appear until you refresh (F5) or navigate away and back.

Tips

  • Use a dedicated folder: Create a folder named “.private” (with a dot) on the USB drive to store all sensitive files. This makes it easy to hide/unhide everything at once.
  • Combine with encryption: Hiding files is not security. For real protection, use encryption software like VeraCrypt or BitLocker (Windows) to create an encrypted container on the USB.
  • On Windows, use the command line for batch hiding: Open Command Prompt as administrator and type attrib +h E:\folder\*.* /s to hide all files in a folder. Replace E: with your drive letter.
  • On macOS, use the Terminal for multiple files: Use chflags hidden /Volumes/USBDrive/*.pdf to hide all PDFs at once.
  • Test on another computer: After hiding, plug the USB into another machine to ensure the files are hidden as expected.

Troubleshooting

  • File still shows after hiding: On Windows, make sure you unchecked “Hidden items” in the View tab. Also, check if the file is marked as “Read-only” instead of “Hidden.” Right-click > Properties and verify the Hidden checkbox is checked.
  • Hidden files not appearing when you need them: On Windows, go to View > Options > Change folder and search options > View tab, and select “Show hidden files, folders, and drives.” On macOS, use Terminal command defaults write com.apple.finder AppleShowAllFiles YES and restart Finder (or use killall Finder). On Linux, press Ctrl+H.
  • Cannot rename a file on macOS because it's locked: Open Get Info, unlock the lock icon, and change permissions to “Read & Write” for your user.
  • USB drive is write-protected: Some USB drives have a physical lock switch. Make sure it's in the unlocked position. Also, check if the drive is formatted as NTFS and you're on macOS (macOS can read but not write to NTFS by default). Use exFAT for cross-platform compatibility.
  • Files disappeared after hiding—where did they go? They are still there, just hidden. To view them, enable hidden files as described above. If you still can't see them, check if the drive is mounted and you're in the correct folder.

Frequently Asked Questions

Can I password-protect hidden files on a USB drive?

Hiding files does not protect them from someone who knows how to show hidden files. For password protection, use encryption software like VeraCrypt or BitLocker To Go.

Will hidden files be transferred to another computer if I copy the USB contents?

Yes, the hidden attribute or dot-prefix is preserved in the file system. However, if you copy to a different file system (e.g., from NTFS to FAT32), the hidden attribute may be lost. Always check after copying.

How do I hide files on a USB drive without any software?

Use the built-in methods described above: the hidden attribute on Windows, the dot-prefix on macOS/Linux, or the chflags command on macOS. No third-party software needed.

Why can I still see hidden files on my USB drive?

You likely have “Show hidden files” enabled in your file manager. Turn it off (Windows: uncheck “Hidden items”; macOS: use Terminal to set AppleShowAllFiles to NO; Linux: press Ctrl+H).

Can I hide an entire folder on a USB drive?

Yes, the same methods work for folders. Right-click the folder, select Properties, and check Hidden (Windows), or rename with a leading dot (macOS/Linux).

Is hiding files on a USB drive the same as encrypting them?

No. Hiding only makes files invisible to casual users. Encryption scrambles the content so it cannot be read without a password. For sensitive data, always encrypt.