Selecting all files in a folder quickly is a time-saver for editing, copying, or deleting, but most users rely on manual clicks or long, repetitive selections. Fortunately, every major operating system offers built-in keyboard shortcuts to do this instantly—if you know where to look. The exact key combination varies slightly by platform, but the method remains consistent across all versions. No software installation or third-party tools are needed, just a few minutes of practice to memorize the trick.

What You'll Need

  • Your operating system and file explorer (macOS Finder, Windows File Explorer, or Linux Nautilus/GNOME Files).
  • A folder with at least one file (some shortcuts may fail on empty folders).
  • Basic familiarity with keyboard shortcuts (hold Ctrl/Cmd + an arrow key).
  • Your system’s default file explorer or terminal (for Linux/macOS).

Step-by-Step

  1. Windows File Explorer:
    1. Open Windows File Explorer by pressing Win + E. If you’re already in a folder, you can skip this step.
    2. Navigate to the target folder (click its icon or press Alt + arrow keys to browse via the ribbon menu).
    3. No shortcut exists for "select all files" directly, but you can achieve this with a two-step method:
      1. Press Ctrl + A to select all items in the folder's list view. This works in both the main pane and the preview pane (but not in Details view).
      2. If you’re in Details view (columns mode), press Alt + Enter to switch to List view, then Ctrl + A again.
  2. macOS Finder:
    1. Open the Finder by pressing Cmd + Space and typing "Finder," or by clicking the Dock icon.
    2. Navigate to the folder you want to work with.
    3. Press Cmd + A to select all files and folders in the current view. This works in both the sidebar and main list view (but may require switching between views if you’re in Columns mode).
    4. If you’re in Columns view (similar to Windows Details view), press Cmd + K to switch to List view, then Cmd + A again.
  3. Linux (GNOME Files/Nautilus):
    1. Open your file manager (e.g., Nautilus or Files) by clicking the application icon or running nautilus / thunar in the terminal.
    2. Navigate to the folder you want to process.
    3. Select all files in the current directory: Press Ctrl + A. This works in most Linux file managers, including GNOME Files and Thunar.
    4. If you need to select files in a subfolder recursively:
      1. Open the terminal (press Ctrl + Alt + T), navigate to the parent folder, then run: find . -type f -exec ls -l {} \; (this lists files recursively; you’ll need to manually select them in the terminal).
      2. Alternatively, use a terminal command to select files for bulk operations (e.g., xargs -I {} echo {} for scripting).

Common Mistakes

  • Using the wrong view mode: On Windows, if you’re in Details view, the shortcut won’t work. Switch to List view first by pressing Alt + Enter. On macOS, Columns mode requires switching to List view via Cmd + K before selecting all.
  • Empty folders: Some shortcuts (like terminal-based tools) may fail if no files exist. Always verify you’re in a folder with content.
  • Windows shortcut limitation: There is no direct "select all files" shortcut in File Explorer. The Ctrl + A trick only selects items in the visible list, not all files in a folder’s contents (e.g., nested subfolders). For deeper folders, use the command line or third-party tools like Recuva.
  • Linux terminal errors: If you’re trying to script recursive selection, ensure the find command includes -type f to avoid selecting folders. Also, some scripts may require root permissions for certain operations.

Tips

  • Memoize the shortcut: Ctrl + A is the standard for most file managers, but macOS users should practice Cmd + A for speed. In Windows, remember to switch to List view first if needed.
  • Use for bulk operations: Once selected, you can copy (Ctrl + C), move (Ctrl + X), or delete (Delete or Shift + Delete) all items at once. This is invaluable for organizing or clearing old files.
  • MacOS pro tip: If you’re working with a single folder repeatedly, enable "Always Open In Favorites" in Finder preferences to switch between views efficiently.
  • Linux deep selection: For folders with thousands of files, use terminal tools like ls -1 | xargs -I {} mv {} ~/trash (this moves files to trash; replace with your desired command).
  • Avoid hidden files: On Unix-like systems (macOS/Linux), hidden files (starting with .) may not appear by default. Open the folder and enable "Show Hidden Files" in preferences before using the shortcut.

Troubleshooting

If the shortcut doesn’t work as expected, try these fixes:

  1. Windows/Unsupported view mode:
    • Press Alt to show the ribbon menu, then F to switch to List view.
    • If the issue persists, close and reopen File Explorer.
  2. macOS shortcut not triggering:
    • Ensure you’re in a view where items are listed (not Thumbnail mode).
    • Right-click the folder header and select "Always Open In List View" to lock the view.
  3. Linux terminal errors (recursive selection):
    • Run ls in the folder to confirm files exist before running complex commands.
    • For scripting, use find with -maxdepth 1 to limit selection to the current folder only. find . -maxdepth 1 -type f lists only files in the current directory.
  4. No shortcut works at all?
    • Check if your file manager has a custom keyboard shortcut (e.g., GNOME Files may override defaults).
    • For Windows, try using a third-party tool like Bulk Rename Utility for advanced file selection.

If the issue persists and you’re comfortable with the command line, install a terminal-based file manager like Thunar (for XFCE) or use ls + xargs to script file operations manually.

Frequently Asked Questions

Can I use this shortcut in Cloud Storage (Google Drive, Dropbox, etc.)?

No. Cloud storage interfaces (like Google Drive or Dropbox) do not support native keyboard shortcuts for selecting all files. Workarounds include using third-party extensions (e.g., Drive for Mac with custom shortcuts) or manually clicking folders to group files.

Why doesn’t Windows File Explorer have a direct "select all files" shortcut?

Windows File Explorer prioritizes flexibility in view modes—its designers intentionally avoided a single global shortcut to prevent conflicts with other tools (e.g., Notepad, Word). The workaround with Ctrl + A + view switching is a workaround, not a design flaw.

How do I select all files in a subfolder (nested hierarchy) without opening each one?

On Linux/macOS, use the terminal with find: find /path/to/folder -type f -exec ls -l {} \; For Windows, open Command Prompt as admin, run: forfiles /p "C:\path\to\folder" /s /m *.* /c "cmd /c echo @file" to list files recursively, then manually select them in File Explorer.

Will this shortcut work in a read-only folder or restricted network drive?

Not reliably. Some file managers or network protocols (e.g., SMB) may prevent keyboard shortcuts from functioning due to permissions or optimization settings. Test the shortcut in a writable folder first.

Why does macOS’ Cmd + A sometimes fail on large folders?

macOS Finder may time out or behave unpredictably with thousands of files due to internal processing delays. Use the command line or a third-party tool like Alfred for large-scale selections.

Can I bind this shortcut to a custom action (e.g., rename all files)?

Yes! On macOS, use Automator to create a quick action that runs a script (e.g., for file in $(defaults read ~/Library/Preferences/com.apple.finder Finder RemoteServers) ; do mv "$file" "$file-x"). On Windows, use PowerShell to batch-rename files with Get-ChildItem -Recurse.