骞没蕴 发表于 2018-8-22 12:34:22

shell脚本1

  一个简单的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-*

页: [1]
查看完整版本: shell脚本1