Analyse recursively given directory and print out files a least 1GiB of size. The idea here is to find out which files starve your data storage. The goal was to reproduce in C my golang based CLI golarge.
Build optimized binary:
make prodBuild unoptimized binary with debug symbols:
makeBuild and run unoptimized binary with directory path argument:
make run DIR=/varBuild optimized static binary:
make staticClean up build files in project:
make cleanclarge [OPTIONS...] <PATH>
-s minimum target file size in bytes (default: 1073741824 bytes = 1GiB)
-o save results to file
-v print warning messages instead of logging to file
-h print this help and exit
Analyse "/var" and save results to file:
./clarge -o /varAnalyse "/usr" printing out warnings and result:
./clarge -v /usrShould compile and run on POSIX platforms, tested on GNU/Linux and Darwin (MacOS).
Author: William Valentin.
Use of pieces of code by Alexey Kutepov.