运维网's Archiver
论坛
›
Shell/Powershell
› shell练习(1)--检测硬盘使用情况
nescafeboy1
发表于 2018-8-27 06:38:41
shell练习(1)--检测硬盘使用情况
#!/bin/bash
today=`date +%F`
today1=`date +%H:%M:%S`
echo "$today1">> ${today}.log
df >> ${today}.log
echo ".................................................." >> ${today}.log
页:
[1]
查看完整版本:
shell练习(1)--检测硬盘使用情况