165.

function OpenWin(url, w, h) { if(!w) w = 400; if(!h) h = 300; window.open(url, "_new", "width=" + w + ",height=" + h + ",menubar=no,toobar=no,scrollbars=yes", true); }

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?

 


LPI Linux Certification in a Nutshell
LPI Linux Certification in a Nutshell (In a Nutshell (OReilly))
ISBN: 0596005288
EAN: 2147483647
Year: 2000
Pages: 194

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net