Linux 树莓派 常用命令
本篇总结,不定时更新,基本是用到哪个就添加哪个
说明 | |
---|---|
sudo apt-get update | 更新软件 |
sudo apt-get upgrade | 升级软件包 |
sudo apt full-upgrade | 升级软件 |
sudo apt-get install scim-pinyin | 安装拼音输入法 |
df -hl | 查看SD卡占用情况 |
sudo reboot | 重启 |
sudo poweroff | 关机 |
sudo shutdown -h 12:34 | 定时关机 |
cd ~ | 打开主目录 |
ls 或 ls -l | 查看当前文件夹内容 |
cd Downloads | 打开Downloads文件夹(区分大小写) |
cd … | 返回上一级文件夹(两个点) |
/opt/vc/bin/vcgencmd measure_temp | 查看CPU温度(shell命令) |
cat /sys/class/thermal/thermal_zone0/temp | 查看CPU温度/1000(℃)(shell命令) |
tree | 以树状图列出目录的内容 |