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

  1. What is the difference between the commands :q and :q! when running vi?

  2. What does it mean to put vi into command mode ?

  3. What does lpd do to handle incoming print jobs destined for empty print queues?

  4. Describe the kinds of information included in /etc/printcap.

  5. What is the function of a print filter?

  6. What does the -P option specify to the print commands?

  7. When is it useful to pipe into the standard input of lpr instead of simply using a filename as an argument?

  8. How is the Ghostscript program used in printing to a non-PostScript printer?

  9. What filter is used on a Linux system to print to remote printers on Windows clients?

22.4.2 Exercises

  1. 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?

  2. 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?

  3. Check the printer status with lpq -Pprinter and lpc status. Print to the queue using lpr -Pprinter file.

  4. Examine /var/spool/lp for the spool directory of your print queue. Examine the files you find there.

  5. 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?