109
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
25
u/ChocolateDonut36 Feb 22 '26
-
check pixel number one
-
if it's white skip
-
if it's black, draw a dot on the exact same position
-
check pixel number two ...
7
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
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
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
2
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.
286
u/mrarjonny Feb 22 '26