[NTLUG:Discuss] total drive size

terry linux at cowtown.net
Wed Mar 12 10:26:11 CST 2003


Michael Patrick wrote:

>On Wed, Mar 12, 2003 at 09:59:01AM -0600, Bishop, Cass wrote:
>  
>
>>Is there a command I can use to find out the total amount of disk space
>>available to Linux on a machine.  I have many machines and documentation is
>>sparse.  I would like to be able to run a command against each server and
>>find out total disk space (used and unused) on the server.
>>
>>Cass
>>
>>    
>>
>
>The "df" command is your friend :)
>
>michael at anya:~$ df -h
>Filesystem            Size  Used Avail Use% Mounted on
>/dev/hda1             182M  106M   67M  62% /
>/dev/hda3             5.5G  308M  4.9G   6% /usr
>/dev/hdb1             3.0G   75M  2.7G   3% /home
>//192.168.0.20/raid   107G   96G   11G  90% /opt 
>
>_______________________________________________
>https://ntlug.org/mailman/listinfo/discuss
>
>.
>
>  
>
Also/or:
less /proc/ide/ide0/hda/capacity
less /proc/ide/ide0/hdb/capacity
less /proc/ide/ide0/hdc/capacity
less /proc/ide/ide0/hdd/capacity

less /proc/ide/ide1/hda/capacity
less /proc/ide/ide1/hdb/capacity
less /proc/ide/ide1/hdc/capacity
less /proc/ide/ide1/hdd/capacity

-- 
Registered Linux User #188099
<><






More information about the Discuss mailing list