At the moment, I am using Ubuntu. It has an amazing package which is stress to give some stress testing to your new machine. Like any other stress testing, idea here is to simply make sure that your machine is running at its full capacity and you are going to observe the temperature of CPU as well as the fan’s rpm.
sudo apt-get install stress -y
stress --cpu $(grep -c ^processor /proc/cpuinfo) --timeout 60
The grep -c ^processor /proc/cpuinfo will just tell you how many cpu cores are there. This will spawn that number of cpus.