I use stress for this kind of thing, you can tell it how many cores to max out.. it allows for stressing memory and disk as well.
Example to stress 2 cores for 60 seconds
stress --cpu 2 --timeout 60
More Related Contents:
- How to get overall CPU usage (e.g. 57%) on Linux [closed]
- How to obtain the number of CPUs/cores in Linux from the command line?
- create a file with prefix =file1 followed by the random number
- Why to code a script which will check if some package is installed in linux and if not then install it?
- How to permanently set $PATH on Linux/Unix [closed]
- How do I use sudo to redirect output to a location I don’t have permission to write to? [closed]
- Read values into a shell variable from a pipe
- Aborting a shell script if any command returns a non-zero value
- Bash ignoring error for a particular command
- Fastest way to find lines of a file from another larger file in Bash
- How to replace spaces in file names using a bash script
- Use sudo with password as parameter [closed]
- Shell script: Run function from script over ssh
- How can I quickly sum all numbers in a file?
- Bash script process substitution Syntax error: “(” unexpected
- What is the difference between using `sh` and `source`?
- Automating telnet session using bash scripts
- Run a shell command when a file is added
- How do I syntax check a Bash script without running it?
- Pass a password to ssh in pure bash
- Get last dirname/filename in a file path argument in Bash
- Bash script execution with and without shebang in Linux and BSD
- Exit code of variable assignment to command substitution in Bash
- How do I get cURL to not show the progress bar?
- Using `date` command to get previous, current and next month
- Linux: remove file extensions for multiple files
- Run script with rc.local: script works, but not at boot
- Maximum number of Bash arguments != max num cp arguments?
- Write a bash shell script that consumes a constant amount of RAM for a user defined time [closed]
- Using “$RANDOM” to generate a random string in Bash