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

  1. 1
    Plug your USB flash drive into your computer. 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. 2
    Advertisement
  3. 3
    Type in "this pc." 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. 4
    Open your flash drive. 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. 5
    Click the View tab. 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. 6
    Check the "Hidden items" box. 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. 7
    Double-click the hidden file you want to open. 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

  1. 1
    Plug your USB flash drive into your computer. 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. 2
    Launch Command Prompt as an administrator. 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. 3
    Enter the following command: attrib -h -r -s /s /d X:\*.*. Replace the "X" with your USB drive's location.
    • Press Enter after typing in that command.
  4. 4
    Open a file that was hidden. 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

  1. 1
    Plug your USB flash drive into your computer. 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. 2
    Click Go. 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. 3
    Click Utilities. This option should be near the bottom of the Go drop-down menu.
  4. 4
  5. 5
    Enter the "show hidden items" command. Type defaults write com.apple.finder AppleShowAllFiles YES into Terminal, then press the Return key.
  6. 6
    Close and re-open Finder if it's open. 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.
  7. 7
    Click your USB drive's name. 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.
  8. 8
    Double-click a hidden file or folder. Hidden items resemble greyed-out versions of regular files or folders; double-clicking a hidden file or folder will open it.
  9. Advertisement

Expert Q&A
Did you know you can get expert answers for this article? Unlock expert answers by supporting wikiHow

  • Question
    Is it okay to open hidden files on a Mac?
    Chiara Corsaro
    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).
    Chiara Corsaro
    Phone & Computer Repair Technician
    Expert Answer

    Support wikiHow by unlocking this 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.
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.
    ⧼thumbs_response⧽
Advertisement

About This Article

Chiara Corsaro
Co-authored by:
Phone & Computer Repair Technician
This article was co-authored by Chiara Corsaro and by wikiHow staff writer, Darlene Antonelli, MA. 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). This article has been viewed 1,323,673 times.
How helpful is this?
Co-authors: 24
Updated: October 25, 2022
Views: 1,323,673
Categories: File Manipulation
Advertisement