which & whereis - Find Commands in Linux

From the Linux Essential Commands cheat sheet · Search & Find · verified Jul 2026

which & whereis - Find Commands

Locate executable commands and their paths

bash
# Find command location
which python
which python3

# Find command, source, and man pages
whereis python

# Show all matches
which -a python
✅ which shows path to executable in PATH
💡 whereis also shows man pages and source files
🔍 Useful for checking which version of a command will run
searchwhichwhereiscommands

Continue with Linux Essential Commands

Save the full cheat sheet or work through every related task.

More Linux tasks

Back to the full Linux Essential Commands cheat sheet