In Linux, you can check the disk space usage using various commands. Here are a few commonly used commands:
Open a terminal and run the following command:
This will display the disk space usage in a human-readable format, showing the available, used, and total disk space for each mounted filesystem.
The du command allows you to check the disk space usage of specific directories or files. Open a terminal and run the following command:
du -sh <directory or file path>
Replace <directory or file path> with the path to the directory or file you want to check. The -s option displays the summarized total, and the -h option provides a human-readable format.
If you have the ncdu (NCurses Disk Usage) utility installed, you can use it to get a detailed disk usage summary. First, make sure ncdu is installed on your system. If not, you can install it using your package manager. Once installed, open a terminal and run the following command:
This will start ncdu in the current directory, and it will display a navigable interface showing disk usage for all directories and files.
These commands should help you check the disk space usage on your Linux system. Choose the one that suits your needs best.