PDF download Download Article PDF download Download Article

Was there a file on your USB flash drive that you can't find now? You'll find that there are a few reasons that your files are hidden: malware , user error (by accident), or the files were corrupted. But don't worry, you can easily unhide these files without compromising the data within. This wikiHow article teaches you how to find and open hidden files on a USB pen drive on a PC or a Mac.

Things You Should Know

  • If you accidentally changed your USB flash drive's format, some files may be hidden. You can reveal them in Finder.
  • Use Command Prompt to show hidden files that were hidden by malware.
  • Terminal will show you hidden files on your USB pen drive.
Method 1
Method 1 of 3:

Using File Explorer On Windows

PDF download Download Article
  1. Insert the USB flash drive into one of the thin, rectangular slots in your computer's housing.
    • If you're using a desktop computer, USB ports are typically in either the front or the back of the computer's CPU case. If you're using a laptop, they are usually located on the sides.
  2. Advertisement
  3. " Doing so will search your computer for the "This PC" program.
    • Click the search result to open File Explorer. It's a computer monitor-shaped icon at the top of the Start window.
  4. Find your flash drive's name below the "Devices and drives" heading in the middle of the page, then double-click it.
    • If you don't see your flash drive here, try unplugging the flash drive and plugging it back into a different USB slot.
  5. It's in the upper-left side of the flash drive's window. Doing so prompts a menu bar to appear at the top of the File Explorer window.
  6. Click the box to the left of the "Hidden items" option in the "Show/hide" section of the menu bar. Doing so will both place a checkmark in the "Hidden items" box and force any hidden files on your USB flash drive to display.
    • If there's already a checkmark in the "Hidden items" box, your USB flash drive is currently displaying hidden files.
    • Hidden files are generally dimmer and more transparent-looking than regular files.
    • If you're using Windows 11, you'll need to click the Show menu, before you will see the "Hidden items" option.
  7. Doing so will open the file, allowing you to view its contents.
    • If the file you're trying to open is a system file, you may not be able to complete the opening process.
    • If you are certain that there is a file on a drive that you can't see and this doesn't work, try using Command Prompt to unhide your files.
  8. Advertisement
Method 2
Method 2 of 3:

Using Command Prompt on Windows

PDF download Download Article
  1. Insert the USB flash drive into one of the thin, rectangular slots in your computer's housing.
    • If you're using a desktop computer, USB ports are typically in either the front or the back of the computer's CPU case. If you're using a laptop, they are usually located on the sides.
  2. To do this, press the Win key and type in "Cmd Prompt". In the search results that appear in the Start menu, click Run as administrator .
    • If something like a virus or malware is causing your files to hide, this method will work to unhide them. Even after running a scan or removing the problem , you'll still need to unhide those files.
  3. attrib -h -r -s /s /d X:\*.* . Replace the "X" with your USB drive's location.
    • Press Enter after typing in that command.
  4. From File Explorer, you'll be able to see all the files that were previously hidden on your USB pen drive. If you haven't removed the malware from your computer, your files will probably be hidden again the next time you plug in your USB pendrive. Avoid this by removing the malware .
  5. Advertisement
Method 3
Method 3 of 3:

Using Terminal On a Mac

PDF download Download Article
  1. Insert the USB flash drive into one of the thin, rectangular slots in your computer's casing.
    • If you're using an iMac, you may find the USB ports on the side of your keyboard or on the back of the iMac's screen.
    • Not all Macs have USB ports. If you're using a newer Mac that doesn't come with USB ports, you'll need to purchase a USB to USB-C adapter.
  2. This menu item is in the upper-left side of your Mac's screen. A drop-down menu will appear.
    • If you don't see Go , first either click your desktop or open Finder (the blue, face-like app in your Mac's Dock).
  3. This option should be near the bottom of the Go drop-down menu.
  4. Type defaults write com.apple.finder AppleShowAllFiles YES into Terminal, then press the Return key.
  5. If your Finder program is open, close it and then re-open it to refresh it.
    • You can also enter killall Finder into Terminal to automatically perform this step.
  6. It will be in the lower-left side of the Finder window. Doing so opens the USB drive's contents, including any hidden files and folders that are on it.
  7. Hidden items resemble greyed-out versions of regular files or folders; double-clicking a hidden file or folder will open it.
  8. Advertisement

Expert Q&A

Search
Add New Question
  • Question
    Is it okay to open hidden files on a Mac?
    Chiara Corsaro
    Phone & Computer Repair Technician
    Chiara Corsaro is the General Manager and Apple Certified Mac & iOS Technician for macVolks, Inc., an Apple Authorized Service Provider located in the San Francisco Bay Area. macVolks, Inc. was founded in 1990, is accredited by the Better Business Bureau (BBB) with an A+ rating, and is part of the Apple Consultants Network (ACN).
    Phone & Computer Repair Technician
    Expert Answer
    It's really not a good idea to mess around with hidden files. They're usually hidden for a reason, and if you open, move, or delete something it may render your system inoperable.
Ask a Question
      Advertisement

      Tips

      Submit a Tip
      All tip submissions are carefully reviewed before being published
      Thanks for submitting a tip for review!
      Advertisement

      Warnings

      • Files that are hidden by default are usually sensitive in nature. If you choose to open these files—particularly if they are system files—proceed with caution.
      Advertisement

      About This Article

      Thanks to all authors for creating a page that has been read 1,345,131 times.

      Reader Success Stories

      • Pochang Ramos

        Mar 10, 2017

        "Thank you so much. It's really a big help to find this important data. Thank you again for this amazing ..." more
      Share your story

      Is this article up to date?

      Advertisement