一个简单的shell脚本,用于报告系统中/boot目录所占用的空间的大小,并列出内核文件的属性信息

#!/bin/bash
#to show usage of /boot directory and mode of kernel file.
echo "useage of /boot: "
du -sh /boot
echo "the mode of kernel file: "
ls -lh /boot/vmlinuz-*