Skip to content

Instantly share code, notes, and snippets.

@bgadrian
Last active December 21, 2017 15:20
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bgadrian/19b67d89ef3a07209d49b613ebbc49de to your computer and use it in GitHub Desktop.
Save bgadrian/19b67d89ef3a07209d49b613ebbc49de to your computer and use it in GitHub Desktop.
Cleanup Web Ubuntu machine
#docker
#docker rmi $(docker images -q -f dangling=true)\
docker system prune #it will remove any stopped containers, unused volumes and networks, and dangling images.
#Remove all images
#docker rmi $(docker images -q)
#Remove all containers
#docker rm $(docker ps -aq)
#node npm meteor
npm cache clean
rm -rf src/.meteor/local/bundler-cache/
echo "meteor reset (for meteor mongodb local purge)"
#ubuntu-debian
sudo apt-get autoclean
sudo apt-get clean
sudo apt-get autoremove --purge
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment