How to check the remaining capacity of a folder in Linux?

To check the remaining capacity of folders in a Linux system, you can use the following command:

df -h <文件夹路径>

The -h option is used to display the size information of a folder in a human-readable format.

For example, to view the remaining capacity of the current folder, you can run the following command:

df -h .

To check the remaining capacity of the /home directory, you can run the following command:

df -h /home

This will display information such as the total capacity, used capacity, and remaining capacity of the folder.

bannerAds