Bird
0
0

Which command correctly updates the package list on Ubuntu?

easy📝 Syntax Q3 of 15
Linux CLI - Linux Basics and Terminal
Which command correctly updates the package list on Ubuntu?
Ayum update
Bapt-get update
Cdnf upgrade
Dpacman -Syu
Step-by-Step Solution
Solution:
  1. Step 1: Identify Ubuntu's package manager

    Ubuntu uses APT package manager, so 'apt-get update' refreshes package lists.
  2. Step 2: Check other commands

    yum and dnf are for CentOS/Fedora, pacman is for Arch Linux.
  3. Final Answer:

    apt-get update -> Option B
  4. Quick Check:

    Ubuntu update command = apt-get update [OK]
Quick Trick: Ubuntu uses apt-get for package updates [OK]
Common Mistakes:
  • Using yum or dnf on Ubuntu
  • Confusing pacman with apt-get
  • Using upgrade instead of update for refreshing lists

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Linux CLI Quizzes