Skip to main content
Tweeted twitter.com/StackUnix/status/1103445299102658561
Became Hot Network Question
added 12 characters in body; edited title
Source Link
Olorin
  • 4.7k
  • 1
  • 15
  • 25

Why won't the strings command won't stop?

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?

  1. Is this normal behavior of strings? If so, why?
  2. Where is the data written after there's no more space left?

Why strings command won't stop?

The strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. or 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't a regular file and also strings output is redirected, however in both cases above, the cat 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?

Why won't the strings command stop?

The strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. Or 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 isn't a regular file and also strings's output is redirected, however in both cases above, the cat command reported the error when there was no more space.

# cat /dev/urandom > random.txt
cat: write error: No space left on device
  1. Is this normal behavior of strings? If so, why?
  2. Where is the data written after there's no more space left?
deleted 29 characters in body
Source Link
Rui F Ribeiro
  • 58k
  • 28
  • 156
  • 237

Linux noob here, theThe strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. or 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't a regular file and also strings output is redirected, however in both cases above, the cat 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?

Thank you.

Linux noob here, the strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. or 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't a regular file and also strings output is redirected, however in both cases above, the cat 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?

Thank you.

The strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. or 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't a regular file and also strings output is redirected, however in both cases above, the cat 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?

Source Link
user174174
  • 479
  • 1
  • 7
  • 15

Why strings command won't stop?

Linux noob here, the strings command behaves weirdly, apparently it doesn't stop writing to a file even if drive run out of space. or 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't a regular file and also strings output is redirected, however in both cases above, the cat 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?

Thank you.