How do you get the size of all files in a directory in Linux?

Julipkq

New member
How do you get the size of all files in a directory in Linux?
Answer
How to view the file size of a directory. To view the file size of a directory pass the -s option to the du command followed by the folder. This will print a grand total size for the folder to standard output.
 

Tìm kiếm

Back
Top