You can install stress in Ubuntu by running the following command:
Code: Select all
sudo apt install stressYou can start the stress test by running the command below where “cpu” refers to the number of threads used for performing the test. To stop the test anytime, close the terminal or press <CTRL + C> to make it stop.
Code: Select all
stress --cpu 2