Bash script to find big directories (>1GB).
-
realpath
- Ubuntu
apt-get install realpath
- macOS
brew install coreutils
- Ubuntu
wget https://raw.githubusercontent.com/miguelmota/bigdirs/master/bigdirs.sh
chmod +x bigdirs.sh
sudo mv bigdirs.sh /usr/local/bin/bigdirs
$ bigdirs [flags] {path}
Standard example
$ bigdirs ~/
Verbose example
$ bigdirs -v ~/
Verbose and exhaustive example (shows all big directories recursively)
$ bigdirs -v -e ~/
-
Q: I'm getting a
Permission denied
error!- A: Try running as root user with
sudo
to scan permission restricted directories.
- A: Try running as root user with
MIT