[plug] partition sizes

Steve Boak sboak at westnet.com.au
Sat Feb 23 13:55:24 WST 2008


On Sat, 23 Feb 2008 12:20:31 pm Richard Yellin wrote:
> I've forgotten how to do this:
> I want to get the size in MB or GB of each partition and, if possible, the
> total size of my operating system (yes RH9) so that I can estimate the
> size of a flash drive to use to backup.
> Backup everything  (\) once a month and increments daily for a week.
> (I was thinking of a flash drive of 8GB costing $59-69 - my price "range"!)
> I tried:
> .# /sbin/fdisk -l /dev/hda
[...]
>
> Can someone help with the correct commands?
> Thanks

Try 'du -h --max-depth=1 /'as root (it will work as a normal user, but you'll 
get lots of 'permission denied' complaints).

You can also try 'df -h' for the used and free space on all your partitions.

'man df` and 'man du' for the details...
Steve




More information about the plug mailing list