Posted: . At: 11:55 PM. This was 7 years ago. Post ID: 3054
Page permalink. WordPress uses cookies, or tiny pieces of information stored on your computer, to verify who you are. There are cookies for logged in users and for commenters.
These cookies expire two weeks after they are set.


Getting the clock speed of your machine using the dmidecode command.


Getting the clock speed of your machine using the dmidecode command for Linux

This command-line example shows that we are using the dmidecode command to get the current clock speed for our machine. This also shows some creative use of the sed command to parse the output and change the “Current Speed” text string to “Clock Speed” just for fun.

jason@Yog-Sothoth:~$ sudo dmidecode | grep -m1 "Current Speed" | sed s"/Current Speed/Clock Speed/gi";
	Clock Speed: 3400 MHz

This is another way to retrieve this information, using cat to read the /proc/cpuinfo file.

jason@Yog-Sothoth:~$ grep -m1 "@" /proc/cpuinfo 
model name	: Intel(R) Core(TM) i5-4670K CPU @ 3.40GHzGHz

This command will show the maximum amount of Random Access Memory supported by your computers motherboard.

jason@Yog-Sothoth:~$ sudo dmidecode | grep -m1 "Maximum Capacity" | sed s"/Maximum Capacity/Total RAM Capacity/gi"
	Total RAM Capacity: 32 GB

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.