Guest User

Untitled

a guest
Nov 19th, 2017
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.19 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. # Default path is root (/)
  4. path="/"
  5.  
  6. # if string is not null
  7. if [ -n "$1" ]; then
  8. path="$1"
  9. fi
  10.  
  11. echo "Scanning $path for disk usage"
  12. sudo du -h "$path" | sort -h -r | head -n 10
Add Comment
Please, Sign In to add comment