ubuntu ec2 kernel purge.sh - SaltwaterC/sysadmin-tools GitHub Wiki
Usage mode
Place the script to your server machine. Make it executable and run.
Dependencies
- Ubuntu on EC2
- bash
- apt
- coreutils
Notes
This script purges all the linux-image-virtual images except the last one. It purges all the linux-image-ec2 kernels that are not in use.