36

This question already has an answer here:

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

marked as duplicate by kiri, karel, Mitch, Eric Carvalho, Eliah Kagan Jan 6 '14 at 10:38

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

71

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 – Armin Nehzat Jan 1 '15 at 7:39
11

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.