The Linux command-line can appear pretty complicated and occasionally even
a little alarming. But it also offers a whole stack of helpful documentation
which you can access directly from the command-line. Read on to learn how to
help yourself when – or even before – you get stuck.
A question you may have quite early on in your command-line exploration is:
is there a command that does the thing I want to do? apropos is here
to help. Manual pages (I’ll discuss these in more detail below) are available
for almost all Linux commands, and include a short description of the command.
apropos searches this for the string you provide. So
apropos date
will output every command that has the word “date” in its name or its short
description, as in this Figure 1.
This is helpful if you know that there is a command a bit like [whatever] but
can’t quite remember it; or if you’re looking for a command to do a
particular task. If you find a command that might be what you’re after, but
you’re not sure, try checking its manual page (see next page).
If you know what command you want to use, and you know roughly how it
works, but you’ve forgotten the details, then the option --help may
be useful. For example, try the command:
du --help
to get information on what options you can use with the du command
(this gives you information about disk usage). In some cases the help output
may be too long for the screen: in this case try:
du --help | more
and press the space key to scroll down through the information.
--help, however, may not be much good if you don’t really
understand the command in the first place. To get a bit more information, try
the man (short for “manual”) command:
man du
The man (manual) pages will give you more information about a command. It
should cover what it is supposed to do, what options you can use, with details
about how to use them, other relevant information, and suggestions of other
related commands. Some manpages may also have a useful “examples” section. The start of the du manpage, shown in Figure 2, shows the standard format.
Man pages can be limited, and they’re often not great if you’re an absolute
beginner, especially if the command is a complicated one. But they are often
enough to get you started – and in some cases they can quite genuinely
provide an entire manual. Check out man bash for a very
comprehensive example.
One point to bear in mind is that there can be multiple categories of man
page. The ones you are most likely to run across are:
1Executable programs or shell commands 5File formats and conventions eg /etc/passwd 8System administration commands (usually only for root)
(Type man man for further information.)
For an example of this,
compare the output of man crontab with man 5 crontab. The
first one describes the crontab command (this edits crontab
files, which tell the program cron which tasks to run at what time).
The second one describes the format that a crontab file should have.
Both are obviously useful!
If you’d rather read manpages online, just type man command into
Google.
KDE’s Konqueror Web and file browser has a built-in man page reader. Just type “man:[command name]”, like “man:bash” in the URL bar. It even gives a list of alphabetical suggestions as you type–ed
An alternative to man pages is the info command. Indeed, for some
commands, the man page is pretty much only a redirection to the more
comprehensive info page. However, info pages can be a little confusing to
navigate.
Try typing info find. Your first screen should look a bit like
figure 3.
To get a list of navigation commands,
hit ? (to quit this help page, hit l). n moves to the next node (so just hitting n
repeatedly will take you straight through an info document), and p to
the previous node; u goes up one menu level. If you use the arrow
keys to move to a hyperlink (marked with *asterisks*), and hit
return, you’ll be taken to that menu item. l will take you back one
level (to the point where you hit return).
In some cases, the info command will just take you to the man page for a
command.
Many more complicated Linux programs have documentation available in
/usr/share/doc/. Sometimes this will consist only of the changelog
for your distribution, but sometimes there may be example files, or more
extensive documentation or handbooks. It’s certainly worth checking out
if you’re at a loss. This directory is more likely to be helpful for
programs rather than commands.
So, there’s plenty of Linux help available at your fingertips and no excuse
for not getting stuck in with the command line!
This article was first published on ServerWatch.com.
Huawei’s AI Update: Things Are Moving Faster Than We Think
FEATURE | By Rob Enderle,
December 04, 2020
Keeping Machine Learning Algorithms Honest in the ‘Ethics-First’ Era
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 18, 2020
Key Trends in Chatbots and RPA
FEATURE | By Guest Author,
November 10, 2020
FEATURE | By Samuel Greengard,
November 05, 2020
ARTIFICIAL INTELLIGENCE | By Guest Author,
November 02, 2020
How Intel’s Work With Autonomous Cars Could Redefine General Purpose AI
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 29, 2020
Dell Technologies World: Weaving Together Human And Machine Interaction For AI And Robotics
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
October 23, 2020
The Super Moderator, or How IBM Project Debater Could Save Social Media
FEATURE | By Rob Enderle,
October 16, 2020
FEATURE | By Cynthia Harvey,
October 07, 2020
ARTIFICIAL INTELLIGENCE | By Guest Author,
October 05, 2020
CIOs Discuss the Promise of AI and Data Science
FEATURE | By Guest Author,
September 25, 2020
Microsoft Is Building An AI Product That Could Predict The Future
FEATURE | By Rob Enderle,
September 25, 2020
Top 10 Machine Learning Companies 2020
FEATURE | By Cynthia Harvey,
September 22, 2020
NVIDIA and ARM: Massively Changing The AI Landscape
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
September 18, 2020
Continuous Intelligence: Expert Discussion [Video and Podcast]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 14, 2020
Artificial Intelligence: Governance and Ethics [Video]
ARTIFICIAL INTELLIGENCE | By James Maguire,
September 13, 2020
IBM Watson At The US Open: Showcasing The Power Of A Mature Enterprise-Class AI
FEATURE | By Rob Enderle,
September 11, 2020
Artificial Intelligence: Perception vs. Reality
FEATURE | By James Maguire,
September 09, 2020
Anticipating The Coming Wave Of AI Enhanced PCs
FEATURE | By Rob Enderle,
September 05, 2020
The Critical Nature Of IBM’s NLP (Natural Language Processing) Effort
ARTIFICIAL INTELLIGENCE | By Rob Enderle,
August 14, 2020
Datamation is the leading industry resource for B2B data professionals and technology buyers. Datamation's focus is on providing insight into the latest trends and innovation in AI, data security, big data, and more, along with in-depth product recommendations and comparisons. More than 1.7M users gain insight and guidance from Datamation every year.
Advertise with TechnologyAdvice on Datamation and our other data and technology-focused platforms.
Advertise with Us
Property of TechnologyAdvice.
© 2025 TechnologyAdvice. All Rights Reserved
Advertiser Disclosure: Some of the products that appear on this
site are from companies from which TechnologyAdvice receives
compensation. This compensation may impact how and where products
appear on this site including, for example, the order in which
they appear. TechnologyAdvice does not include all companies
or all types of products available in the marketplace.