TIL about /dev/full

https://en.wikipedia.org/wiki//dev/full

No, that's not a typo.

157 points · 16 comments · view on lemmy.world

16 Comments

SaltyIceteaMaker@lemmy.ml · 32 pts · 3y (3 replies)

My knowledge about useful/funny /dev files grows by the day...

I now know of: random & urandom, null, zero and now full...

Bouta make an infinity gauntlet meme of them

lambdabeta@lemmy.ca · 28 pts · 3y (1 reply)

Wait until you learn about the shell specific /dev "files" like /dev/udp and /dev/tcp (which can send/recv IP traffic as if from a file)!

SaltyIceteaMaker@lemmy.ml · 6 pts · 3y

I am deeply intrigued

iuseit@iusearchlinux.fyi · 3 pts · 3y

DO IT, DO IT

bionicjoey@lemmy.ca · 29 pts · 3y (3 replies)

Can I get /dev/full as a service? I'm already paying a premium subscription for /dev/null as a service

DeathByDenim@lemmy.ml · 5 pts · 3y (1 reply)

The shell script available for download in the Code section is just pure evil!

marswarrior@lemmy.world · 6 pts · 3y

The whole website is hilarious. That code finds a random file and deletes it with sudo. I'm gonna run it on a VM :)

sudo rm -rf "$(sudo find / -type f -print0 | shuf -n1 -z)"

edit: nothing bad happened. VM still works fine. gonna run it a few dozen times more and see. or put in a while loop, or a cron job every 5 seconds. lol. I wonder how long it will take for it to delete something important.

demonsword@lemmy.world · 1 pts · 3y

I had a good laugh, thanks for sharing :)

PlexSheep@feddit.de · 10 pts · 3y

I learned something new. Thanks.

CaptainTightpants@startrek.website · 9 pts · 3y

Maybe I can finally get my pull merged for /dev/grohl which just outputs random Foo Fighters lyrics.

itboss@lemmy.world · 5 pts · 3y (1 reply)

So do you change your scripts to write to that to test what happens if a write didn't occur?

exu@feditown.com · 1 pts · 3y

Yeah, could be used for that. Might not make too much sense in scripts, but definitely a good test for more complex programs that should handle the error instead of just stoppings

Arinshot@lemmy.world · 4 pts · 3y

I knew about /dev/null, but not /dev/full, that is good to know about thanks!

schmonie@lemmy.sdf.org · 1 pts · 3y (1 reply)

The bottom of that Wikipedia page has a reference to something else that sounded interesting called “/dev/mordor” in some Plan 9 OS fork called 9front. Sent me down a really interesting rabbit hole http://9front.org/

thedaemon@lemmy.sdf.org · 2 pts · 3y

9front is a great rabbit hole. Plus, Plan9's mascot is Glenda, the rabbit.

ozoned@beehaw.org · 1 pts · 3y

I NEVER knew this! That's awesome! Thank you! :-D