How to display folder size from the terminal in Ubuntu?

    3 answers 3

    du -h -s /full/path/to/folder/

    Example output for a folder with subfolders:

    669M idea-IC-162.1812.17

    • 2
      In the current directory, you can simply du -hs . - velikodniy

    You can get the folder size using the du command.

    Team.

     du -h --max-depth=1 | grep папка 

    Conclusion.

     158M ./папка 

      Can be even simpler

       du -h <имя-директории>