mirror of
https://github.com/dunwu/linux-tutorial.git
synced 2024-04-15 19:55:24 +08:00
5 lines
99 B
Bash
5 lines
99 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
#查看磁盘实用百分比
|
||
|
df -h /dev/sda1 | sed -n '/% \//p' | gawk '{ print $5 }'
|