Raspberry Pi — Common CLI Commands Reference
Jul 14, 2026 11:55am · 2 views
raspberry piclilinuxterminalcommandsssh1c3d
Markdown
Raspberry Pi — Common CLI Commands Reference
System Info
| Command | What it does |
uname -a | Kernel version and arch |
cat /proc/cpuinfo | CPU details, Pi model |
df -h | Disk usage |
free -h | Memory free/used |
vcgencmd measure_temp | CPU temperature |
vcgencmd get_throttled | Check throttling (overheating/undervoltage) |
hostname -I | IP address |
Process Management
| Command | What it does |
top / htop | Live process list |
systemctl status service | Check service status |
systemctl start/stop/restart service | Control services |
systemctl enable/disable service | Auto-start on boot |
journalctl -u service -f | Follow service logs |
Network
| Command | What it does |
ip addr | Network interfaces and IPs |
ping -c4 8.8.8.8 | Test internet |
nmap -sn 192.168.1.0/24 | Scan local network |
curl ifconfig.me | External IP |
Packages
| Command | What it does |
sudo apt update | Refresh package list |
sudo apt upgrade | Upgrade packages |
sudo apt install package | Install |
sudo apt autoremove | Remove unused deps |
GPIO (raspi-gpio)
| Command | What it does |
raspi-gpio get | All GPIO pin states |
raspi-gpio set 17 op | GPIO 17 as output |
raspi-gpio set 17 dh | GPIO 17 high |
pinout | Visual GPIO diagram |
SSH Quick Reference
ssh [email protected]
scp file.txt [email protected]:~/
touch /boot/ssh # enable SSH headless
Links