Monday, February 27, 2012


So that took longer than it should. There is a command called whatis that gives you a single line description of a command:

whatis grep

grep (1) - print lines matching a pattern
grep (1p) - search a file for a pattern
grep (rpm) - The GNU versions of grep pattern matching utilities

A nice little tool to use. I just installed CentOS 5 in a VM and noticed that all my whatis commands were returning nothing appopriate…I quickly found the makewhatis command on some articles but could not locate it for CentOS 5 at first. Finally found the location:


This command builds the database and now my whatis commands are working.


Post a Comment