Red Hat System Administration I 3.9 Lab PDF
Red Hat System Administration I 3.9 Lab PDF
NETLAB Academy Edition, NETLAB Professional Edition, and NETLAB+ are registered trademarks of Network Development Group, Inc.
“Red Hat,” Red Hat Linux, and the Red Hat “Shadowman” logo are trademarks or registered trademarks of Red Hat, Inc. in the US
and other countries.
3.9. Lab: Viewing and Printing Help Documentation
Contents
Introduction ........................................................................................................................ 3
Outcomes ............................................................................................................................ 3
Lab Topology ....................................................................................................................... 4
Lab Settings ......................................................................................................................... 5
1 Performance Checklist ................................................................................................ 6
Introduction
In this lab, you will practice research methods typically used by system administrators to
learn how to perform necessary tasks.
Outcomes
Lab Topology
Lab Settings
The information in the table below will be needed in order to complete the lab. The
task sections below provide details on the use of this information.
1 Performance Checklist
The topology includes two virtual machines that are accessible to users. Take care to
perform the tasks as instructed, including using the appropriate virtual machine as
directed.
3. Research man(1) to determine how to prepare a man page for printing. What
format or rendering language is commonly used?
4. Create a formatted output file of the passwd man page. Determine the file
content format.
The file is in PostScript format, learned using the file command and confirmed
by viewing the file contents. Notice the header lines of PostScript information.
5. Research using man to learn the command(s) used for viewing or printing
PostScript files.
Using multiple words with the -k option finds man pages matching either word;
those with "postscript" or "viewer" in their descriptions. Notice the evince(1) and
ghostscript(1) (or gs(1)) commands in the output.
6. Research evince(1) using man to learn how to use the viewer in preview mode.
Also, determine how to open a document starting on a specific page.
7. View your PostScript file using the various evince options you researched. Close
your document file when you are finished.
8. Using man, research lp(1) to determine how to print any document starting on a
specific page. Without actually entering any commands (since there are no
printers), what would be the syntax, on one command line, to print only pages 2
and 3 of your PostScript file?
a. From lp(1), learn that the -P option specifies pages. The lp command
spools to the default printer, sending only the page range starting on 2
and ending on 3.
There are currently no printers configured in the classroom. However, you may practice
later using printer models configured in your own environment. Familiarity with these
commands is often useful.
9. Using pinfo, look for GNU info about the evince viewer.
Notice that the evince(1) man page displays instead. The pinfo document
viewer looks for the relevant man page when no appropriate GNU
documentation node exists for the requested topic.
a. From the directory node, press DownArrow until the link is selected for
Coreutils: Core GNU (file, text, shell) utilities. Press Enter
to follow the link to GNU Coreutils. Notice the long menu listing, with
Introduction currently selected.
b. Press Enter. At the top of the screen, pay attention to the header, which
displays the previous, current, and next nodes. Browse the information,
press n for the next node, and repeat. Browse each screen, simply
noticing the commands and their descriptions. Continue until node 29
Opening the Software Toolbox is reached. Read this chapter in its
entirety using the navigation you have learned. When finished, return the
way you came by using only LeftArrow until the top directory node is
finally reached.
c. Press q to close pinfo.
11. Using firefox, open the system's package documentation directory and browse
into the man-db package subdirectory. View the provided manual(s).
a. After browsing to the man-db directory, click to open and view the text
version of the manual, then close it.
b. Click to open the PostScript version. As observed earlier, evince is the
system's default viewer for PostScript and PDF documents. You may wish
to return to these documents later to become more knowledgeable
about man.
c. When finished, close the evince viewer.
12. Using the open Firefox browser, locate and browse into the initscripts
package subdirectory. View the sysconfig.txt file, which describes important
system configuration options stored in the /etc/sysconfig directory.
Notice how useful a browser is for locating and viewing local system documentation.