Du -sh *

Solved
1- Is it possible to get the total size of the directories in /var/www without going into their contents and displaying the sizes of subdirectories, files, and everything?

2- If I want to display only the directories with a size > 20K, is there a command that allows me to do that?

Thank you very much.

3 answers

  1. Hello,

    for question 2, I found the right answer:

    sudo du -hs /var/www/*/

    thanks everyone :)
    0
    1. ^^
      0