which & whereis - Find Commands in Linux

From the Linux Commands cheat sheet · Search & Find · verified Nov 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 Commands

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

More Linux tasks

Back to the full Linux Commands cheat sheet