Skip to content

Instantly share code, notes, and snippets.

@armand1m
Last active October 15, 2016 14:34
Show Gist options
  • Save armand1m/b0bd8064bc6ebbffa49670bda61f3f9e to your computer and use it in GitHub Desktop.
Save armand1m/b0bd8064bc6ebbffa49670bda61f3f9e to your computer and use it in GitHub Desktop.
terminal disk usage panel
# when there is no watch command
while [ 0 -lt 10 ]; do clear; df -h; sleep 1; done
# if watch is available
watch -n 1 df -h
@armand1m
Copy link
Author

i didn't know about the watch command back when I did it :p

watch -n 1 df -h

is a better version, I think so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment