lp (Unix)

The lp command is used to manage print jobs and comes on Unix systems used. The program's name is derived from " line printer ", the command but is used for any type of printer. Originally, this command was part of the UNIX System V printing system, and has been used for some time as a distinguishing feature between UNIX System V and BSD.

However, there are different meanings of lp, briefly summarized here:

  • CUPS uses lp as a program to manage its print jobs.
  • The LPRng project represents lp as a wrapper around the command lpr available.
  • Plan 9 also includes a command with the name lp, which however in functionality differs from the System V.

Options

Here is a list of the available options of lp:

  • E - enforces encryption when connecting to the print server.
  • -c only for backward compatibility. In support systems, this option forces a copy of the document in the spool directory.
  • -d printer sends the job to the printer
  • -h host [: port] selects a server. Standarwert is "localhost " or the environment variable of the CUPS server.
  • -i order number selects the print job with job number to edit.
  • M - sends an email when the job is printed. (not CUPS 1.1)
  • N Copies sets the number of copies. ( Value 1-100)
  • -o option_name = Option_Wert sets the option_name option with the value Option_Wert.
  • -q prints the job with priority priority priority. (Value 1 (lowest ) to 100 (highest ), default is 50)
  • -s "silent mode ": No output the print job numbers.
  • -t name names the print job.
  • - u UserName breaks all orders that have been submitted by user name, from.
  • -H option controls the time of printing and cancel a job. For option following values ​​are possible: HH: MM will print at a specific time.
  • "hold" will stop the print job.
  • "resume " takes a stopped job, who was elected with -i, again.
  • "restart " prints the job, which was with -i selected again.
531730
de