Welcome to the Linux Foundation Forum!

see all folder with their size in /

Hi every one

I want to see all folder with their sizes in /

Please what is the commande for this.

Thank you

Comments

  • morksmorks Posts: 3
    Use:
    du -sh /* 2>/dev/null
    

    to get a list of all folders. Better you run this as root or use sudo.
  • sedorsedor Posts: 9
    Like morks wrote above, the du command can be used to find out how much space is being consumed by a particular directory and its subdirectories. To get the output in KB, use the -h option: du -h.
Sign In or Register to comment.