NDG Linux Essentials 2.21 | Getting Help Module 6 | Chapter 06 Exam Answers Full 100% 2023 and 2024
These are questions of Cisco NDG Linux Essentials 2.21 Getting Help Chapter 06 Exam Answers full 100% with the latest version and updated in 2023 and 2024. All answers are verified by experts with explanations.
-
What is the standard option to provide a command line program to view its documentation?
-h
--help
--info
--doc
-
Answers Explanation & Hint: The standard option to provide a command line program to view its documentation is
--help
.When you run a command followed by
--help
, the command will display its documentation, including a brief description of the command’s functionality and the various options and arguments it supports. This is a common convention among many command-line programs to provide a quick reference for users on how to use the command effectively. It is a helpful feature for users who might be unfamiliar with the command or need a reminder of its usage.
-
The command
man -k
is the same as the commandapropos
.True or False?
- True
- False
-
Answers Explanation & Hint: The command
man -k
is the same as the commandapropos
. Both commands are used to search the manual pages (man pages) for a specific keyword or a topic. They provide a way to find relevant commands and their descriptions based on a given keyword.For example, you can use either of the following commands to search for manual pages related to “network”:
man -k network
or
apropos network
Both commands will display a list of manual pages that have the keyword “network” in their description or title. The output will include the name of the command, a brief description, and the section of the manual where the entry is found.
-
The
whatis
command is the same asman -w
.- True
- False
-
Answers Explanation & Hint: The
whatis
command andman -w
are not the same. They serve different purposes:whatis
command: Thewhatis
command is used to display a short one-line description of a given command or topic from the manual pages. It provides a quick summary of what the command does without displaying the entire manual page. For example, you can usewhatis
as follows:whatis ls
Output
ls (1) - list directory contents
man -w
command: Theman -w
command is used to display the path to the location of the manual page file for a given command. It is useful for finding the actual file containing the manual page without opening the full manual in the pager. For example:man -w ls
Output:
/usr/share/man/man1/ls.1.gz
The output shows the path to the
ls
manual page, which is located in the/usr/share/man/man1/
directory.In summary,
whatis
provides a short description of a command, whileman -w
gives you the path to the manual page file. They are different commands with distinct purposes.
-
The directory where additional documentation for software packages most likely can be found is:
- /usr/share/doc
- /var/share/doc
- /var/lib/doc
- /usr/software/doc
-
Answers Explanation & Hint: The directory where additional documentation for software packages is most likely to be found is:
/usr/share/doc
In many Linux distributions, this is the common location where packages store their documentation files. It is a standard convention for packages to include additional documentation, such as README files, changelogs, license information, and other related materials, in this directory. The documentation files provide users with important information about the installed software and its usage.
Please note that while
/usr/share/doc
is a common location, there might be exceptions, and some packages might choose to store their documentation in other locations within the file system. However,/usr/share/doc
is a widely adopted location for this purpose in many Linux distributions.
-
Which two pager commands are used by the man command to control movement within the document?
(choose two)
page
more
less
grep
-
Answers Explanation & Hint: The two pager commands used by the
man
command to control movement within the document are:more
less
Both
more
andless
are pager programs that allow users to view the contents of a file or document one screen at a time. They enable navigation through the document using keyboard keys such as Enter, Spacebar, arrow keys, and more. When you use theman
command to view manual pages, it typically usesless
as the default pager, but some systems might usemore
as well. These pager commands make it easier to read long documents without overwhelming the terminal with all the information at once.
-
Commands typically executed by a user are covered in what section of the manual?
- 2
- 5
- 3
- 1
-
Answers Explanation & Hint: In Unix-like operating systems, the manual pages are organized into various sections to categorize different types of documentation. Section 1 is dedicated to user commands, providing information and documentation for the various commands and utilities that users can execute from the command line or terminal. When you use the
man
command without specifying a section, it defaults to displaying the manual page from Section 1 if available. For example:man ls
This command displays the manual page for the
ls
command, which falls under Section 1, as it is a common user command used to list directory contents.
-
To search the man page sections for the keyword
example
, which of the following command lines could you execute?(choose two)
man -k example
apropos example
man -f example
whatis example
-
The statement that describes the difference between a man page and an info page is:
- The info page is like a guide; a man page is a more concise reference.
- The man page is like a guide; the info page is a more concise reference.
- There is very little difference between them.
- The man page is a long detailed reference; the info page is very terse.
-
If you are reading the synopsis of a command from a man page, then items in square
[]
brackets are:- Optional
- Comments
- Required options
- Required arguments
-
The following sections commonly appear on a man page:
(choose three)
- SYNOPSIS
- DESCRIPTION
- NAME
- LICENSE
-
Section 5 of the manual pages covers:
- User commands
- Games
- File Formats
- System administration commands
-
To start searching a man page, the first key you press is:
s
!
f
/
-
In order to exit viewing a man page, press:
x
q
y
z
-
To get help on using the
info
command, execute:(choose two)
- info -q
- man info
- help info
- info info
-
To get help while using the info command, press:
- A
- Shift+H
- Shift+z
- g
-
To exit the info page, press:
- x
- x
- Q
- z
-
When interpreting the SYNOPSIS of a command found on a man page, the “
|
” means:- The items it separates cannot be used together
- The items it separates can be used together
-
The _____ command is normally executed daily to update the database of all files that are on the system.
locate
updatedb
find
search
-
The _____ command is normally executed to search for a command or man page.
updatedb
man -k
find
whereis
-
The _____ command can be used to find any file, not just commands or man pages.
whatis
locate
whereis
apropos
-
The
info
command merges all available documentation into a single “book”.True or False?
- True
- False
-
Section 9 of man pages relates to what?
- Games
- System Calls
- Kernel Routines
- Miscellaneous
- Library Calls
-
The
man
command searches each of the sections in order until it finds a match.True or False?
- True
- False
-
The
whatis
command will only return the first result for which section a man page is stored in.True or False?
- True
- False