Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/env bash
- # Delete files matching a regex
- ls | grep "^regex$" | xargs -d"\n" rm
- # List largest folders
- du -hs * | sort -rh | head -5
- # Show inode usage
- df -i
- ## Current folder
- for i in `find . -type d `; do echo `ls -a $i | wc -l` $i; done | sort -n
- # Show disk usage of current folder
- du -h ./* | sort -h | tail -n 40
- # Show file system disk space usage
- df -h
Add Comment
Please, Sign In to add comment