CEHPC practice question 1 of 10
Which command is used to update Kali Linux from the console?
Full set: 123 questionsOn 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.
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.
- 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.
Keep practicing
Take the free CEHPC practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other CEHPC practice questions
- Question 2As pentester can we exploit any vulnerability regardless of the affectations?
- Question 6Is it illegal to practice with VulnHub machines?
- Question 7vectors] Can an FTP protocol be breached?
- Question 8What is a security breach?
- Question 9Which of the following is an example of social engineering?
