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

iphone - Three second countdown in cocos2d -

hyperlink - how to do url routing in php -

c - Avoiding Extra Malloc in Linked List (node->next = NULL) -