Skip to content

Instantly share code, notes, and snippets.

@Gummibeer
Created December 6, 2020 21:46
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save Gummibeer/55d3a7cc578029282aa348c0d7fdda06 to your computer and use it in GitHub Desktop.
Save Gummibeer/55d3a7cc578029282aa348c0d7fdda06 to your computer and use it in GitHub Desktop.
# clear system caches
sudo rm -rf /Library/Caches/*
sudo rm -rf /System/Library/Caches/*
sudo rm -rf ~/Library/Caches/*
# clear dns cache
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
# clear google chrome cache
rm -rf ~/Library/Application\ Support/Google/Chrome/Default/Application\ Cache/*
# clear google file stream cache
rm -rf ~/Library/Application\ Support/Google/DriveFS/[0-9a-zA-Z]*/content_cache
killall "Google Drive File Stream"
@Gummibeer
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment