Monday, October 26, 2009

Is This a Printout I See Before Me?













Is This a Printout I See Before Me?

If a file looks okay on-screen when you use the cat command, try printing the file. If you use UNIX System V, type this line to print your famous eggplant dish:



lp eggplant.recipe

If you use BSD UNIX or Linux, type



lpr eggplant.recipe

Assuming that you have a printer that’s hooked up, turned on, has paper, and that your username is set up to use it, the eggplant.recipe file prints. If it doesn’t, see Chapter 9 to straighten things out. If your computer is blessed with a network, the printed copy may come out down the hall or on another floor. In one inexplicable case, when users in New York printed any file, the copies ended up on a printer somewhere in Japan. If your printer isn’t attached directly to your computer, you probably have to ask for advice about where to pick up the printout. If you can print files on more than one printer, you use the -d or -P option with the printer name to tell UNIX which printer you want to use, as described in see Chapter 9.











No comments: