Limit the CPU usage of a process (Linux).

There have been times when I wished that I could limit the cpu usage of a process even though it might run slower , There is a simple way to do it on Linux .

Just type the following in terminal.

 cd /tmp
 wget ''
 tar -zxvf cpulimit-1.1.tar.gz
 cd cpulimit-1.1
 cp cpulimit /usr/local/sbin/
 rm -rf cpulimit*

If you are a debain/Ubuntu user you can also do the following in terminal.

$ sudo apt-get install cpulimit

After installation to limit the cpu usage of a process :

cpulimit -p  -l

Happy cpu reduction !!