Tag Archives: memory

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 like this: %CPU CPU  NI S     TIME COMMAND 0.1   –   0 S 00:00:13 metacity 0.1   –   0 S 00:00:18 /usr/lib/thunderbird/thunderbird-bin 0.2   –  … Read More »

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 to give up your SWAP, try a swapoff /dev/hdxx where /dev/hdxx is… Read More »