Skip to content

Instantly share code, notes, and snippets.

@avidmaulanas
Created May 16, 2016 07:56
Show Gist options
  • Save avidmaulanas/e91d1f8490112bf7f87f877b79915362 to your computer and use it in GitHub Desktop.
Save avidmaulanas/e91d1f8490112bf7f87f877b79915362 to your computer and use it in GitHub Desktop.

Revisions

  1. Avid Maulana Saputra created this gist May 16, 2016.
    11 changes: 11 additions & 0 deletions check_size
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    du -sh is a good place to start. The options are (from man du):

    -s, --summarize
    display only a total for each argument

    -h, --human-readable
    print sizes in human readable format (e.g., 1K 234M 2G)
    To check more than one directory and see the total, use du -sch:

    -c, --total
    produce a grand total