Created
November 15, 2014 07:15
-
-
Save dasgoll/305748305a95f1991d6c to your computer and use it in GitHub Desktop.
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 characters
## to find free space | |
parted /dev/sdb print free | |
# to see free space in bytes | |
# parted /dev/sda unit B print free | grep 'Free Space' | tail -n1 | awk '{print $3}' | |
# parted /dev/sda unit TB print free | grep 'Free Space' | tail -n1 | awk '{print $3}' | |
# parted /dev/sda unit MB print free | grep 'Free Space' | tail -n1 | awk '{print $3}' | |
# parted /dev/sda unit '%' print free | grep 'Free Space' | tail -n1 | awk '{print $3}' | |
# in sectors | |
# parted /dev/sda unit s print free | grep 'Free Space' | tail -n1 | awk '{print $3}' | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment