4 lines
103 B
Text
4 lines
103 B
Text
|
#!/bin/bash
|
||
|
usage=$(top -b -n1 | grep "Cpu(s)" | awk '{print $2 + $4}')
|
||
|
echo -e "CPU: [${usage%.*}%] "
|