Linux CLI HowTo 11 ๐ง whatis, info and apropos commands
1. How to get brief descriptions of commands
Steps:
- Open terminal
- Type
whatis command_name - Press Enter
- Example:
whatis lsshows “ls – list directory contents”
2. How to check multiple commands at once
Steps:
- Open terminal
- Type
whatis command1 command2 command3 - Press Enter
- Example:
whatis cp mv rmshows descriptions for all three commands
3. How to use wildcard search with whatis
Steps:
- Open terminal
- Type
whatis -w 'pattern' - Press Enter
- Example:
whatis -w 'mv*'finds all commands starting with “mv”
4. How to use regex search with whatis
Steps:
- Open terminal
- Type
whatis -r 'regex_pattern' - Press Enter
- Example:
whatis -r 'mv[ab]+'finds commands matching the pattern
5. How to update the whatis database
Steps:
- Open terminal
- Type
sudo makewhatis - Press Enter
- Wait for completion (may take several minutes)
- This updates the manual page database after installing new commands
6. How to search for commands by keyword
Steps:
- Open terminal
- Type
apropos keyword - Press Enter
- Example:
apropos directoryfinds all commands related to directories
7. How to search for multiple keywords
Steps:
- Open terminal
- Type
apropos "keyword1 keyword2" - Press Enter
- Example:
apropos "remove file"searches for commands that mention both remove and file
8. How to use wildcard search with apropos
Steps:
- Open terminal
- Type
apropos -w 'pattern' - Press Enter
- Example:
apropos -w 'mv*'finds all commands starting with “mv”
9. How to use regex search with apropos
Steps:
- Open terminal
- Type
apropos -r 'regex_pattern' - Press Enter
- Example:
apropos -r 'mv[ab]+'finds commands matching the pattern
10. How to search in specific manual sections
Steps:
- Open terminal
- Type
apropos -s section_numbers keyword - Press Enter
- Example:
apropos -s 1,2 directorysearches only in sections 1 and 2 of manuals
11. How to require all keywords to be present
Steps:
- Open terminal
- Type
apropos -a keyword1 keyword2 - Press Enter
- Example:
apropos -a remove directoryfinds commands containing both “remove” and “directory”
12. How to get detailed information about a command
Steps:
- Open terminal
- Type
info command_name - Press Enter
- Example:
info cpshows comprehensive help for the cp command
13. How to search for commands in info documentation
Steps:
- Open terminal
- Type
info -k keyword - Press Enter
- Example:
info -k "copy"finds all commands related to copying
14. How to navigate info documentation
Steps:
- Open info help (like
info cp) - Use these navigation keys:
- Space: scroll forward one page
- Backspace: scroll backward one page
- n: move to next node
- p: move to previous node
- u: go up one level
- Enter: follow a link to another section
- q: quit info and return to terminal
15. How to specify a particular info file
Steps:
- Open terminal
- Type
info -f filename - Press Enter
- Example:
info -f cpspecifies the cp info file directly
16. How to Find file manipulation commands
Steps:
- Use apropos to find related commands:
apropos file - Check specific commands with whatis:
whatis cp mv rm - Get detailed info on important commands:
info cp
17. How to Search for commands after installation
Steps:
- After installing new software, run:
sudo makewhatis - Search for the new commands:
whatis command_name - Get detailed information:
info command_name
18. How to Find commands by partial names
Steps:
- Use wildcard search:
apropos -w 'mv*' - Use regex search:
whatis -r 'mv[ab]+' - Combine with other options for precise results
19. When to use whatis vs apropos
- Use whatis when you know the exact command name
- Use apropos when you want to search by keywords or description
20. apropos, whatis, info common parameter combinations
apropos -r 'pattern' -s 1,2for regex search in specific sectionswhatis -w '*'to see all available commands with descriptionsinfo -k 'keyword'to find related info documentation
21. Navigation shortcuts reminder
- Space and Backspace: scroll through pages
- n/p: move between nodes
- u: go up a level
- Enter: follow links
- q: quit cleanly
Stop using slow, ad-bloated tool sites! ๐คฎ
๐ Search “KandZ Tools” on Google to use many professional utilities for free.
KandZ.me is the ultimate minimalist hub for:
โ
Finance (Mortgage, Interest, Inflation)
โ
Tech (Base64, JSON, Dev Suite, IP)
โ
Health (BMI, BMR, TDEE)
โ
Productivity (Timer, Workspace, QR)
โก๏ธ Fast & Private
๐ No data leaves your device
๐ 100% Free
๐ Use it now: https://tools.kandz.me
๐ Bookmark itโyouโll need it later!