Created
August 22, 2018 14:11
-
-
Save bastjan/4708608d7763f0041ffd061111f53e7c to your computer and use it in GitHub Desktop.
Purge old kernels on ubuntu
This file contains hidden or 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
#!/bin/bash | |
dpkg -l | grep '^rc' | awk '{print $2}' | grep 'linux-image' | xargs sudo apt purge -y |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment