Raspberry Pi

How to find the hardware information of the Raspberry Pi

The Raspberry Pi is a small size computer board that implies it has all the hardware specifications which a normal PC and laptop have. The Raspberry Pi device contains the RAM, a CPU, and other peripheral devices of the computer like storage media and USB which can be connected to the Raspberry Pi board. In this write-up, we will discover different commands to find out the details of the hardware specifications of a Raspberry Pi board.

How to find out the details about the model of the Raspberry Pi board

We know that there are different models of the Raspberry Pi boards that have been launched in the market, now, to know which model of the Raspberry Pi board we are using, we can simply run the command in the terminal of a Raspberry Pi:

$ cat /sys/firmware/devicetree/base/model

In the above output, we can see that we are using the Raspberry Pi 4 Model B. Similarly, this command displays the models of other Raspberry Pi boards.

How to find out the information about the CPU on the Raspberry Pi board

To find out the information about the processor of the Raspberry Pi, there are different commands like if we want to know about the processor information, we will run the command:

$ cat /proc/cpuinfo

The information of all four CPU cores of the Raspberry Pi board has been displayed with the details of the hardware, its serial number, model, and the specific information of each processor. To find out the memory information, we will simply run the command:

$ cat /proc/meminfo

The above output displayed the information of total memory, free memory, and used memory by different systems of the Raspberry Pi. Now to find the information, particularly about the partitions of the Raspberry Pi board, we will use the command:

$ cat /proc/partitions

The size and number of the partitions of the Raspberry Pi board have been displayed in the above output, now to know the version of the processor of the Raspberry Pi board, we will run the command:

$ cat /proc/version

How to find out the temperature and voltage of the Raspberry Pi board

We can use the “vcgencmd” command to find out the current temperature, voltage, and the frequency of the CPU of the Raspberry Pi board and if we want to find out the temperature of the Raspberry Pi board, use the command:

$ vcgencmd measure_temp

To find out the voltage used by the Raspberry Pi board, execute the command:

$ vcgencmd measure_volts

The frequency of the CPU of the Raspberry Pi board can also be found by using the command:

$ vcgencmd masure_clock arm

To know the memory of the CPU(arm) and the GPU of the Raspberry Pi board, run the command:

$ vcgencmd get_mem arm && vcgencmd get_mem gpu

How to find out the load on the CPU of the Raspberry Pi board

We can find out the load on the CPU of the Raspberry Pi board, by using the command:

$ top d1

The above output is displaying the load on the CPU which users or files are using along with memory usage of the RAM.

How to find out the information about the connected USB on Raspberry Pi board

We know the Raspberry Pi model supports the USB devices, if we talk about the Raspberry Pi 4, it has four USB ports (two 3.0 and two 2.0 ports). In order to find out the information about the connected USB devices with the Raspberry Pi, run the command:

$ lsusb

How to find out the RAM on the Raspberry Pi board

If we want to know about the memory information of the RAM embedded on the Raspberry Pi board, simply run the command:

$ free -h

In the above output, the total RAM size, available memory and used memory has been displayed, similarly there is another command to check the free space of the RAM:

$ sudo df -h

Conclusion

The hardware of the Raspberry Pi contains a processor, RAM, and some other connected devices with the Raspberry Pi. It is not difficult to find out the information of the hardware devices connected with the Raspberry Pi. In this write-up, we have discussed different commands used to find out the information about the hardware including processor, RAM, and other connected USB devices with the Raspberry Pi board.

About the author

Hammad Zahid

I'm an Engineering graduate and my passion for IT has brought me to Linux. Now here I'm learning and sharing my knowledge with the world.