Check the Data Usage on Linux

Common scripts Check the global data usage: df -h Check the usage of the current directory: du -sh . List the usages of each subdirectory under the current directory: du -h --max-depth=1 Sort the usages of subdirectories: du -h --max-depth=1 | sort -hr Docker caches When you run docker build to build an image, it stores the cache into the disk, making the storage almost full.