BartlomiejSkwira
5/24/2013 - 1:53 PM

Free disk space in Ubuntu

Free disk space in Ubuntu

#check free disk space
df -h --total

sudo apt-get autoremove #orphaned packages (auto installed + no dependencies)
sudo apt-get clean #downloaded i installed
sudo apt-get autoclean

#list kernels
dpkg --get-selections | grep linux-image #lista kerneli
#remove kernel
sudo apt-get remove --purge linux-image-X.X.XX-XX-generican #all stored archives in your cache for packages that can not be downloaded anymore (thus packages that are no longer in the repository or that have a newer version in the repository).