Today I deep-dived into how Linux handles command documentation, file paths, and system-wide file searching.
Commands and files can share the same name (e.g., passwd command vs /etc/passwd file). Section numbers let us access specific documentation:
man 1 passwd→ User commandman 5 passwd→ File format configurationman 8 <command>→ System administration commands
whatis(orman -f) → Displays available manual sections for a commandapropos(orman -k) → Searches manuals using keywords when you forget the exact command name
whereis <command> → Instantly locates the binary executable path and compressed (.gz) man page files.
locatesearches a pre-built system database for ultra-fast resultsupdatedb(with root privileges) indexes newly created files- Filter results using
-c(count),-b(basename only), or\for exact matches
Tested with a quick 10-question quiz — scored 90%.
#Linux #DevOps #CiscoNetworkingAcademy #LearningInPublic #SysAdmin