Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

In windows, the "My Computer" view shows how much disk space each partition/volume has.

How do I get this information in linux? (linux mint)

share|improve this question

6 Answers 6

up vote 2 down vote accepted

At the bottom of every tab/window in nautilus it will display how much free space is on the drive you are currently browsing if you have no folders/files selected.

share|improve this answer
    
nice, didn't realize it! –  hasen Jul 22 '09 at 18:20

The command-line tool to use is df.

In pretty form, df -h to get the results in human-friendly form.

share|improve this answer
4  
I'd suggest df -alh. This shows even hidden mounted file systems, but only local ones (no NFS or SMB drives). –  Jack M. Jul 22 '09 at 18:45
    
Whoa whoa whoa. You must mean df --si. –  andrew.n Jul 23 '09 at 2:19

Use the df command in a terminal window. I like to use the -k option to get the size in KBytes.

share|improve this answer

If I'm remembering correctly, Mint is a slightly re-tooled version of Ubuntu. If this doesn't work, you may need to check the repos for Disk Space Analyzer.

You should be able to go to Application > Accessories > Disk Space Analyzer

share|improve this answer

To see the size of and disk-space used of partitions...

for a pretty, graphical view you can use gparted. If it is installed it will be under:
System -> Administration -> Partition Editor

if it's not installed you can remedy that by using synaptic (I assume mint has that or a similar app since it's based on Ubuntu) or just typing the following command into a terminal:

sudo apt-get install gparted
share|improve this answer

This is a reminder on the usage of sort with df:

df -alhk | sort -nk2  # list disk usage and sort by used blocks
df -alhT | sort -hk3  # show and sort by human-readable usage
df --si | sort -hk3   # (this one doesn't show the empty file systems)
df --si | sort -nk5   # sort by percentage full

Only file systems starting with '/dev' are disk partitions:

df -h | grep ^/dev

show partition type too, and hide some non-disk filesystems:

df -h -T
df -h --output=source,fstype,size,used,avail,pcent,target -x tmpfs -x devtmpfs

a better view:

pydf

list storage blocks:

lsblk

for block device attributes:

blkid

more time consuming but useful tools for examining disk usage:

du
du | xdu
ncdu
xdiskusage

Summarized from "9 commands to check hard disk partitions and disk space on Linux"

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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