Last active
December 25, 2018 11:04
-
-
Save semyont/e3a8431168be7cbd47cbb579a00aa492 to your computer and use it in GitHub Desktop.
Clean UBUNTU Space
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt-get clean | |
sudo apt-get autoremove --purge -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
mongo db clean up:
db.getCollectionNames().forEach(function(c) { db.getCollection(c).deleteMany({});});
db.runCommand({repairDatabase:1})