Raspberry PI Utilities
Raspberry PI OS contains several specific utilities such as
vcgencmd that are also available in Ubuntu 20.04 through the package
vcgencmd tool is used to output information from the VideoCore GPU on the Raspberry Pi.
A full description of the available commands and information extracted can be found here.
Returns the throttled state of the system. The output of the command is a bit pattern. It can be decoded using this script
Get Raspberry Pi GPU temperature in ºC.
vcgencmd get_mem arm/gpu
Get RAM memmory assigned to CPU/GPU