Tidying up your mac softwareupdate softwareupdate -i -a --force --agree-to-license sudo softwareupdate -i -a -R --force --agree-to-license homebrew brew upgrade --greedy --force brew cleanup rm -rf $(brew --cache) brew uninstall --zap {cask} brew leaves brew deps --tree --installed brew autoremove brew doctor npm npm i -g npm npm update -g npm cache clean --force pnpm pnpm add -g pnpm pnpm up --global --latest pnpm store prune rm -rf $(pnpm store path) yarn yarn global upgrade yarn cache clean fnm fnm install lts-latest asdf asdf plugin update --all ruby gem update --system gem update gem cleanup gem pristine --all python pip install -U `pip list --outdated | awk 'NR>2 {print $1}'` pip-review --local --interactive pip cache purge docker docker stop $(docker ps -a -q) docker system prune -a delete a file recursively find / -name '.DS_Store' -type f -delete disk usage sorted by size descending du -sh * | sort -hr du -hd {depth} * | sort -hr