Inspirational journeys

Follow the stories of academics and their research expeditions

Comptia Linux + 2023 Questions and answer - Part 32

Mary Smith

Sat, 24 May 2025

Comptia Linux + 2023 Questions and answer - Part 32

1. When removing a package, which of the following dpkg options will completely remove the files including configuration files?

A) A. --clean
B) B. --delete
C) C. --purge
D) D. 'remove



2. Which file should be edited to select the network locations from which Debian installation package files are loaded?

A) A. /etc/dpkg/dpkg.cfg
B) B. /etc/apt/apt.conf
C) C. /etc/apt/apt.conf.d
D) D. /etc/apt/sources.list
E) E. /etc/dpkg/dselect.cfg


3. Which of the following commands overwrites the bootloader located on /dev/sda without overwriting the partition table or any data following it?

A) A. dd if=/dev/zero of=/dev/sda bs=512
B) B. dd if=/dev/zero of=/dev/sda bs=512 count=1
C) C. dd if=/dev/zero of=/dev/sda bs=440 count=1
D) D. dd if=/dev/zero of=/dev/sda bs=440



4. After modifying GNU GRUB's configuration file, which command must be run for the changes to take effect?

A) A. kill -HUP $(pidof grub)
B) B. grub-install
C) C. grub
D) D. No action is required



5. Which of the following commands is used to update the list of available packages when using dpkg based package management?

A) A. apt-get update
B) B. apt-get upgrade
C) C. apt-cache update
D) D. apt-get refresh
E) E. apt-cache upgrade


1. Right Answer: C
Explanation:

2. Right Answer: D
Explanation:

3. Right Answer: C
Explanation:

4. Right Answer: D
Explanation:

5. Right Answer: A
Explanation:

0 Comments

Leave a comment