A cleanup script to clear caches and logs in Fedora (Tested in Fedora 41)
This script cleans the following:
- Thumbnails cache ($HOME/.cache/thumbnails/x-large)
- Microsoft Edge cache ($HOME/.cache/microsoft-edge/Default/Cache/Cache_Data and $HOME/.cache/microsoft-edge/Default/Code Cache/js)
- Firefox cache ($HOME/.cache/mozilla/firefox/*/cache2/entries)
- DNF5 cache (/var/cache/libdnf5)
- Coredumps (/var/lib/systemd/coredump)
- Journal logs (/var/log/journal)
- Old Nvidia nsight-compute folders (/opt/Nvidia/nsight-compute/xxxx.x.x)
- Old Nvidia nsight-systems folders (/opt/Nvidia/nsight-systems/xxxx.x.x)
- Old Nvidia CUDA folders (/usr/local/cuda-xx.x)
Notes:
- Needs to be run as sudo to delete files in /var, /opt, and /usr
- Logs are stored in ~/clean.log