usb_printerid(1)
π usb_printerid β the little USB printer ID gossip session π
okay so bestie, welcome to usb_printerid from the General Commands Manual section β she's a tiny lil one-trick pony and honestly? her trick is so useful. She prints the ID of the printer on a USB port. That's it. That's the whole job. And she ate. π
β¨ SYNOPSIS β¨
usb_printerid [options] /dev/usb/lpNNN
yeah. that's the whole vibe. you hand her [options] if you want, plus the device path /dev/usb/lpNNN, and she goes to work. no cap. π«Ά
πΈ DESCRIPTION πΈ
So like, here's the tea: usb_printerid prints the identification of the printer on a USB port. How does she do it, you ask? She slides in using the ioctl control LPIOC_GET_DEVICE_ID and asks the printer to introduce itself. Iconic behavior, honestly. The printer spills its whole government name. π₯
π¦ EXAMPLES π¦
Bestie, this is the moment. The main character scene. You print the USB info before and after downloading the firmware β and you get to watch the printer's lil glow-up happen live. π
# usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;\
DES:HP LaserJet 1020;
# cp /var/lib/foo2zjs/firmware/sihp1020.dl /dev/usb/lp0
# usb_printerid /dev/usb/lp0
GET_DEVICE_ID string:
MFG:Hewlett-Packard;MDL:HP LaserJet 1020;CMD:ACL;CLS:PRINTER;\
DES:HP LaserJet 1020;FWVER:20050309;
See that?? FWVER:20050309; showing up at the end after the firmware drop?? that's the printer saying "new me, who dis". Obsessed. π
π FILES π
/usr/bin/usb_printeridβ the girl herself π/var/lib/foo2zjs/firmware/*β where the firmware glow-ups live π
π SEE ALSO π
π AUTHOR π
- Rick Richardson
<rick.richardson@comcast.net> http://foo2zjs.rkkda.com/
okay quick vibe check, bestie: that's literally everything β nothing hidden, nothing skipped. go forth and identify some printers. periodt. π
Stay slay, stay curious β this page came to you from the General Commands Manual section of the manual pages, and yes, the footer is just the classic manual-page bookending with no date attached, so we're keeping it cute and timeless. π¦β¨
π¦ where this page comes from
- ubuntu noble: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6 Β· GPL-2.0-or-later
- ubuntu questing: printer-driver-foo2zjs-common 20200505dfsg0-2ubuntu6
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms