DWQA QuestionsCategory: ServerHow to get the disk size occupied by folders in Linux
realhu asked 1 month ago

LS – La can get all the files and occupied space of the current directory
DF can use disk space
But how to check the disk space occupied by all files in a folder?

2 Answers
Honwhy answered 1 month ago

du -hs directory

JefferyWang answered 1 month ago
du -h