您的位置:首页 > 运维架构 > Shell

shell练习(1)--检测硬盘使用情况

2017-02-28 16:50 225 查看
写一个脚本,检测硬盘的使用情况:
#!/bin/bash

today=`date +%F`
today1=`date +%H:%M:%S`
echo "$today1">> ${today}.log
df >> ${today}.log
echo ".................................................." >> ${today}.log
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  shell 练习