commands.sh

ccache

all

C/C++ compiler cache. Note: Packages usually provide symlinks for compilers in `/usr/lib/ccache/bin`. Prepend this directory to `$PATH` to automatically use `ccache` for them.

More info →

Options (3)

-s, --show-statsboolean

Show current cache statistics

Example: ccache {{[-s|--show-stats]}}
-C, --clearboolean

Clear all cache

Example: ccache {{[-C|--clear]}}
-z, --zero-statsboolean

Reset statistics (but not cache itself)

Example: ccache {{[-z|--zero-stats]}}

Examples (4)

Show current cache statistics

ccache [-s|--show-stats]

Clear all cache

ccache [-C|--clear]

Reset statistics (but not cache itself)

ccache [-z|--zero-stats]

Compile C code and cache compiled output (to use `ccache` on all `gcc` invocations, see the note above)

ccache gcc path/to/file.c
made by @shridhargupta | data from tldr-pages