Skip to content

Instantly share code, notes, and snippets.

@billsinc
Last active December 4, 2019 15:06
Show Gist options
  • Select an option

  • Save billsinc/4665346 to your computer and use it in GitHub Desktop.

Select an option

Save billsinc/4665346 to your computer and use it in GitHub Desktop.

Revisions

  1. Bill Sinclair revised this gist Jan 29, 2013. 2 changed files with 3 additions and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -1 +1,2 @@
    # 10 Largest Files
    find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
    2 changes: 2 additions & 0 deletions gistfile2.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    # 10 Largest Directories
    find . -type d -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}
  2. Bill Sinclair created this gist Jan 29, 2013.
    1 change: 1 addition & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    find . -type f -print0 | xargs -0 du -s | sort -n | tail -10 | cut -f2 | xargs -I{} du -sh {}