0
0
Linux CLIscripting~10 mins

apt (Debian/Ubuntu) basics in Linux CLI - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the command to update the package list on a Debian/Ubuntu system.

Linux CLI
sudo apt [1]
Drag options to blanks, or click blank then click option'
Aremove
Bupdate
Cinstall
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'upgrade' instead of 'update' which upgrades packages instead of refreshing the list.
Using 'install' which installs new packages, not update the list.
2fill in blank
medium

Complete the command to install the package named 'curl'.

Linux CLI
sudo apt [1] curl
Drag options to blanks, or click blank then click option'
Aremove
Bupdate
Cinstall
Dupgrade
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'remove' which deletes packages instead of installing.
Using 'update' which refreshes package lists but does not install.
3fill in blank
hard

Fix the command to upgrade all installed packages to the newest version.

Linux CLI
sudo apt [1]
Drag options to blanks, or click blank then click option'
Aupgrade
Bupdate
Cinstall
Dremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'update' which only refreshes package lists but does not upgrade packages.
Using 'install' which installs new packages, not upgrade existing ones.
4fill in blank
hard

Fill both blanks to remove the package 'nano' and clean up unused packages.

Linux CLI
sudo apt [1] nano && sudo apt [2]
Drag options to blanks, or click blank then click option'
Aremove
Bupdate
Cautoremove
Dinstall
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'install' instead of 'remove' to delete a package.
Using 'update' instead of 'autoremove' to clean unused packages.
5fill in blank
hard

Fill all three blanks to update package lists, upgrade packages, and clean cache.

Linux CLI
sudo apt [1] && sudo apt [2] && sudo apt [3]
Drag options to blanks, or click blank then click option'
Aupdate
Bupgrade
Cautoclean
Dautoremove
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'autoremove' instead of 'autoclean' to clean cache.
Skipping 'update' before 'upgrade' which can cause outdated upgrades.