Löschen alter Linux-Kernel (Debian-basierte Systeme)

# 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 oder ab Ubuntu 20.04 # dpkg -l ‹linux-*› | sed ‹/^ii/!d;/’»$(uname -r...