You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

5 line
99 B

  1. #!/usr/bin/env bash
  2. echo -n "CPU: "
  3. top -bn1 | grep "Cpu(s)" | cut -c 10-13 | awk '{print $1"%"}'