Block vs character devce
Block | Character |
---|---|
uses buffers and caches to transfer large amounts of data |
a stream of data (no buffering) |
In ls show up as b | In ls show up as c |
Special character devices
- /dev/0 constant stream of
null characters(not
zeros)
- Used to zeroing out hard drive
- devnull only data goes in (bit bucket)
Geting random characters - /dev/random wont return information unless theres enough entropy - /dev/urandom always returns random
[!tip] U can get random numbers via $RANDOM