The stringsstrings
command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. orOr perhaps I'm missing something?
I run the following:
# strings /dev/urandom > random.txt
this was keep running and didn't stop even after filling the disk (a regular usb flash).
then to be quicker I created a ramdisk and tried again the same command. it also didn't stop.
I understand that urandom is'turandom
isn't a regular file and also stringsstrings
's output is redirected, however in both cases above, the catcat
command reported the error when there was no more space.
# cat /dev/urandom > random.txt
cat: write error: No space left on device
q: Is this normal behavior of strings? if so, why?
q: where the data is written after no more space left?
- Is this normal behavior of strings? If so, why?
- Where is the data written after there's no more space left?