树莓派-树莓派常用命令

  • 显示开机信息
1
dmesg

http://www.shumeipai.net/thread-28928-1-1.html?_dsign=0c7293a1

1
2
3
4
5
6
7
sudo reboot # 重启
shutdown -r now # 重启

sudo poweroff # 关机
sudo init 0
sudo halt
sudo shutdown -h now
  • 查看树莓派CPU信息 cpuinfo
1
cat /proc/cpuinfo

vcgencmd 命令

  • vcgencmd get_throttled 查看树莓派电压信息,电压低这么查
  • vcgencmd measure_temp查看树莓派温度信息
  • vcgencmd measure_clock core frequency(1)=250000000
  • vcgencmd measure_volts core volt=1.2000V

https://blog.csdn.net/lakeheart879/article/details/77336393

1
2
3
4
5
6
7
8
9
10
11
/opt/vc/bin/vcgencmd get_throttled

# https://github.com/raspberrypi/documentation/blob/JamesH65-patch-vcgencmd-vcdbg-docs/raspbian/applications/vcgencmd.md
# https://harlemsquirrel.github.io/shell/2019/01/05/monitoring-raspberry-pi-power-and-thermal-issues.html
# 0: under-voltage
# 1: arm frequency capped (ARM frequency capped is referring to the soft temperature limit but that is supposedly only for a 3B+.)
# 2: currently throttled
# 16: under-voltage has occurred
# 17: arm frequency capped has occurred
# 18: throttling has occurred
# 19: Soft temperature limit has occurred
  • 查看树莓派温度
1
2
watch -n 1 cat /sys/class/thermal/thermal_zone0/temp
watch -n 1 "vcgencmd measure_temp"

树莓派-树莓派常用命令
https://dnacore.github.io/post/5b3e2300-5ce7-4532-8c2f-189b9bb38142.html
作者
DNACore
发布于
2020年1月21日
更新于
2023年7月4日
许可协议