TECHIES WORLD

For Techs.... Techniques.... Technologies....

AWSBashLinux

Linux-aws-headers consuming more disk space in EC2 Ubuntu instance

In EC2 Ubuntu instance, we have noticed that the size of the folder "/usr/src/" increased a lot due to the linux-aws-headers inside it.

This happens because of the automatic updates. We can free up the disk by removing the unused kernel images and headers.

#apt-get autoremove

Please note that if the disk is 100% full this command will not work. In such situations we need to remove one or two older headers manually and try the above command.

That's all…