Barkings! | The SmallDog Apple Blog

A blog about our business, our industry, and our lives. You'll find posts from everyone at Small Dog and if the dogs could blog, they'd be here too!


Terminal Tidbits

Disk Usage Command

There might be a time when you need to know how much space is available on your hard drive and you need to do it without a GUI. When trying to do diagnostics to find issues, it’s good to know if your hard drive is simply at capacity. Hard drives filled to their limits can display some scary signs, making one think that they have serious issues. When your drive is just stuffed more then your family’s thanksgiving turkey you can run into some pretty troubling and difficult issues.

By opening Terminal and going into the Command line you can find out quickly what youR disk space is looking like. Within terminal enter the command, that is simply “df”.

Once you run “df” you are going to get a weird confusing result. There will be many blocks, so to help your sanity us the -h (human readable) flag so that the overall syntax is “df -h”. This will give the result of used space and available space in gigabytes instead of blocks.

Previous Post:
Next Post: