Note: You are currently viewing my old web site. There is a new version with most of this content at OJB.NZ.
The new site is being updated, uses modern techniques, has higher quality media, and has a mobile-friendly version.
This old site will stay on-line for a while, but maybe not indefinitely. Please update your bookmarks. Thanks.


[Index] [Menu] [Up] Title[Header]
Tips

(Up to OJB's Mac Tips List Page)


Show Free Space from Terminal

To show the free space on a disk from Terminal

Use this command:
df -h
In the "Mounted on" column look for the name of the disk.
Free space is shown in the "Avail" column.

To show just the available space for a specific disk:
df -h | grep DISKNAME | awk '{print $4}'
Substitute DISKNAME with the name of the disk.

Show a summary of disk usage:
du -sh
This shows free space as a number (eg 304G).


[Up]

[Contact][Server Blog][AntiMS Apple][Served on Mac]