SyntaxFix
Write A Post
Hire A Developer
Questions
A simple solution to the answer:
parted /dev/sda
Display the help on unit. Then toggle it to the units you want.
To show free space on the device, use:
print free