Tired of df? Feel like something new? Try di. It’s as simple as “emerge di” on gentoo, and is also availible as a package/source for debian, suse, bsd, mac osx.
Below is the output of both programs. I changed the default output of both utilities to use human readable display sizes.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/Gentoo-root
1.0G 430M 595M 42% /
udev 506M 280K 506M 1% /dev
/dev/hda1 96M 52M 45M 54% /boot
/dev/mapper/Gentoo-usr
5.3G 4.4G 929M 83% /usr
/dev/mapper/Gentoo-usr_portage
2.8G 1.8G 983M 65% /usr/portage
/dev/mapper/Gentoo-var
3.0G 1.6G 1.5G 51% /var
/dev/mapper/Gentoo-opt
700M 568M 133M 82% /opt
/dev/mapper/Gentoo-home
23G 21G 2.4G 90% /home
tmpfs 150M 48K 150M 1% /tmp
none 506M 0 506M 0% /dev/shm
svcdir 2.0M 368K 1.7M 18% /var/lib/init.d
$ di -d h
Filesystem Mount Size Used Avail %used fs Type
/dev/mapper/Gentoo / 1024.0M 429.1M 594.9M 42% reiserfs
/dev/hda1 /boot 95.9M 51.2M 44.7M 53% reiserfs
udev /dev 505.6M 280.0k 505.4M 0% tmpfs
/dev/mapper/Gentoo /home 23.0G 20.7G 2.3G 90% reiserfs
/dev/mapper/Gentoo /opt 700.0M 567.1M 132.9M 81% reiserfs
tmpfs /tmp 150.0M 48.0k 150.0M 0% tmpfs
/dev/mapper/Gentoo /usr 5.2G 4.3G 928.0M 83% reiserfs
/dev/mapper/Gentoo /usr/portage 2.7G 1.8G 982.3M 65% reiserfs
/dev/mapper/Gentoo /var 3.0G 1.5G 1.5G 50% reiserfs
svcdir /var/lib/init.d 2.0M 368.0k 1.6M 18% tmpfsAs you can see df takes up more lines, while di will just expand to use up the extra colums from my wide terminal, while keeping each mount point on a single line. For me at least df’s output is a pain on the eyes having to scan across a line, and then getting jumbled by numbers.
Related posts:
- Pocket PC Windows Tax I read something the other day about the "Windows Tax"...
- WTF crazy generic laptop. i've had my laptop for a couple years now, and...
- gentoo toolchain notes A few critical packages in gentoo were released from ~...
- article submission for GWN I had read the previous GWN, and the request for...
- ejabberd howto I installed ejabberd the other day. After a couple days...



