LINUX FOUNDATIONS 300 Questions |
Answers & Rationales
Exam Blueprint:
Linux Installation & Package Management (15%) – 45 Qs
Linux File Systems & Hierarchy (20%) – 60 Qs
Command Line Basics & File Management (25%) – 75 Qs
Processes, Users & Permissions (20%) – 60 Qs
Networking, Security & Scripting (20%) – 60 Qs
Time limit (simulated): 3 hours (0.6 min/question)
Passing threshold: 70% (210/300)
SECTION 1: LINUX INSTALLATION & PACKAGE MANAGEMENT
(Questions 1–45)
1. Which command displays the current Linux distribution and version
information?
A) uname -a
B) lsb_release -a
C) hostname
D) uptime
Answer: B
Rationale: lsb_release -a displays Linux Standard Base (LSB) information
including distributor ID, release number, and codename.
2. Which command shows the kernel version?
,A) uname -r
B) uname -a
C) Both A and B
D) kernel --version
Answer: C
Rationale: uname -r shows only kernel release; uname -a shows all system
info including kernel version.
3. Which package manager is used by Debian-based distributions (e.g.,
Ubuntu, Debian)?
A) rpm
B) dpkg / apt
C) pacman
D) yum
Answer: B
Rationale: Debian-based: dpkg (low-level) and apt (high-level). Red Hat-
based: rpm, yum, dnf.
4. Which command installs a .deb package file manually?
A) apt install file.deb
B) dpkg -i file.deb
C) rpm -i file.deb
D) yum install file.deb
Answer: B
Rationale: dpkg -i (or --install) installs a Debian package file; apt handles
dependencies automatically.
5. Which command updates the package index from repositories on a Debian
system?
,A) apt upgrade
B) apt update
C) apt dist-upgrade
D) apt install
Answer: B
Rationale: apt update refreshes the package list; apt upgrade installs
available upgrades.
6. Which command upgrades all installed packages on a Red Hat-based
system?
A) yum update or dnf update
B) apt upgrade
C) rpm -Uvh *
D) pacman -Syu
Answer: A
Rationale: yum update (RHEL 7) or dnf update (RHEL 8/9) upgrades all
packages; rpm -Uvh updates a single package.
7. Which option to rpm queries all installed packages?
A) rpm -qa
B) rpm -qi
C) rpm -ql
D) rpm -qf
Answer: A
Rationale: rpm -qa (query all) lists all installed RPM packages; -
qi information, -ql list files, -qf query file.
8. Which command removes a package on a Debian-based system?
A) apt remove
, B) apt purge
C) Both A and B (remove leaves config, purge removes config)
D) apt delete
Answer: C
Rationale: apt remove removes binaries but leaves configuration files; apt
purge removes configuration files as well.
9. Which command searches for a package in the repositories on a Red Hat-
based system?
A) yum search
B) dnf search
C) yum whatprovides
D) All of the above
Answer: D
Rationale: yum/dnf search searches package
names/descriptions; whatprovides finds which package provides a file.
10. Which command displays detailed information about an installed RPM
package?
A) rpm -qi
B) rpm -qa
C) rpm -ql
D) rpm -qf
Answer: A
Rationale: rpm -qi (query info) shows package description, version,
architecture, installation date.
11. Which package manager is used by Arch Linux?
A) pacman