The fastest way to open a file depends on what you already have in front of you
If you know where the file is, double-click it. Your computer will open it in whatever program is set as the default for that file type — a .docx file opens in Word, a .jpg opens in your image viewer, a .pdf opens in your PDF reader. If that's the wrong program, right-click the file, select "Open with", and pick a different one from the list.
If you don't know where the file is, use your operating system's search tool. On Windows, press the Windows key and type the filename. On Mac, press Command+Space, type the filename. On Linux, the method varies by desktop environment, but most have a search icon in the taskbar or process menu. Search finds files by name, so if you remember even part of the filename, you can narrow it down.
If you have the program open already but not the file, use File > Open (or Ctrl+O on Windows and Linux, Command+O on Mac). This opens a file browser where you can navigate to the folder you need.
Key Takeaways
- Double-clicking a file opens it in the default program for that file type, which you can change by right-clicking and selecting "Open with".
- Windows search (Windows key), Mac search (Command+Space), and Linux process menus all find files by name when you don't remember the location.
- File > Open or Ctrl+O (Windows/Linux) and Command+O (Mac) opens a file browser from inside any program.
- Pinning frequently used folders to your sidebar or favorites saves time when you open files from the same location repeatedly.
Opening files from inside a program
Most programs have a File menu at the top left. Click File, then look for "Open" or "Open File". This opens a window that shows your folders and files. Navigate to the folder where your file lives, click the filename, and click the Open button.
The keyboard shortcut is faster: Ctrl+O on Windows and Linux, Command+O on Mac. This does the same thing as clicking File > Open, but you don't have to use the mouse.
Once you've opened a file from a folder you use often, that folder may appear in the "Recent" section of the File menu. Clicking it takes you straight there next time, skipping the navigation step.
Changing which program opens a file type
When you double-click a file and it opens in the wrong program, you can change the default. Right-click the file, select "Open with", and choose the program you want. On Windows and Linux, there's usually a checkbox that says "Always use this program for this file type" — check it so the same file type always opens in your chosen program from now on.
On Mac, right-click the file, select "Open with", choose your program, then hold Option and click "Always Open With". This sets the default for all files of that type.
If the program you want doesn't appear in the "Open with" list, you may need to install it first. Once installed, it should appear the next time you right-click a file of that type.
Finding files when you don't remember the location
Windows has a search box built into the taskbar at the bottom of the screen. Click it or press the Windows key and start typing the filename. As you type, Windows shows matching files. Click the one you want to open it.
On Mac, press Command+Space to open Spotlight search. Type the filename and press Enter to open the first result, or click the filename in the list to select a different one.
On Linux, the search method depends on your desktop environment. GNOME (used by Ubuntu and Fedora) has an Activities button in the top left corner — click it and type the filename. KDE Plasma has a search icon in the taskbar. If you're not sure which desktop you're using, look for a menu button or Activities label on your screen.
Using file browsers to navigate folders
File browsers show your folders and files in a window. On Windows, it's called File Explorer. On Mac, it's called Finder. On Linux, it's usually called Files or Nautilus. You can open it by clicking an icon in your taskbar or by searching for it by name.
Once the file browser is open, you navigate by double-clicking folders to go into them. The address bar at the top shows your current location. You can click any folder name in the address bar to jump back to that level instead of clicking back repeatedly.
Most file browsers have a sidebar on the left showing common locations like Documents, Downloads, and Desktop. Pinning a folder you use often to this sidebar saves time — right-click the folder and select "Add to Favorites" or "Pin to Sidebar", depending on your operating system.
Opening files from the command line
If you use the terminal or command prompt, you can open a file directly from there. On Windows, type start filename.txt (replacing filename.txt with your actual filename). On Mac, type open filename.txt. On Linux, type xdg-open filename.txt. The file opens in its default program.
This is most useful if you're already working in the terminal and want to open a file without switching to the file browser. You need to be in the same folder as the file, or you need to type the full path to the file.
Troubleshooting when a file won't open
If you double-click a file and nothing happens, the file type may not have a default program. Right-click it, select "Open with", and choose a program from the list. If no suitable program appears, you may need to install one — for example, if you're trying to open a .psd file (Photoshop format) and you don't have Photoshop or a compatible program installed, nothing will open it.
If you see an error message saying the file is corrupted or unreadable, the file itself may be damaged. Try opening a different file of the same type to confirm the program works. If other files open fine, the specific file is the problem, and you may need to recover it from a backup or ask whoever sent it to you to resend it.
If a file opens but looks wrong — text is garbled, images are distorted, or the layout is broken — you may have opened it in the wrong program. Try right-clicking and opening it with a different program. Some file formats can be opened by multiple programs, and they don't always display the same way.
Frequently Asked Questions
What's the difference between double-clicking and right-clicking to open a file?
Double-clicking opens the file in its default program when ready. Right-clicking shows a menu where you can choose which program to use, change the default, or perform other actions like copying or deleting the file. Use double-click when you know the default is correct, and right-click when you want to choose a different program or change the default.
Can I open a file from a USB drive the same way as a file on my computer?
Yes. Plug in the USB drive, open your file browser, and navigate to the USB drive folder. You can double-click files on the USB drive just like files on your computer. Some programs may run slower if you open them directly from the USB drive instead of copying them to your computer first.
Why does my file open in the wrong program every time?
That program is set as the default for that file type. Right-click the file, select "Open with", choose the correct program, and check the box to always use that program for this file type. On Mac, hold Option while clicking "Always Open With". The next time you double-click a file of that type, it will open in your chosen program.
What if I can't find a file even after searching for it?
Make sure you're searching for the right filename — search is exact, so if you search for "budget" but the file is named "2024 Budget", you may not find it. Try searching for just part of the name. If the file is on an external drive or network location, make sure that drive or network is connected and visible in your file browser before searching.