lprint
system administrationLinux/Unix
The lprint command is one of the most frequently used commands in Linux/Unix-like operating systems. lprint Print a file
Quick Reference
Command Name:
lprint
Category:
system administration
Platform:
Linux/Unix
Basic Usage:
lprint [options] [arguments]
Common Use Cases
Syntax
lprint [options] [file...]
Options
| Option | Description |
|---|---|
-d, --destination printer |
Print to the specified printer |
--copies=num |
Print the specified number of copies |
--duplex |
Print on both sides of the page |
--fit-to-page |
Scale the document to fit on the page |
--media=size |
Use the specified media size (e.g., Letter, A4) |
-o option=value |
Set a printer-specific option |
--help |
Show command help |
--version |
Show version information |
Examples
How to Use These Examples
The examples below show common ways to use the lprint command. Try them in your terminal to see the results. You can copy any example by clicking on the code block.