I have the following loop to view changing dir size:
while true; do du -hcs . ; sleep 2 ; clear ; done
What I'm not happy with is the waiting time between the clear and the actual output of du. The result is more or less a blinking number.
How can I modify this to simply write the new number over the old, with no black screen in between?