1751742 Members
5921 Online
108781 Solutions
New Discussion

bdfmegs for Linux ?

 
support_billa
Valued Contributor

bdfmegs for Linux ?

hello,

 

does a equivalent of "bdfmegs" (like dfmegs or bdfmegs) for LINUX exists ?

 

last version is :

 

bdfmegs ver 6.1 available

regards,

2 REPLIES 2
Matti_Kurkela
Honored Contributor

Re: bdfmegs for Linux ?

Most Linux distributions use GNU df command, which includes the -h option:

$ df -h
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root
                      9.9G  7.7G  1.8G  82% /
tmpfs                 2.0G   12K  2.0G   1% /lib/init/rw
udev                  1.9G  376K  1.9G   1% /dev
tmpfs                 2.0G  540K  2.0G   1% /dev/shm
/dev/mapper/vg00-home
                       99G   86G  7.5G  93% /home
/dev/sda1             228M   65M  151M  31% /boot

 If you want exactly one line per device, use -P to get POSIX output format, which should be parseable by scripts:

$ df -hP
Filesystem            Size  Used Avail Use% Mounted on
/dev/mapper/vg00-root  9.9G  7.7G  1.8G  82% /
tmpfs                 2.0G   12K  2.0G   1% /lib/init/rw
udev                  1.9G  376K  1.9G   1% /dev
tmpfs                 2.0G  540K  2.0G   1% /dev/shm
/dev/mapper/vg00-home   99G   86G  7.5G  93% /home
/dev/sda1             228M   65M  151M  31% /boot

 See "man df" on your system: different versions of GNU df may have different options available (newer versions tend to have more options than older ones).

MK
support_billa
Valued Contributor

Re: bdfmegs for Linux ?

hello,

 

maybe you know the "df" syntax for following issue :

 

does LINUX has the same output of "df" like HPUX :

 

HPUX:
df /filesystem
/                    (/dev/vg00/lvol3     ):  2255664 blocks     35485 i-nodes

LINUX:
df -P /filesystem
Filesystem               1024-blocks      Used Available Capacity Mounted on
/dev/mapper/vg00-lvol3  10321208   1626252   8170772          17% /

 

regards