Skip to content

Latest commit

 

History

History
7 lines (5 loc) · 237 Bytes

scripts.md

File metadata and controls

7 lines (5 loc) · 237 Bytes

Scripts

clean all the kernel except the current one

sudo apt-get remove --purge $(dpkg -l 'linux-image-*' | sed '/^ii/!d;/'"$(uname -r | sed "s/\(.*\)-\([^0-9]\+\)/\1/")"'/d;s/^[^ ]* [^ ]* \([^ ]*\).*/\1/;/[0-9]/!d')