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

Posted: April 2, 2017. At: 11:55 PM. This was 8 months ago. Post ID: 3054
Page permalink: http://securitronlinux.com/debian-testing/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.

root@ip-172-31-20-16:/home/ubuntu# dmidecode | grep -m1 "Current Speed" | sed s"/Current Speed/Clock Speed/gi";
        Clock Speed: 2394 MHz

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

root@ip-172-31-20-16:/home/ubuntu# cat /proc/cpuinfo |grep -m1 "@"
model name      : Intel(R) Xeon(R) CPU E5-2676 v3 @ 2.40GHz

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

root@ip-172-31-20-16:/home/ubuntu# dmidecode | grep -m1 "Maximum Capacity" | sed s"/Maximum Capacity/Total RAM Capacity/gi";
        Total RAM Capacity: 1 GB

No comments have been made. Use this form to start the conversation :)

Leave a Reply