Linux

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[...]


Get rid of SWAP in Linux

If for whatever reason you wish not to use your Linux SWAP anymore, you can use the swapoff command. Do a swapon -s to see to which partition SWAP belongs to then a free -mt to check available memory. If you still want t[...]