#!/bin/bash export PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/root/bin echo "-------------------------------------------PCPU----------------------------------------------" ps -eo user,pid,pcpu,pmem,args --sort=-pcpu | head -n 11 echo "-------------------------------------------PMEM----------------------------------------------" ps -eo user,pid,pcpu,pmem,args --sort=-pmem | head -n 11