Viewing Disk Usage
How much space is used for file storage? (FreeBSD 5.2)
Posted 09.11.2004 | Updated 23.05.2006 | Contributed by Andy Mallett


Under MS-DOS, the DIR command will indicate the amount of free disk space left. The Unix equivalent is the df command..

df -m

su-2.05b# df -m
Filesystem  1M-blocks  Used  Avail  Capacity  Mounted on
/dev/ad0s2a     31624   749  28345      3%     /
devfs               0     0      0    100%     /dev
su-2.05b#


Modifying the command with the -m switch will give a reading in megabytes..