PAC(8)

πŸ“¦
version 2008.05.17.4 Β· 3 versions
, in debian bookworm, debian trixie, ubuntu jammy, ubuntu noble, ubuntu questing, ubuntu resolute, ubuntu stonking

πŸ’… 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 variable PRINTER says.
  • -c β€” sorts the output by cost. normally it's sorted alphabetically by name, but this is the main character switch. πŸ’…
  • -m β€” tells pac to 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 of 0.02, or whatever price /etc/printcap says. 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:

  1. the host name followed by the user's login name (column "Login"). if the -m option was specified, the host name is omitted. bye host name 🫢
  2. the number of pages or feet printed (column "pages/feet").
  3. the number of copies made (column "runs").
  4. 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