rlpq(1)
β¨ rlpq(1) β your fave little queue-peeker from the UNIX Reference Manual β¨
hiii bestie π«Ά welcome to the rlpq(1) page. it's giving "i can see every printer on the network and i'm not even sorry." let's get into it π
πΈ NAME πΈ
rlpq β remote line printer queue examination program
π¦ SYNOPSIS π¦
rlpq [-lmqNV] [-Hprinthost] [-Pprinter] [-Xproxyhost] [--debug]
[--timeout=seconds] [--port=port] [ job # ... ] [ username ... ]
π DESCRIPTION π
okay so rlpq uses TCP/IP to snoop on print queues for printers anywhere on a network. and the way that it's different from lpq?? it does not require the remote printers to be explicitly known to your local system (which, historically, meant going through /etc/printcap). so basically it's way more flexible and needs way less admin work. slay β¨
you can use rlpq anywhere you'd use a traditional lpq, and it's backwards compatible with traditional BSD lpq. and get this β if rlpq is invoked as lpq, it preserves all known lpq semantics. iconic behavior honestly π
rlpq can be set up, installed, and used in the same two ways as rlpr(1) β that is, either with or without the rlprd(8) proxy daemon. please go read rlpr(1) for the deets, and to figure out whether you're gonna need to use the rlprd(8) proxy daemon or not. no cap, it matters π
π OPTIONS π
π Environment/Setup π
--debugβ print gobs of debugging information. like, so many gobs. it's giving verbose fr fr π-N,--no-bindβ don't try to bind to a privileged port before connecting tolpd. please check out the CONFIGURING A PROXY section inrlpr(1)for the info on using this option. iykyk π§--port=numberβ pick an alternate port (instead of7290) to connect to, if you're usingrlprd. usually you don't need this. lowkey it's a niche one π-H,--printhost=hostβ select the host to print to (used with-P).
and instead of using -H, you can just specify the hostname directly by including it with the printer name using the printer@hostname syntax. two ways, both valid, pick your vibe π
-P,--printer=printername,--queue=printernameβ select the printer to print to (used with-H). π-X,--proxy=proxyhost,--proxyhost=proxyhostβ select the proxy host to use, if necessary.--timeout=secondsβ set the inactivity timer. if the connection hangs for more than seconds seconds, thenrlpqgives up. use the special value-1to wait forever. default timeout is 3 seconds. β³-V,--versionβ print version and exit. that's it, that's the whole thing π
π Behavior π
-l,--longβ produce a more detailed report. the full tea, no skimping β-m,--mineβ list only the jobs belonging to you. main character energy only, as it should be β¨-q,--quiet,--silentβ quiet mode: stay quiet (except for fatal errors). and when this flag is set,rlpq's return value tells you whether there are any items in the specified queue that meet the specified criteria β a return value of zero indicates success. so like, it's a yes/no vibe check in exit-code form π«Ά
π ENVIRONMENT VARIABLES π
the following environment variables are used by rlpq:
RLPR_PRINTHOSTβ specifies the default host's queue to examine.PRINTERorLPDESTβ specifies the default printer to check on the host. firstPRINTERis consulted, thenLPDEST. π
note that you can also specify the host to examine by setting printer to be printer@hostname. this may be more convenient than setting RLPR_PRINTHOST, but heads up β it will confuse the traditional BSD print commands. so, y'know, choose wisely bestie π
RLPR_PROXYHOSTβ specifies a proxy host to use, if necessary.
π FILES π
~/.rlprrc Personal printer/host database
/etc/hosts.lpd Host-based security on printhost
/etc/hosts.equiv Host-based security on printhost
/etc/passwd Personal identification
/etc/rlprrc System-wide printer/host database
β SEE ALSO β
rlpr(1), rlprm(1), rlprd(8), rlprrc(5)
π AUTHOR π
meem <meem@gnu.org> β periodt π
π BUGS / LIMITATIONS π
due to the dynamic nature of print queues, it is possible that the actual state of the queue may have changed between the time the snapshot was generated and the output was produced. so like... the queue is a moving target, bestie. it's not a bug so much as it is the universe being chaotic π
and that's the whole page, no notes π go peek at some queues.
this was rlpr version 2.04, dated 1999/10/28 β a whole vintage moment, and it still ate β¨
π¦ where this page comes from
- debian bookworm: rlpr 2.05-5+b2
- debian trixie: rlpr 2.06-2 Β· GPL-1.0-or-later
- ubuntu jammy: rlpr 2.05-5
- ubuntu noble: rlpr 2.06-2build1 Β· GPL-1.0-or-later
- ubuntu questing: rlpr 2.06-3
- ubuntu resolute: rlpr 2.06-3build1 Β· GPL-1.0-or-later
- ubuntu stonking: rlpr 2.06-3build1 Β· GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms