CEHPC practice question 1 of 10

Which command is used to update Kali Linux from the console?

Full set: 123 questions
Answer options
A: sudo update upgrade
B: sudo apt-get update••
C: sudo apt-get update Correct answer
Correct Answer:
C. sudo apt-get update
Explanation

On Debian-based systems like Kali Linux, apt-get update is the command used to download package information from all configured sources. This command updates the local cache of available packages, ensuring the system knows about the latest versions and dependencies before an upgrade is performed. It is the necessary first step in the system update process.

Why Incorrect

A. sudo update upgrade is not a valid command. update and upgrade are arguments for a package manager like apt-get, not standalone commands in this context.
B. sudo apt-get update•• is syntactically incorrect due to the trailing special characters (••), which would cause the command to fail in the shell.

References

- Kali Linux Development Team. (2023). Updating Kali Linux. Kali Linux Documentation. Retrieved from https://www.kali.org/docs/general-use/updating-kali/. The document states, "The first step is to run sudo apt update," which is the modern equivalent of apt-get update.

- The Debian Administrator's Handbook, 2nd ed. (2021). Section 6.2.3, "Upgrading." Describes the system upgrade process, which begins with apt-get update or apt update to fetch the latest list of packages.

Scroll to Top