bash - Slow finishing when cat a large file of null content -


the shell command:

 truncate -s 1000000000 largefile echo 'eof' >> largefile cat largefile 

why last command blocks several seconds after `eof' being printed?

cat doesn't block - busy reading , writing 1 billion zero bytes.


Comments

Popular posts from this blog

java.util.scanner - How to read and add only numbers to array from a text file -

rewrite - Trouble with Wordpress multiple custom querystrings -