
Discuss 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).
| Site News (Mobile): OJB's web site, v 2.4 which has major changes, and possibly errors! Please report anything to ojb@mac.com. |
|