dotfiles/bin/dot-bin/cpu_usage.sh

3 lines
104 B
Bash
Executable File

#!/usr/bin/env bash
mpstat 1 1 | grep Average: | awk '{ printf "100 - %s\n", $12}' | sed 's/,/./g' | bc