How to check the remaining disk space in a directory in Linux?
You can use the following command to check the remaining free space of directories in a Linux system:
- “Dataframe”
df -h /path/to/directory
The parameter -h is used to display the results in a human-readable format for the directory path /path/to/directory that needs to be viewed.
- you
du -sh /path/to/directory
The directory path to be viewed is /path/to/directory. The -s option is used to display only the total size, while the -h option is used to display the results in a human-readable format.
The output of these two commands will display the total size of the directory and the amount of available space remaining.