Created
July 16, 2019 14:37
-
-
Save vladpurga/2ce4106f465e6e94407ee604d2c372cc to your computer and use it in GitHub Desktop.
Revisions
-
vladpurga created this gist
Jul 16, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1 @@ ssh -t host "sudo tune2fs -l /dev/sdb1 | grep -i 'block count' | cut -d':' -f2 | tr -d ' ' | awk 'BEGIN {FS=\"\n\"; RS=\"\"} {print \"/dev/sdb1 space reserved: \"\$2/\$1*100\"%\"}'"