Ubuntu删除多余旧内核
作者:互联网
https://www.jianshu.com/p/81fbfb9cde8f
sudo dpkg -l 'linux-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d' | xargs sudo apt-get -y purge
标签:www,81fbfb9cde8f,sudo,purge,Ubuntu,sed,多余,linux,内核 来源: https://www.cnblogs.com/sinferwu/p/14696319.html