Tak for de hurtige svar
![Smil :)](./images/smilies/ubuntu/icon_smile.png)
Kode: Vælg alt
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $(uname -r | sed -r 's/-[a-z]+//') | sed ':a;N;$!ba;s/\n/ /g')
Kode: Vælg alt
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $(uname -r | sed -r 's/-[a-z]+//') | sed ':a;N;$!ba;s/\n/ /g')
Kode: Vælg alt
ls -lh /boot
totalt 160M
-rw-r--r-- 1 root root 1,2M dec 16 00:27 abi-3.16.0-29-generic
-rw-r--r-- 1 root root 1,2M jan 13 00:06 abi-3.16.0-30-generic
-rw-r--r-- 1 root root 1,2M mar 10 19:17 abi-3.16.0-31-generic
-rw-r--r-- 1 root root 1,2M mar 12 14:19 abi-3.16.0-33-generic
-rw-r--r-- 1 root root 168K dec 16 00:27 config-3.16.0-29-generic
-rw-r--r-- 1 root root 168K jan 13 00:06 config-3.16.0-30-generic
-rw-r--r-- 1 root root 168K mar 10 19:17 config-3.16.0-31-generic
-rw-r--r-- 1 root root 168K mar 12 14:19 config-3.16.0-33-generic
drwxr-xr-x 3 root root 4,0K jan 1 1970 efi
drwxr-xr-x 5 root root 1,0K apr 7 10:29 grub
-rw-r--r-- 1 root root 21M jan 17 09:59 initrd.img-3.16.0-29-generic
-rw-r--r-- 1 root root 21M feb 1 12:46 initrd.img-3.16.0-30-generic
-rw-r--r-- 1 root root 21M apr 7 10:28 initrd.img-3.16.0-31-generic
-rw-r--r-- 1 root root 21M apr 7 10:29 initrd.img-3.16.0-33-generic
drwx------ 2 root root 12K sep 28 2014 lost+found
-rw-r--r-- 1 root root 173K mar 12 2014 memtest86+.bin
-rw-r--r-- 1 root root 174K mar 12 2014 memtest86+.elf
-rw-r--r-- 1 root root 175K mar 12 2014 memtest86+_multiboot.bin
-rw------- 1 root root 3,3M okt 28 15:25 System.map-3.13.0-39-generic
-rw------- 1 root root 3,4M nov 4 14:10 System.map-3.16.0-25-generic
-rw------- 1 root root 3,4M dec 12 19:38 System.map-3.16.0-28-generic
-rw------- 1 root root 3,4M dec 16 00:27 System.map-3.16.0-29-generic
-rw------- 1 root root 3,4M jan 13 00:06 System.map-3.16.0-30-generic
-rw------- 1 root root 3,4M mar 10 19:17 System.map-3.16.0-31-generic
-rw------- 1 root root 3,4M mar 12 14:19 System.map-3.16.0-33-generic
-rw------- 1 root root 6,2M dec 16 00:27 vmlinuz-3.16.0-29-generic
-rw------- 1 root root 6,2M jan 13 20:04 vmlinuz-3.16.0-29-generic.efi.signed
-rw------- 1 root root 6,2M jan 13 00:06 vmlinuz-3.16.0-30-generic
-rw------- 1 root root 6,2M feb 1 12:46 vmlinuz-3.16.0-30-generic.efi.signed
-rw------- 1 root root 6,2M mar 10 19:17 vmlinuz-3.16.0-31-generic
-rw------- 1 root root 6,2M apr 7 10:29 vmlinuz-3.16.0-31-generic.efi.signed
-rw------- 1 root root 6,2M mar 12 14:19 vmlinuz-3.16.0-33-generic
-rw------- 1 root root 6,2M apr 7 10:29 vmlinuz-3.16.0-33-generic.efi.signed
Maja skrev:Hvad gør???Kode: Vælg alt
sudo apt-get purge $(dpkg -l linux-{image,headers}-"[0-9]*" | awk '/ii/{print $2}' | grep -ve $(uname -r | sed -r 's/-[a-z]+//') | sed ':a;N;$!ba;s/\n/ /g')