Skip to main content
1 of 2
Hackaholic
  • 2.2k
  • 1
  • 12
  • 11

using awk:

ps aux --sort=-%cpu | awk 'NR==1{print $0}NR>1{if($3!=0.0) print $0}'

the above code will give all program with non-zero cpu usage.

if you want cpu usage greater than equal to 60 replace $3!=0.0 to $3>=60

Hackaholic
  • 2.2k
  • 1
  • 12
  • 11