Title: Printing
Course: CIS 121: Linux/UNIX I: Fundamentals ~ For IGNITE Review > Section: Learning Modules

The lp and lpr commands can be used to send data to a printer.

- lp filename(s) will print the contents of the listed file.
- ls -l filenames | lp will print a list of filenames, NOT the contents of the files.
- lp -d my_printer filex will print the contents of filex on the printer called my_printer.

The printer "my_printer" must already be defined on the Linux system.