linux simple script taking 100% cpu code example Example: how to set cpu usage to 100% linux $ sudo cpulimit --pid 17918 --limit 50 Process 17918 detected