sysadmin:printing
lp printing
# See default printer lpstat -d # p sepcifies show printers, d reports the default printer # See available printers lpstat -p # Single printer lpstat -p [name] # Show accepting state of prn lpstat -a [name] # See printer jobs lpstat -o # Communicate with a different cups (with example) lpstat -h server -p # Print a file to the printer lp -d [name] [filename] # The -o allows options to be passed to the printer # print manipulation lpr -P [name] -o landscape -o scaling=75 -o media=A4 -o sides=two-sided-long-edge filename.jpg # multiple copies lpr -P [name] -#[num-copies] [filename] # Double sided lpr -o sides=two-sided-long-edge filename lpr -o sides=two-sided-short-edge filename # Page range lpr -o page-ranges=1-4,7,9-12 filename # N-Up (mupltiple pages per sheet lpr -o number-up=2 filename ENTER
sysadmin/printing.txt · Last modified: by pfowler
