树莓派常用命令
@(树莓派学习笔记)
关机命令:sudo shut down -h now
重启命令:sudo reboot
查看IP地址:hostname -I
编辑文件:sudo vi/vim/nano file_address
查看内存:df-h
统计当前文件夹下各个文件夹的大小:du -lh --max-depth=1
清理内存:
sudo apt-get autoclean
--清理旧版本的软件缓存
sudo apt-get clean
–清理所有软件缓存
sudo apt-get autoremove
–删除系统不再使用的孤立软件
修改配置:sudo raspi-config
查看IO口:gpio readall
raspi-gpio get pin