Skip to content

will666/clarge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

clarge

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

Build optimized binary:

make prod

Build unoptimized binary with debug symbols:

make

Build and run unoptimized binary with directory path argument:

make run DIR=/var

Build optimized static binary:

make static

Clean up build files in project:

make clean

Usage

clarge [OPTIONS...] <PATH>

Flags:

-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

Examples:

Analyse "/var" and save results to file:

./clarge -o /var

Analyse "/usr" printing out warnings and result:

./clarge -v /usr

Limitations

Should compile and run on POSIX platforms, tested on GNU/Linux and Darwin (MacOS).

License

MIT

Credits

Author: William Valentin.

Use of pieces of code by Alexey Kutepov.

About

Analyse recursively given directory and print out files a least 1GiB of size

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors