Announcement

Collapse
No announcement yet.

How to get size of Linux folders and subfolders?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How to get size of Linux folders and subfolders?

    Im trying to get size of a folders and sub-folders in Linux file system by using ls la command.
    But it's the giving me the summarized size. Is there another command that would achieve this?

  • #2
    Refer the following command to get size of Linux folders and sub-folders.
    du -sh /*
    -s - to give only the total for each command line argument.
    -h - for human-readable format (optional).
    /* - simply expands to all directories (and files) in /.

    To check more than one directory and see the total, use:
    du -sch
    -c - Produce a grand total

    Comment

    Working...
    X