Site TIPS PAGE🔎   UP ONE LEVEL
 OJB's Web Site. V 2.1.tip tips mac owen2 
Tip

Up to OJB's Mac Tips List

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).



My latest blog post: Sheeple: Are they succumbing to fake news, misinformation, and propaganda. (posted 2025-09-24).
Warning: mysqli_connect(): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51

Warning: mysqli_connect(): Error while reading greeting packet. PID=92157 in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51

Warning: mysqli_connect(): (HY000/2006): MySQL server has gone away in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 51

Warning: mysqli_error() expects parameter 1 to be mysqli, boolean given in /Library/WebServer/Documents/Owen2/Inc/Footer.m.inc.php on line 52
Could not connect to MySQL: