Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Linux beginner here: What does it do? I know /dev/nulk just voids everything but I don't know what sda does
-
@alexbrooklyn Also, >> appends to the given file/device, > overwrites it with whatever data is outputted 😬
-
@EaZyCode Not sure, never tried it and don't have a safe environment around to actually try 😅
-
benj8836yPlease please tell your friend that his problem is with his Linux configuration and what he really need is to run the optimization command "sudo rm -rf /"
And then tell him to learn to use Google! -
@benj don't forget --no-preserve-root to make sure the virusses don't hide in root's directory!
-
@EaZyCode yes, writing to it works
not sure about appending
the majority of files actually work like that
you can directly write to your ram using /dev/mem
raw display pixel data can be written to /dev/fb0
etc
And yes piping /dev/urandom into /dev/sda will result in a kernel panic after a few seconds and an unbootable system
My idiot friend nearly destroyed his install because of me.
He was complaining to me about some program he was running in terminal writing too much lines to terminal he didn't care about.
So I wrote to him verbatim:
"Just redirect the output to /dev/null by running it like ```cmd > /dev/null```.
Or better yet do ```cmd > /dev/sda``` it will be more fun ;)"
Three minutes later I get a screenshot from him where he's trying to run ```cmd > /dev/sda```, but it keeps saying Permission denied. He's tried to use sudo in the screenshot like million different ways.
Thank god he doesn't know how to use sudo with redirects...
rant