Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to set the default printer on a machine running xubuntu from the command line. It looks like I need: lpoptions -d "printer_name" but I do not know the name of the printer. How can I find this information?

Thank you.

share|improve this question
up vote 1 down vote accepted

You can use the command:

lpstat -a

This returns a list of installed printers.

share|improve this answer
thanks for the info but the printer is not currently installed. It looks like what I was looking for was lpinfo -v. – KennyPeanuts Apr 13 '11 at 1:18

Probably something like lpstat -p or lpstat -a. Some information you might only be able to get by visiting http://localhost:631/printers, though; I don't see a way to get the location or description from the command line offhand.

share|improve this answer
The printer wasn't installed yet. I prob. should have made that more clear in the question. Thanks for the info though. I think lpinfo -v is what I was looking for. – KennyPeanuts Apr 13 '11 at 1:25
If it's not installed yet, it probably doesn't have a name and you can't do much with it then. – geekosaur Apr 13 '11 at 2:17
yeah it looks like I was biting off a bit more than I thought when I asked the question. Since @Christi and you essentially answered the question I asked (and not the one in my head) I am accepting the answer from @Christi since I think she was first. Thanks. – KennyPeanuts Apr 13 '11 at 13:23

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .