I am currently running the following commands to stress test my CPU:
md5sum /dev/zero
Then I kill the process after 30 seconds.
pkill md5sum
I am looking to run a similar command but where it lets me stress the CPU by a certain percentage. I cannot use libraries like stress-ng, it has to be be able to run with basic linux distro like ubuntu. I also can't run a program as such, I have to be able to run it from the command line itself. Any suggestions or help is greatly appreciated.