PAC(8)
π PAC(8) β bestie's guide to printer/plotter accounting info
okay so. pac is the section 8 (system manager's manual) girlie you call when you need to know exactly how much paper everyone has been eating. no cap. π¨οΈβ¨
πΈ SYNOPSIS
pac [-cmrs] [-Pprinter] [-pprice] [user ...]
π¦ DESCRIPTION
so basically, pac reads the printer/plotter accounting files and tallies up how much paper each named user has burned through β pages in the normal case, or feet if it's a raster device β then prints out how much each person consumed in pages or feet and in dollars. it's giving β¨receiptsβ¨.
if you don't pass any user arguments, it prints the stats for every user who has used any paper. the whole roster, bestie. π
here are the options, and no we're not skipping a single one:
-Pprinterβ do the accounting for the printer named printer. normally it goes with the default printer (which is site dependent, iykyk) or whatever the environment variablePRINTERsays.-cβ sorts the output by cost. normally it's sorted alphabetically by name, but this is the main character switch. π-mβ tellspacto ignore the host name in the accounting file. this is for when one user is on multiple machines and wants all their printing charges grouped together. slay, one bill, one vibe.-ppriceβ use price as the cost in dollars instead of the default of0.02, or whatever price/etc/printcapsays. not us negotiating, just saying. π-rβ reverse the sorting order. flip it and reverse it. π-sβ accounting info gets summarized onto the summary accounting file. this summarization is genuinely necessary because on a busy system the accounting file can grow by several lines per day. like it will not stop. π
π OUTPUT FORMAT
pac formats the output into a simple table with four columns:
- the host name followed by the user's login name (column
"Login"). if the-moption was specified, the host name is omitted. bye host name π«Ά - the number of pages or feet printed (column
"pages/feet"). - the number of copies made (column
"runs"). - the total price for the user (column
"price"). πΈ
and if no user argument was given, pac will also print a summary line with the print totals. the grand finale. β
π FILES
/var/account/?acctβ raw accounting files/var/account/?_sumβ summary accounting files/etc/printcapβ printer capability database
π§ SEE ALSO
π HISTORY
the pac command appeared in 4.0BSD. it's been iconic since day one, fr fr.
π BUGS
the relationship between the computed price and reality is as yet unknown. and honestly? that's the most real thing in this whole manpage. π
okay that's the whole page bestie, no notes, go check your paper usage. πΈ
this cutie is from the Debian edition of the System Manager's Manual, dated May 31, 2007 β shoutout to the Debian girlies for keeping the receipts, mwah π
π¦ where this page comes from
- debian bookworm: lpr 1:2008.05.17.3+nmu1
- debian trixie: lpr 1:2008.05.17.3+nmu3.1 Β· BSD-3-Clause
- ubuntu jammy: lpr 1:2008.05.17.3+nmu1
- ubuntu noble: lpr 1:2008.05.17.3+nmu1
- ubuntu questing: lpr 1:2008.05.17.3+nmu3.1
- ubuntu resolute: lpr 1:2008.05.17.4 Β· BSD-3-Clause
- ubuntu stonking: lpr 1:2008.05.17.4 Β· BSD-3-Clause
- Copyright (c) 1983, 1991, 1993 The Regents of the University of California. All rights reserved
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms