After a longer runtime and a few updates, your small disc will be filled. Here a few steps how to clean the Linux server.


1. Check the disc space.


df -h


2. Delete old unused kernels


sudo apt-get autoremove --purge


3. Restart your server


sudo reboot


4. Search for updates and install updates


sudo apt-get update && apt-get upgrade


5. Reboot again


sudo reboot


6. Check again for old sources and remove them


sudo apt-get autoremove --purge