Last active
January 9, 2019 11:29
-
-
Save sahilbathla/6891a15e6b026afee365b399c7ba1114 to your computer and use it in GitHub Desktop.
Free up space from Ubuntu (/dev/sda1) : Temp fixes (No space left on device)
This file contains 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
# Basic cleaning you can do safely | |
sudo -i | |
sudo dpkg --configure -a | |
apt-get autoremove --purge | |
apt-get autoclean | |
apt-get clean | |
rm -rf /var/cache/apt/archives/* | |
find /var/log -name '*.gz' -delete | |
# To check up free up space | |
df -h | |
# For ROR apps | |
bundle clean --force # clear unused bundles | |
# Make sure you check you app specific files i.e. logs, tmp files, images etc |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment