Linux Check Disk Space Command To View System Disk Usage

Originally published at:

I recently switched from a Windows server to a Linux server operating system and need Linux Check Disk Space Command. I am using Ubuntu LTS 16.04 and CentOS 7.x server. How do I find out disk space utilization information using command line option?

I created a storage_monitor script based on the code and suggestions for improvement to it posted at

See my version at
Hope it helps someone like the original conversation helped me.

Linux sysadmin blog - Linux/Unix Howtos and Tutorials - Linux bash shell scripting wiki