Installation Method
`vcgencmd` is included by default in the Raspberry Pi OS, but may need to be installed separately on other operating systems like Ubuntu for Raspberry Pi. This command is part of the `libraspberrypi-bin` package.
Install Package
sudo apt-get update
sudo apt-get install libraspberrypi-bin
To use the `vcgencmd` command, you need to install the `libraspberrypi-bin` package.
Caution
`vcgencmd` is a Raspberry Pi-specific tool and will not work on other Linux systems.
Main Options
Below are the most useful and commonly used options of `vcgencmd`. By combining these options, you can monitor the status of the Raspberry Pi.
1. System Status
2. Clock and Memory
Generated command:
Try combining the commands.
Description:
`vcgencmd` Executes the command.
Combine the above options to virtually execute commands with AI.
Usage Examples
Learn how to monitor system status through commonly used combinations of the `vcgencmd` command.
Continuously Check CPU Temperature
watch -n 2 vcgencmd measure_temp
Use the `watch` command to update the CPU temperature every 2 seconds.
Check CPU Clock and Temperature at Once
vcgencmd measure_clock arm && vcgencmd measure_temp
Outputs the current clock frequency and temperature of the CPU simultaneously.
Detailed Check of Throttling Status
vcgencmd get_throttled
Check the output value of `get_throttled` along with the bit pattern to identify the reasons for performance throttling.