Site TIPS PAGE🔎 SEARCH  Ξ INDEX  MAIN MENU  UP ONE LEVEL
 OJB's Web Site. Version 2.1. Mac Tip.You are here: 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).




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

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

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

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