Package Management (apt)
Concept & Overview
Think of installing apps on your smartphone using the App Store or Google Play Store. It is safe, curated, and automated. In Linux, we use a command-line app store called a package manager to fetch and install software securely.
- On Ubuntu/Debian systems, the standard package manager is apt (Advanced Packaging Tool).
- Installing software changes system-wide folders, so you always need to authorize it using sudo. E.g., sudo apt install tree downloads and installs the directory visualizer "tree".
sudo apt install tree to install the tree program. Once it finishes, run tree to visualize your home folder in a neat tree-like format.Command Syntax Reference
| Command / Syntax | Description |
|---|---|
sudo apt install tree | Install the tree package |
tree | Run tree to visualize directories |
Verification Objectives
These conditions will be automatically verified when you run commands inside the interactive terminal simulator:
- ○Install package "tree" using apt install
- ○Run the "tree" command to visualize directories
Ready to complete Quest 42?
Test your skills live in the browser terminal with an emulated Linux filesystem, real-time command evaluation, and instant step-by-step hints.