CentOS 6.3 / RHEL 6.3
Can someone please explain the difference between the whatis
command and the apropos
command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.
centoscommand linerhel
CentOS 6.3 / RHEL 6.3
Can someone please explain the difference between the whatis
command and the apropos
command? I noticed that both appear to be installed by default and I'm not sure what the difference is between them.
Best Answer
whatis
displays one-line manual page descriptions, intended to give you a general idea of what a program do,while
apropos
searches the manual page names and descriptions, intended to help you to learn what program to use when performing a certain job.Some examples
Say, I want to know what does
df
program do.whatis
gives me answer.And now, I want to unzip an archive.
apropos
gives me some choises for consideration.UPDATE:
Since both
whatis
andapropos
search man database, you can only get info on what's already installed on your system.