-
-
Notifications
You must be signed in to change notification settings - Fork 1
Linux whereis Guide
Mattscreative edited this page Dec 5, 2025
·
2 revisions
Complete beginner-friendly guide to whereis on Linux, covering Arch Linux, CachyOS, and other distributions including finding binaries, source files, and manual pages.
whereis locates binaries, sources, and manuals.
Uses:
- Find binaries: Locate executables
- Find sources: Locate source files
- Find manuals: Locate man pages
- Complete info: Get all file types
Why it matters:
- File location: Find all related files
- Documentation: Locate man pages
- Sources: Find source files
Basic usage:
# Find command files
whereis ls
# Shows:
# ls: /usr/bin/ls /usr/share/man/man1/ls.1.gzFind several:
# Find multiple
whereis ls cat grep
# Files for eachFind binaries:
# Binaries only
whereis -b ls
# -b = binariesFind manuals:
# Manual pages only
whereis -m ls
# -m = manualsComplete info:
# All file types
whereis -a ls
# -a = all (shows all matches)Find sources:
# Source files
whereis -s ls
# -s = sourcesCheck installation:
# Check whereis
which whereis
# Usually in util-linux
# Install if missing
sudo pacman -S util-linuxThis guide covered whereis usage, file location, and file type finding for Arch Linux, CachyOS, and other distributions.
- which Guide - Find commands in PATH
- locate Guide - Find files by name
- find Guide - Advanced searching
-
whereis Documentation:
man whereis
This guide covers Arch Linux, CachyOS, and other Linux distributions. For distribution-specific details, refer to your distribution's documentation.