how to check hard drive space on Ubuntu Server 18.04 code example Example: check ubuntu disk space # shows total, available, and used. df / -h