/ factorpad.com / tech / linux-essentials / apropos-command.html
An ad-free and cookie-free website.
Beginner
Videos can also be accessed from the Linux Essentials Playlist on YouTube.
Linux apropos Command Summary with Examples (3:48)
Our twenty-ninth word, or command to memorize is
apropos
from our category
Help.
apropos
allows you to search manual
titles and descriptions.
-options | description |
---|---|
-? , --help |
To access help |
-w , --wildcard |
Use shell-type wildcards in the search |
-e , --exact |
Match keyword against both titles and descriptions |
Recall from the previous videos, we've become pretty comfortable with reviewing text files, so now it's time to enhance our search skills.
Before we start, it helps to think of commands as mini programs and
most follow this structure:
command -option(s) argument(s)
.
The apropos
command has
15 options, and arguments represent the single or
multiple keywords you'd like to search for.
Like most commands, help is available with double-dash
--help
and the
-w
option gives you more search
flexibility using wildcards. And the -e
option searches both fields in a case-insensitive way.
So why is apropos
an important command?
Well, there may be multiple ways to solve a problem so it helps if you
can find other related commands.
And now you know how to do that.
Okay, the best way to embed this in your memory is by typing in your own terminal window.
Find this on your Mac using a program called Terminal. On Linux use Terminal or Konsole, and currently Microsoft is adding this functionality to Windows.
Here we go, let's start with a whatis
from way back in video #2, on apropos
.
whatis
pulls two items, the title
and short description from the manual page, and
apropos
searches these two fields for argument keywords.
Next, let's use the tail
command from
the last video and search for it.
Notice how it returned the word 'tail' in either
field? And the word 'detail' here really isn't
helpful. So apropos
can be a crude
way to find help, but with practice it may save you time.
And last, let's improve this search using a wildcard. Typing
apropos -w tail*
will include words
that start with 'tail', but not words like
'detail'.
See?
Okay now you know how to use apropos
.
And you know the syntax for commands, options and arguments.
One last tip about the apropos
command.
Like other commands, for apropos
to be
effective, it's helpful to learn those wildcards.
Okay, thanks for visiting today. I hope this was a helpful
introduction to the apropos
command.
For an overview of the 100 videos, the 8 quizzes, a cheat sheet, the categories and a Q&A section, visit:
Join our growing family on YouTube, subscribe and follow @factorpad on Twitter for updates to new content.
tail
command,
hit Back.find
, click Next./ factorpad.com / tech / linux-essentials / apropos-command.html
A newly-updated free resource. Connect and refer a friend today.