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