mirror of https://github.com/fengyuhetao/shell.git
5 lines
122 B
Bash
5 lines
122 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
#查看内存使用百分比
|
||
|
free | sed -n '2p' | gawk 'x = int(( $3 / $2 ) * 100) {print x}' | sed 's/$/%/'
|