9.4. Direct Printing
Prev | Chapter 9. Printing | Next

## 9.4. Direct Printing

For occasional printing, files can be sent directly to a printer device without any setup. For example, a file called `sample.txt` can be sent to a USB printer:

    # cp sample.txt /dev/unlpt0

Direct printing to network printers depends on the abilities of the printer, but most accept print jobs on port 9100, and nc(1) can be used with them. To print the same file to a printer with the DNS hostname of `netlaser`:

    # nc netlaser 9100 < sample.txt

Prev | Up | Next
9.3. Common Page Description Languages | Home | 9.5. LPD (Line Printer Daemon)

All FreeBSD documents are available for download at https://download.freebsd.org/ftp/doc/

Questions that are not answered by the documentation may be sent to <freebsd-questions@FreeBSD.org>.
Send questions about this document to <freebsd-doc@FreeBSD.org>.