How to check disk space on Unix servers

Originally published at:

I recently switched from a Windows server 2016 to a FreeBSD Unix server. I need to check disk space on Unix command line. How do I find out disk space utilization information using the Unix command-line option?

The command df -h will usually work. Disk space should be listed under /dev/sdax, where x is the partition.

The command line utility, ncdu, if installed, will also report disk space usage in a nice CLI interface: ncdu / will scan the whole filesystem and show you files that gobble up large amounts of disk space