Printing
lpr | Print a file. |
lpq | View the print queue. |
lprm | Remove a print job from the queue. |
You can print directly from the command line using the lpr
family of commands. Well…sort of. Out of the
box, these commands work fine for plain text and PostScript files, but not
for documents like spreadsheets or Photoshop images. For those, you’ll
need to run the document’s application (e.g., Photoshop) and use its Print
command.
Get Macintosh Terminal Pocket Guide now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.