简单shell脚本1
来源:互联网 发布:vc新建c语言项目 编辑:程序博客网 时间:2024/05/22 12:53
-------------------------------------打印根分区的使用情况-----------------------------------------------#!/bin/sh
#####3测试磁盘的使用率
###
A=`df -h |awk '$6=="/"{print $5}' |cut -f1 -d"%"`
if [ $A -gt 75 ];then
echo "please clear your disk!"
else if [ $A -lt 10 ];then
echo "your disk has full space! very good !"
else
echo "normal"
fi
echo $A
fi
0 0
- 简单shell脚本1
- 简单的shell脚本
- shell脚本简单调试
- shell下简单脚本
- shell脚本简单示例
- shell 脚本简单语法
- shell 脚本简单总结
- 简单Shell脚本学习
- shell脚本简单实例
- 简单shell脚本实例
- shell脚本简单语法
- Shell脚本简单练习
- 简单的shell脚本
- 简单的shell脚本
- linux shell脚本简单示例
- 一个简单的shell脚本
- shell简单管理iptables脚本
- shell简单的交互式脚本
- halcon学习 tuple之算术运算1
- CentOS 安装 tomcat7
- iOS动画(1)
- Groovy调用示例
- 第三十五天 模拟音乐播放器MediaPlayer
- 简单shell脚本1
- ROMFS文件系统
- LYZ Timer 计时软件(推荐)
- 获取mysql cpu占比
- Qt信号与槽实现原理
- Check whether two strings are anagram of each other
- sphinx在linux系统的安装
- Eclipse中SVN的安装步骤(两种)和使用方法
- linux safe-rm