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]

Insert query failed: INSERT INTO log VALUES (NULL,1,'2025-12-23','140822','TipPage.html%3FCode=230','XuMacTips','216.73.216.208','Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@a','');.