lpr -PPrinting to the default printer, as shown in the previous section, is pretty easy. If you have more than one printer, however, and you want to print to one that is not the default, simply use the -P option, followed by the name of the printer. $ lpr -P bro_wk Lovecraft_-_Call_of_Cthulhu.txt If you don't know the names of your printers, use lpstat -p, as discussed previously in the "List All Available Printers" section. Note You'll notice that the filename has underscores instead of spaces, which makes it much easier to deal with on the command line. If the filename has spaces in it, you have to use one of the following methods for referencing it: $ lpr -P bro_wk "Lovecraft - Call of Cthulhu.txt" or $ lpr -P bro_wk Lovecraft\ -\ Call\ of\ Cthulhu.txt If the filename does have spaces, it's probably easiest to use tab completion so you don't have to type out the name yourself. For instance, you'd enter lpr -P bro_wk Love and then press the Tab key, allowing bash to finish the filename. For more on tab completion, see www.slackbook.org/html/shell-bash.html#SHELL-BASH-TAB. |