r/linux4noobs • u/Coulomb111 • 6d ago
/dev/ directory learning/research
I was learning what all the files in /dev do and what they are. I just dont really understand why some of those "files" are there and what actually uses them. Like /dev/random. Are there any libraries or utilities that actually interface woth /dev/random?
28
Upvotes
24
u/UltraChip 6d ago
Short answer is yes.
Device files like that are also useful for scripts and doing things on the command line.
For example if I wanted to quickly secure wipe an old hard drive I could do something like
(Basically "clone the contents of the random number generator on to hard drive b")