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

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