An ad-free and cookie-free website.
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
apropos allows you to search manual
titles and descriptions.
||To access help|
||Use shell-type wildcards in the search|
||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).
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
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
from way back in video #2, on
whatis pulls two items, the title
and short description from the manual page, and
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
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
Okay now you know how to use
And you know the syntax for commands, options and arguments.
One last tip about the
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
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.
tailcommand, hit Back.
find, click Next.
A newly-updated free resource. Connect and refer a friend today.