"Command line" commands are very helpful. Is there a command to display the memory of each partition of my drives..?


2 Answers 2


You can use df like so:

df -h

which will show something like this:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda5        56G   47G  6.8G  88% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
udev            940M  4.0K  940M   1% /dev
tmpfs           192M  996K  191M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            957M  5.1M  952M   1% /run/shm
none            100M   44K  100M   1% /run/user
  • This method is commonly used to make sure there is enough disk space, as that is a common cause of MySQL errors: df -h df -i Jan 1, 2015 at 7:39
  • -h, --human-readable print sizes in powers of 1024 (e.g., 1023M)
    – Stanislav
    Feb 25, 2021 at 12:47

Use the df command:

df -h

to give you information about the various mounted filesystems on your computer, and their free and used space.

Not the answer you're looking for? Browse other questions tagged or ask your own question.