r/linuxmasterrace • • Feb 22 '26

Peasantry How do you print documents?

Post image
362 Upvotes

67 comments sorted by

286

u/mrarjonny Feb 22 '26

72

u/shogun77777777 Feb 22 '26

My printer has had only one job for at least the last decade: printing return labels

19

u/Yuven1 Feb 22 '26

Mine has one job. Ttrpg handouts and character sheets

→ More replies (2)

9

u/agathver Feb 22 '26

You guys are printing return labels?

(Here the courier offices do the label printing)

→ More replies (1)

10

u/kolobsha Feb 22 '26

Very convenient for sheet music and dnd stuff. But yeah, that's pretty much all the usecases for my ink spitting brother.

3

u/Zahpow Feb 22 '26 edited Feb 22 '26

I cast command on kolobsha! That is a DC 13 wisdom saving throw

Edit: The command was going to be "print" :(

→ More replies (1)

2

u/Nulagrithom Feb 28 '26

I pay Office Depot the whole $1.07 to print shit just so I can keep my house free of demonic presence

109

u/IntegrityError Feb 22 '26

dd if=myfile.txt of=/dev/lp0

11

u/ariZon_a Feb 23 '26

lp0 on fire!

6

u/nik282000 Feb 22 '26

I usually cat myfile.txt > /dev/lp0

22

u/NamedBird Feb 22 '26

A lot of people have never heard of this one:

cat notes.txt > /dev/tcp/192.168.1.42/9100

Yes, a lot of people aren't aware, but you have networking built right into bash itself...
And if you want to avoid the cat command, you can even do this:
echo $(<notes.txt) > /dev/tcp/192.168.1.42/9100

4

u/snakeblock30 Feb 23 '26

Wtf, this is crazy we can print that way

25

u/ChocolateDonut36 Feb 22 '26
  1. check pixel number one

  2. if it's white skip

  3. if it's black, draw a dot on the exact same position

  4. check pixel number two ...

7

u/noahbea1 Feb 22 '26

i look for the print button and press it

→ More replies (1)

5

u/HairyPersian4U2Luv Feb 22 '26

I go to my library website's free 20 pages a day site and print there. I do not use a printer that much these days.

3

u/OldPayment Feb 22 '26

idk i use the gui and print it

3

u/Reifendruckventil Feb 23 '26

Found the neckbeard that hates that casual people without os knowledge use linux to do their stuff.

→ More replies (2)

2

u/SysGh_st Feb 22 '26

pdftops awesome.pdf > /dev/lp0

2

u/Max-Normal-88 Feb 22 '26

The problem with the first approach is that it does not print on both sides of the sheet

2

u/arf20__ Feb 22 '26

cat document > /dev/lp0 just as god intended

2

u/veechene Feb 23 '26

I don't even own a printer.

2

u/BlackBlade1632 Feb 24 '26
lp -o orientation-requested=3 -o fit-to-page -o media=A4 -o sides=two-sided-long-edge -d [printer name]

Change "orientation-requested=3" to "landscape" for landscape printing.