Assign Fixed Path to Printer (/Dev/Usb/Lp0)

Assign Fixed Path to Printer (/Dev/Usb/Lp0)

I have two USB printers. They are assigned a path depending on the order of turning them on. The first one is /deb/usb/lp0 and the second one /deb/usb/lp1. However, I sometimes echo to these printers directly and need to know which one is lp0 and which one is lp1. Can I assign a fixed path in some way?

Thanks!

1 Answer

You can write udev-rules to assign different names to the printer, depending on their serial numbers.

See for an example of a udev printer rule.

1

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Sophia Al-Mansoor
Author

Sophia Al-Mansoor

Sophia analyzes international trade, startup ecosystems, retail transformation, and supply chain logistics for modern digital publications.