This blog post will explain how to display a CPUs model name and its speed. A cat and grep command combo is used on the file /proc/cpuinfo. The cat command is often used to output files onto the console. Combined with a pipe command, the grep command can search the output for a specific string. Grep can be used to search for the strings cpu MHz and model name. If there is a match, a result will be displayed.
The command below will display the central processing units speed in megahertz.
cat /proc/cpuinfo | grep "cpu MHz"
The command below will display the central processing units model name and base speed.
cat /proc/cpuinfo | grep "model name"
