The command df will show you information about attached stor
The command df will show you information about attached storage devices: hdds, ssds, optical drives, usb drives, etc. Insert a usb flash drive because we want the flash drive to appear in the list of partitions that df will report. Use df to obtain information all the storage devices in your computer in the following ways.
15. Use df to show this information: the source, the file system, the size, the amount of storage used, the amount of storage available. Show all numeric values in binary units of kiB = 1024 bytes.
16. Use df to show this information: the source, the file system, the size, the amount of storage used, the amount of storage available. Show all numeric values in metric units of kB = 1000 bytes.
17. Use df to show this information: the source, the file system, the size, the amount of storage used, the amount of storage available. Show all numeric values in binary units of MiB = 10242 bytes.
18. Use df to show this information: the source, the file system, the size, the amount of storage used, the amount of storage available. Show all numeric values in metric units of MB = 10002 bytes.
Solution
df - command displays the file system name , size, amount of storage used and amount of storage available.
1) in Kib= 1024 bytes
df -k
2) in KB = 1000 bytes
df - kb
3) in MiB = 1024 *1024
df -m
4) in MB = 1000 * 1000
df -mb
