Skip to content

Instantly share code, notes, and snippets.

@SamRothCA
Last active January 23, 2021 19:36
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save SamRothCA/ebc9d9a2843c8f2feb68 to your computer and use it in GitHub Desktop.
Save SamRothCA/ebc9d9a2843c8f2feb68 to your computer and use it in GitHub Desktop.
Storage volume usage
df -Hl | {
read keys;
keys="${keys%% on}";
while read ${keys//%}; do
echo "`basename "$Mounted"` - $Used/$Size ($Capacity)";
done
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment