Book: LPI Linux
Certification in a Nutshell Section: Chapter 22.
Exam 102 Review Questions and Exercises
22.4 Text Editing, Processing, and
Printing ( Topic 1.7)
22.4.1 Review Questions
-
What is the difference between the commands
:q and :q! when running vi?
-
What does it mean to put vi into command mode ?
-
What does lpd do to handle incoming print
jobs destined for empty print queues?
-
Describe the kinds of information included
in /etc/printcap.
-
What is the function of a print
filter?
-
What does the -P option specify to the print
commands?
-
When is it useful to pipe into the standard
input of lpr instead of
simply using a filename as an argument?
-
How is the Ghostscript program used in
printing to a non-PostScript printer?
-
What filter is used on a Linux system to
print to remote printers on Windows clients?
22.4.2 Exercises
-
Use vi to
create a text file. Enter insert mode with i and insert text. Quit insert mode
with Esc and move around
using h, j, k, and l, then reenter insert mode and add
more text. End the session with ZZ. cat the file. Is it as expected?
-
On a system with an existing printer,
examine /etc/printcap. Which print filter is used for
the printer? Which queue or queues are directed at the
printer?
-
Check the printer status with lpq -Pprinter and lpc status. Print to the queue
using lpr -Pprinter
file.
-
Examine /var/spool/lp for the spool
directory of your print queue. Examine the files you find
there.
-
If APSfilter
is not installed, install it and allow it to add new print
queues. How are these queues different from one another and
from your default queue?
|
| |