![mac command line list disks mac command line list disks](https://www.lifewire.com/thmb/ncBjsbm1uIfWRsbAsbvFrua8x5c=/1280x853/filters:no_upscale():max_bytes(150000):strip_icc()/vol-c-command-windows-10-f2360a11df6047ab8eb5185a8d26f354-46cbfad59d8241368bfe2a3facd4938b.jpg)
It currently lists the different partitions (which is related to hard drives as a hard drive can be divided into several partitions) in your system. dev/loop5 89M 89M 0 100% /snap/core/5897Īs you can see, the first column is the current logic name (or the name you can find it within your system), the second column is how big is each of them, the third column is how much is currently used (in bytes), the fourth column is how much is currently available in each for usage (in bytes), the fifth column is how much is used (in %) and the sixth and last column is where is it physically mounted in your Linux system.įdisk is another common option among sysops. The most common way to use it is with the -h argument which means “human readable” (because we are not machines, right?): :~$ df -hįilesystem Size Used Avail Use% Mounted on It lists the actual “disk space usage” and it can give you information about what hard disks (or current disk space) is being used in the entire system. The df command in Linux is probably one of the most commonly used. Let’s see what commands you can use to show disk info in Linux. Please note that some of these commands are actually disk partitioning tools and listing disk partition is one of their features. Here are some different commands which can list the hard drives, keep in mind there are others but these are probably the most commonly used and easy to get the job done. Keep in mind a hard drive could be physically connected, virtually connected or even emulated (for example: when you use storage devices such as EMC, Sun or IBM). There are several ways to list all the hard drives present in a system through Linux command lines.