Find out which program folders take up the most space.
cargo install biggestcargo install --git https://github.com/winkt0/biggestgit clone https://github.com/winkt0/biggest
cd biggest
cargo install --path .biggestreturns a list of the 10 biggest program folders along with their sizes found recursively from within the current directory. If you wish to specify the number of results, you can do so using the optional argument --limit:
biggest --limit 20returns a list of the 20 biggest program folders along with their sizes found recursively from within the current directory. If you don't want to search in the current directory, you can also specify the path within which to search:
biggest --path "/home"finds the 10 biggest program folders contained within /home. Both arguments can also be combined:
biggest --path "/home" --limit 3finds the 3 biggest program folders within /home.
Output obtained by running biggest --help:
Find out which program folders take up the most space.
Usage: biggest [OPTIONS]
Options:
--limit <LIMIT> Only capture the biggest <LIMIT> folders [default: 10]
--path <PATH> Restrict search to folders within <PATH> [default: ./]
-h, --help Print help
-V, --version Print versionSince not all program folders are tracked by package managers (e.g. folders obtained using git clone), this program traverses all folders within your current directory and attempts to find those that are probably folders containing a program (or some sort of functional unit) by using the following heuristic:
- Program folders typically contain folders named "SRC", "BIN", "LOGS", ".GIT"
- Program folders typically contain files named "README", "LICENSE", "LOGS", "VERSION", "LAUNCHER", "SETTINGS", plus some file ending or other slight variation
These lists are of course not exhaustive, but have proven sufficient for my use cases.