树莓派 5 使用指南:从命令行到 Python 编程
1. 控制台命令使用
在树莓派 5 中,控制台命令是非常重要的操作方式。以下是一些常用的命令及其功能:
- 关机命令 :输入 sudo shutdown now 可以立即关闭树莓派。
pi@raspberrypi: ~$ sudo shutdown now
Broadcast message from root @raspberrypi on pts/1 (Tue 2023-10-03 12:03:00 BST)
The system will power off now!
- 网络相关命令 :
-
ifconfig:检查树莓派的 IP 地址。 -
iwconfig:检查树莓派正在使用的网络。 -
ping:测试网络设备的可用性。 -
wget:从网络下载文件并保存到当前目录。 -
hostname –I:显示树莓派的 IP 地址。 -
vcgencmd measure_temp:显示 CPU 温度。
-
- 系统信息和其他
超级会员免费看
订阅专栏 解锁全文
119

被折叠的 条评论
为什么被折叠?



