bin bash rm -fv boot config System map vmlinuz old for in boot config

1
2
3
4
5
6
#!/bin/bash
rm -fv /boot/{config,System.map,vmlinuz}*.old
for i in /boot/{config,System.map,vmlinuz}* | grep -v $(uname -r)
do
rm -fv $i
done