Alias CPU
3. 1. 2020New one
ps -eo fname --sort pcpu | uniq | tail | tac
returns
Xorg
chrome
compton
chrome
geany
tac
tail
uniq
ps
gvfsd-tr
Or slightly more complicated (script)
#!/bin/bash
# cpu
ps -eo fname --sort pcpu | uniq | tail -n 130 | tac | grep -Ev "cat|tac|tail|uniq|ps|grep|head|awk|bash|zsh|cpu|urxvt|sh|watch|Xorg|jfs*|chrome-s|dunst|xfs*|tmux*|gvfs*|printVol" | awk '!seen[$0]++' | head
# grep holds shitlist
# awk removes duplicates without re-sorting
returns
chrome
geany
Xorg
jekyll
urxvt
Viber
kworker/
nacl_hel
chrome-s
jfsSync