Forrest logo
back to context overview

lp

List of commands for lp:

  • lp:ai:4732b Prints and staples a PDF document using the specified printer
    $ lp -d printer_name -o staple=yes file.pdf
    try on your machine
    explain this command
  • lp:ai:c7812 Send pdf file to postscript network printer, stapling the printed document
    $ lp -d printer_name -o sides=two-sided-long-edge -o OutputMode=StapleTop -o OutputBin=Bin4 filename.pdf
    try on your machine
    explain this command
  • lp:tldr:2f4a8 lp: Resume printing a job.
    $ lp -i ${job_id} -H resume
    try on your machine
    explain this command
  • lp:tldr:90a55 lp: Print N copies of file to default printer (replace N with desired number of copies).
    $ lp -n ${N} ${filenamename}
    try on your machine
    explain this command
  • lp:tldr:91089 lp: Print a file to the default printer.
    $ lp ${filenamename}
    try on your machine
    explain this command
  • lp:tldr:d22f1 lp: Print the output of a command to the default printer (see `lpstat` command).
    $ echo "test" | lp
    try on your machine
    explain this command
  • lp:tldr:d54a6 lp: Print a file to a named printer (see `lpstat` command).
    $ lp -d ${printer_name} ${filenamename}
    try on your machine
    explain this command
  • lp:tldr:f0e65 lp: Print only certain pages to the default printer (print pages 1, 3-5, and 16).
    $ lp -P 1,3-5,16 ${filenamename}
    try on your machine
    explain this command
back to context overview