Exercise Your Idle System Doing Nothing
| Posted by watashii | Filed under Unix
Via Unix/Linux:
cat /dev/zero > /dev/null
or
cp /dev/zero /dev/null
Explaination:
/dev/null is basically a black hole (a special null file), anything written to it goes down the drain. Anything read from it will result in nothing returned. /dev/zero is basically the same as /dev/null when writing to it, however reading it will result in a continuous stream of zeros without EOF.
Tags: null, performance, unix, zero