[ELI5] /dev/null, /dev/random, /dev/urandom and /dev/zero

846 views

I’ve been reading about this files and also I have tried to inspect by myself about this files (file, ll, Stat and some other commands) but I just don’t understand them.

Can someone please explain me what are these files and how can I used them?

In: Technology

8 Answers

Anonymous 0 Comments

all the /dev files are interfaces to the kernel, and represent different functions. The interface is designed that they with like files: you can read and write to them, set permissions…
/dev/null is a simple interface where anything written to it is simply discarded. /dev/zero is an read-only interface when read returns only zeros.
the/dev/random and /dev/urandom return random numbers when read.

You are viewing 1 out of 8 answers, click here to view all answers.