Skip to content

Quiz: Booting, the Desktop, and the Linux Terminal on the Pi 500+

Test your understanding of booting, the desktop, and the Linux terminal on the Pi 500+ with these review questions.


1. What is the Linux kernel?

  1. A graphical application for browsing and managing files with icons
  2. The specific piece of software that positions and resizes program windows
  3. A short line of text showing the shell is ready for input
  4. The core piece of software that directly controls the computer's hardware and decides which program gets access to what, and when
Show Answer

The correct answer is D. The Linux kernel is the core piece of software that directly controls a computer's hardware — the processor, memory, storage, and connected devices — deciding which program gets access to what, and when. Option A describes a file manager, option B describes a window manager, and option C describes a shell prompt.

Concept Tested: Linux Kernel


2. What does the sudo command do?

  1. Runs one specific command with root-level privileges, after confirming the request
  2. Displays the files and directories in a given location
  3. Changes which user owns a file
  4. Modifies a file's read, write, and execute permissions
Show Answer

The correct answer is A. The sudo command ("superuser do") lets an ordinary user account run one specific command with root-level privileges, just for that one command, after confirming the request. Option B describes the ls command, option C describes chown, and option D describes chmod.

Concept Tested: Sudo Command


3. According to the chapter, how do a terminal emulator, a shell, and a command line interface differ from each other?

  1. They are three different names for exactly the same program
  2. The terminal emulator reads and runs commands, while the shell is only the window it appears in
  3. The terminal emulator is the window that opens for typing commands, the shell is the program that reads and runs those commands, and the CLI is the overall style of text-based interaction
  4. The command line interface is a graphical alternative to both the terminal emulator and the shell
Show Answer

The correct answer is C. The chapter distinguishes three layers: the terminal emulator is the window for typing commands, the shell (such as Bash) is the program that reads, interprets, and runs those commands, and the command line interface is the overall style of interaction — controlling a computer entirely through typed text rather than clicking icons. Option A collapses these distinct layers into one, option B swaps their roles, and option D incorrectly frames the CLI as graphical.

Concept Tested: Terminal Emulator


4. What does it mean for a shell to have a "working directory"?

  1. It is the folder that only the root user is allowed to access
  2. It is the one location in the file system hierarchy where the shell is currently operating, so a file name typed without a full path is assumed to live there
  3. It is a temporary folder created automatically when a terminal emulator opens and deleted when it closes
  4. It is the directory where the Linux kernel stores its own configuration files
Show Answer

The correct answer is B. The working directory is the specific location within the file system hierarchy where a shell or program is currently operating, so a file name typed without a full path is assumed to live there — checked with the pwd command. Option A confuses it with root-restricted access, option C invents a temporary-folder behavior the chapter doesn't describe, and option D confuses it with kernel configuration storage.

Concept Tested: Working Directory


5. What is the difference between the chmod command and the chown command?

  1. chmod changes which user owns a file, while chown modifies a file's read, write, and execute permissions
  2. chmod and chown are two different names for exactly the same command
  3. chmod only works on directories, while chown only works on individual files
  4. chmod modifies a file's permissions, while chown changes which user (and optionally group) owns a file
Show Answer

The correct answer is D. The chmod command ("change mode") modifies a file's read, write, and execute permissions, while the chown command ("change owner") changes which user, and optionally which group, owns a file. Option A reverses these two roles. Option B incorrectly treats them as identical, and option C invents a directory/file restriction the chapter does not describe.

Concept Tested: Chmod Command


6. A file's permissions currently read -rw-r--r--. A student runs chmod +x on it. What does the permission string become?

  1. -rw-r--r--
  2. ---x--x--x
  3. -rwxr-xr-x
  4. -rw-rwx-wx
Show Answer

The correct answer is C. The chapter's own example shows chmod +x adding execute permission for every category (owner, group, others), turning -rw-r--r-- into -rwxr-xr-x — the read and write bits that were already set remain unchanged, and an "x" is added to each of the three permission groups. Option A shows no change at all, option B removes read and write entirely, and option D changes bits that +x does not affect.

Concept Tested: Chmod Command


7. A terminal starts in /home/pi and a student runs cd Documents. What does pwd now print?

  1. /home/pi/Documents
  2. /home/pi
  3. /Documents
  4. /home/Documents/pi
Show Answer

The correct answer is A. The change directory command moves the shell's working directory to a new location relative to where it currently is; starting from /home/pi and running cd Documents moves into the Documents subdirectory of the current location, making the new working directory /home/pi/Documents. Option B shows no change occurred, option C incorrectly treats Documents as if it were at the file system root, and option D scrambles the path order.

Concept Tested: Change Directory Command


8. A student wants to see a directory's file permissions and sizes, including hidden files that start with a dot. Which command should they run?

  1. cd -la
  2. sudo ls
  3. chmod -la
  4. ls -la
Show Answer

The correct answer is D. As the chapter's tip explains, ls -la combines the -l option (a "long" listing showing permissions and size) with the -a option (showing hidden files that start with a dot), exactly matching this request. Option A misapplies the -la flags to cd, which doesn't use them. Option B runs ls with elevated privileges but without the needed flags, and option C misapplies the flags to chmod, an unrelated command.

Concept Tested: List Files Command


9. A student writes a script, tries to run it directly from the terminal, and gets a "permission denied" error, even though the file clearly exists and its contents look correct. Based on this chapter, what is the most likely cause?

  1. The script must be moved into the root user's home directory before it can run
  2. The script's file permissions do not include execute permission, so chmod +x is needed before it can be run directly
  3. The Linux kernel has not finished the boot process yet
  4. The terminal emulator needs to be restarted
Show Answer

The correct answer is B. Running a file as a program requires execute permission (the "x" bit); a freshly created script typically has only read and write permissions by default, exactly matching the chapter's own before-and-after chmod +x example. Option A misapplies file location to a permissions problem, option C would prevent the whole system from working, not just one script, and option D addresses an unrelated software issue.

Concept Tested: File Permissions


10. A new Pi 500+ user is about to run a sudo command involving rm (remove) that they found online, without fully reading what it does. Based on this chapter's guidance, what is the appropriate response?

  1. Run it anyway, since sudo commands are always safe on a personal Pi 500+
  2. Only research the command if it fails the first time
  3. Read the command fully before pressing Enter, since a sudo command can delete files or break the system with no undo, and this is treated as a rule with zero exceptions
  4. Convert the command to use chmod instead, which is always safer than sudo
Show Answer

The correct answer is C. The chapter's warning states plainly that a sudo command can delete files, overwrite system settings, or break the Pi 500+ entirely with no undo button, and specifically instructs readers to read a sudo command fully before pressing Enter, especially anything involving rm — calling this "the one rule in this chapter with zero exceptions." Option A directly contradicts that warning, option B waits until after potential damage is done, and option D misapplies chmod as a substitute for sudo, which serves a different purpose entirely.

Concept Tested: Sudo Command