• Skip to main content

Uly.me

cloud engineer

  • Home
  • About
  • Archives

queue

Printing From A Terminal

July 7, 2020

There are times you just want to print directly from the command line.

# check your printing options
lpotions
lpinfo -v
# what's your default printer
lpinfo -p -d
# use lp to print
lp notes.txt
# use -n print multiple copies
lp -n 2 notes.txt
# check the printer queue
lp -q
# use the job number to cancel print jobs if needed
cancel 123

# check your printing options lpotions lpinfo -v # what's your default printer lpinfo -p -d # use lp to print lp notes.txt # use -n print multiple copies lp -n 2 notes.txt # check the printer queue lp -q # use the job number to cancel print jobs if needed cancel 123

Filed Under: Linux Tagged With: cancel, command line, cups, linux, print, queue

  • Home
  • About
  • Archives

Copyright © 2023