How do I find the size of a directory wise in Linux?

Mỹ Duyên

New member
How do I find the size of a directory wise in Linux?
Answer
Find Largest Directories in Linux
  1. du command: Estimate file space usage.
  2. a : Displays all files and folders.
  3. sort command : Sort lines of text files.
  4. -n : Compare according to string numerical value.
  5. -r : Reverse the result of comparisons.
  6. head : Output the first part of files.
  7. -n : Print the first ‘n’ lines.
 

Tìm kiếm

Back
Top