Challenge - 5 Problems
Raspberry Pi OS Setup Master
Get all challenges correct to earn this badge!
Test your skills under time pressure!
❓ Predict Output
intermediate1:30remaining
What is the output of this Raspberry Pi OS command?
You run the command
ls /boot on your Raspberry Pi OS terminal. What will this command output?Raspberry Pi
ls /boot
Attempts:
2 left
💡 Hint
Think about what the 'ls' command does in Linux.
✗ Incorrect
The ls command lists files and folders in the specified directory. Here, it lists contents of /boot.
❓ Predict Output
intermediate1:30remaining
What is the output of this Python code on Raspberry Pi OS?
You run this Python code on your Raspberry Pi OS terminal. What is the output?
Raspberry Pi
import os print(os.uname().sysname)
Attempts:
2 left
💡 Hint
The
os.uname() function returns system information.✗ Incorrect
The sysname attribute returns the operating system name. Raspberry Pi OS is based on Linux, so it returns 'Linux'.
🔧 Debug
advanced2:00remaining
Why does this Raspberry Pi OS command fail?
You try to update your Raspberry Pi OS packages with this command but get an error. What is the cause?
Raspberry Pi
sudo apt-get update && sudo apt-get upgrade -y
Attempts:
2 left
💡 Hint
Check if your Raspberry Pi can access the internet.
✗ Incorrect
If the internet or DNS is down, apt-get update cannot fetch package lists, causing failure.
📝 Syntax
advanced1:30remaining
Which command correctly sets the Raspberry Pi OS hostname?
You want to change your Raspberry Pi's hostname to 'pi-zero'. Which command is correct?
Attempts:
2 left
💡 Hint
The
hostnamectl command manages hostnames and requires sudo.✗ Incorrect
The correct syntax is sudo hostnamectl set-hostname pi-zero. Other options have wrong order or commands.
🚀 Application
expert2:00remaining
How many files are in the Raspberry Pi OS /etc directory after a fresh install?
You freshly installed Raspberry Pi OS and run
ls /etc | wc -l. What is the expected number of files and directories?Attempts:
2 left
💡 Hint
The /etc directory contains many configuration files and folders.
✗ Incorrect
A fresh Raspberry Pi OS install has roughly 300 files and directories in /etc, including configs and subfolders.