Linux command to check disk space

NCurses Disk Usage

ncdu (NCurses Disk Usage) is a curses-based version of the well-known ‘du’, and provides a fast way to see what directories are using your disk space. One can install with the following apt command/apt-get command:

sudo apt install ncdu

For RHEL/CentOS, first enable EPEL repo (see CentOS 8 turn on EPEL repo and RHEL 8 enable epel repo) and type the following yum command:

sudo yum install ncdu

Now just type:

ncdu
ncdu [dir]
ncdu /etc/

Linux command to check disk space

Source: https://www.cyberciti.biz/faq/check-free-space/

Author:

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.