1 du [-ahskm] file or directory name
Parameter explanation
-a : List the capacity of all files and directories, because only the capacity of the directory is counted by default
-h : display in human-readable capacity format (G/M/K), automatically select display unit size
-s : List the total, not the capacity of each individual directory
-k : display in KB
-m : display in MB
Common Command Reference
View the current directory size
[plain]
du -sh ./
2 df view file system
3 fdisk