Basic Operations on Raspberry Pi¶
After installing Raspberry Pi OS, learn the commands used to manage files, software, users, storage, and network connections.
The guides below cover terminal use, permissions, networking, storage, and system settings. Follow them in order or go directly to the task you need.
Suggested reading order¶
For a new installation, start with terminal commands and user permissions, then move on to storage and networking.
1. Essential Linux Commands¶
Get comfortable navigating the Linux terminal. Learn file management, text searching with grep, package management with apt, and essential scripting tools (awk / sed).
2. User and Permission Management¶
Understand Linux users, groups, and file access policies. Learn to configure sudo roles, deploy secure SSH keys, and protect your server with fail2ban.
3. Storage Management¶
Learn how to check storage health, mount secondary USB drives permanently, optimize filesystem settings (ext4 / f2fs), configure ZRAM swap, and schedule automated backups.
4. Raspberry Pi NetworkManager and nmcli¶
Configure Ethernet and Wi-Fi, diagnose update failures, set a static IP, recover SSH access, and manage a hotspot with nmcli / nmtui.
5. System Settings Configuration¶
Use the current Trixie raspi-config menu and non-interactive commands for SSH, Wi-Fi, locale, boot, browser, hardware interfaces, and OverlayFS. Follow direct config.txt edits only when required.
6. Raspberry Pi OS Performance Optimization¶
Measure memory pressure, storage writes, boot readiness, temperature, and throttling before choosing ZRAM, OverlayFS, service, or power changes.
Quick Tips for Beginners¶
- Tab Auto-Completion: Always double-tap the
Tabkey in the terminal to auto-complete commands, directory names, and parameters. - Root Permissions: Only prefix a command with
sudoif it requires administrative level access (like system installations or editing config files under/etc). - Safety First: Never unplug your Raspberry Pi directly from power while it is running. Always shut it down cleanly using: