Kurse › Raspberry Pi › Stufe 2
Raspberry Pi · Einsteiger · Stufe 2 / 40
Command Line Essentials
Work fluently in the Bash shell: navigate, edit, search, install software and automate a task with a script.
Einsteiger freischalten · CHF 9.90 Stufen 1–13, einmalig, kein Abo
10 Lektionen in dieser Stufe
- Reading the Prompt and Moving Around with pwd, ls and cd
Navigate the directory tree using absolute and relative paths. · Lab: Follow a treasure-hunt of ten paths and record what ls -l shows at each stop. - Creating, Copying, Moving and Deleting Files Safely
Use mkdir, touch, cp, mv and rm without losing data. · Lab: Build a practice folder, reorganise it with cp and mv, then remove it with rm -ri. - Viewing Text with cat, less, head and tail
Pick the right viewer for short files, long files and growing files. · Lab: Inspect /etc/os-release, page through a long log with less and follow a file with tail -f. - Editing Configuration Files with nano
Open, change, save and exit a text file from the terminal. · Lab: Create a notes file in nano, search and replace a word, and save it under a new name. - Getting Help from man Pages and Built-In Usage Text
Find the option you need without leaving the terminal. · Lab: Use man and --help to discover how to sort ls output by size and by time. - Wildcards, Tab Completion and Command History
Type less by letting the shell expand names and recall commands. · Lab: Select files with * and ?, complete long paths with Tab and re-run commands with history and Ctrl+R. - Redirecting Output and Chaining Commands with Pipes
Send output to files and connect small tools into a pipeline. · Lab: Count installed packages with a pipe into wc and save the sorted list to a file. - Finding Files and Text with find and grep
Locate files by name, age or size and lines by content. · Lab: Find every file over 10 MB in your home folder and grep the system log for a keyword. - Installing and Removing Software with apt
Search for, install, inspect and remove packages. · Lab: Install htop and tree, list their files with dpkg -L and remove one of them again. - Writing Your First Shell Script
Turn a list of commands into an executable script with variables. · Lab: Write a script that creates a dated report with hostname, uptime and disk usage.
Abschlussprojekt
A shell script that builds a tidy project folder structure, gathers system facts into a dated report file and can be re-run safely.
Teile für diese Stufe
- 1 × Raspberry Pi 5 or Pi 4 set from Level 1
In jeder Lektion legst du die passenden Teile direkt in den Warenkorb. Raspberry Pi →
Voraussetzung: Level 1: a working Pi with Raspberry Pi OS Bookworm and the ability to open a terminal.