English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Linux lpr Command

Linux Command大全

The lpr (line printer, line printing) utility is used to place one or more files into the print queue for printing.

lpr can be used to send materials to a local or remote host for processing.

Syntax

lpr [ -P printer ]

Parameters:

  • -p Printer: Send materials to the specified printer Printer, the default value is lp.

Online Examples

The following command line prints the report file on the printer named mailroom:

$ lpr -P mailroom report 

Multiple files can be printed with a single print command, the following command line prints files in a directory named laser1Printed on the printer3Files:

$ lpr -P laser1 05.txt 108.txt 12.txt 

Linux Command大全