#!/bin/bash while true; do clear #echo "Update on: $(date)" echo "Process with highest CPU usage:" ps -eo %cpu,pid,command --sort=-%cpu | head -n 2 sleep 1 done