1

I was just messing around and in the terminal of my Mac I did cat /dev/random just to watch the endless stream of random values. It has now brought up a print dialog and it wants to print half a page of text. The preview is too small for me to read. Should I print it? Has anyone ever heard of this? It printed out a bunch of random characters/non-characters. Why would this happen?

1 Answer 1

1

I was just messing around and in the terminal of my Mac I did cat /dev/random just to watch the endless stream of random values. It has now brought up a print dialog and it wants to print half a page of text. The preview is too small for me to read. Should I print it? Has anyone ever heard of this?

If you just emptied /dev/random into your Terminal window all that happened is it dumped piles of random data to your window. For the most part this will be innocuous gibberish, but in your case perhaps one part of the random sequence was a ctrl+P sequence that just triggered the print dialog box.

That is not unusual. That is par for the course with telling the system to dump random data. And the reality is the output of /dev/random is not intended to be viewed by a simple cat command but rather be used by a program or task that needs random data.

Which is all to say you didn’t break or damage anything, but because you outputted /dev/random in such a direct way it’s pretty much inevitable that at some point a random sequence of characters would pop up that would trigger something like this.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .