Linux

Limit the CPU usage of a certain application in Linux

You can do this by installing cpulimit. You can limit a certain running application either by name or by process ID: cpulimit -e firefox -l 30 This won’t let Firefox go beyond a 30% CPU usage limit.If you’d r[...]


List Linux processes by CPU or Memory usage

You can use a one-string command in Linux to nicely display in CLI the processes that consume your CPU. Use ps -e -o pcpu,cpu,nice,state,cputime,args --sort pcpu | sed ‘/^ 0.0 /d’ and you will get something l[...]