LPI LINUX ESSENTIALS QUESTIONS AND
ANSWERS 2024/2025
Which of the following commands is used to update the list of available packages when using
Debian based package management?
A. apt update
B. apt upgrade
C. apt refresh
D. apt install
→ A. apt update
Which RPM command will output the name of the package that supplied the /etc/exports file?
A. rpm -f /etc/exports
B. rpm -qf /etc/exports
C. rpm -qi /etc/exports
D. rpm -qp /etc/exports
→ B. rpm -qf /etc/exports
→ Find answer here: https://linuxize.com/post/rpm-command-in-linux/
What is detailed by a Free Software license?
A. Details of the technical documentation.
B. The programming languages that may be used to keep the license.
C. A list of libraries required to compile the licensed software.
1|Page| GradeA+ | 2 0 0 2 5
,2 0 2 4 /2025 | © copyright | This work may not be copied for profit gain Excel!
D. Conditions for distributing and modifying the licensed software.
→ D. Conditions for distributing and modifying the licensed software.
Which of the following commands lists the dependencies of a given dpkg package?
A. apt depends-onpackage
B. apt dependencies package
C. apt show package
D. apt requires package
→ C. apt show package
Which of the following are common services offered by public cloud providers? (Choose three
correct answers)
A. Infrastructure as a Service (IaaS)
B. Platform as a Service (PaaS)
C. Net as a Service (NaaS)
D. Graphics as a Service (GaaS)
E. Software as a Service (SaaS)
→ A. Infrastructure as a Service (IaaS)
→ B. Platform as a Service (PaaS)
→ E. Software as a Service (SaaS)
Which command is used to get information on the proper use of ls?
A. option ls
1|Page| GradeA+ | 2 0 0 2 5
,2 0 2 4 /2025 | © copyright | This work may not be copied for profit gain Excel!
B. man ls
C. usage ls
D. show ls
→ B. man ls
Which of the following characters in a shell indicates that the shell is running with superuser
(root) privileges?
A. #
B. *
C. &
D. $
→ A. #
What is the purpose of using the command ls -r?
A. To include the permissions of a listed directory.
B. To include the details of file system internals.
C. To include file permissions.
D. To include the contents of sub-directories.
→ D. To include the contents of sub-directories.
Which of the following commands can be used to remove the 'Documents' directory? (Choose
two correct answers)
A. undir Documents
1|Page| GradeA+ | 2 0 0 2 5
, 2 0 2 4 /2025 | © copyright | This work may not be copied for profit gain Excel!
B. rmdir Documents
C. rm -r Documents
D. dir -r Documents
→ B. rmdir Documents
→ C. rm -r Documents
Which of the following commands add the directory /new/dir/ to $PATH? (Choose two
correct answers)
A. $PATH=/new/dir: $PATH
B. PATH=/new/dir: $PATH
C. Import PATH=/new/dir: $PATH
D. export PATH=/new/dir: $PATH
→ B. PATH=/new/dir: $PATH
→ C. Import PATH=/new/dir: $PATH
When johnd, who is currently in the directory /home/johnd/Downloads/, runs the command ls
../Documents/, which directory's contents will be displayed?
A. /home/johnd/Documents/
B. /home/johnd/Downloads/Documents/
C. /Documents/
D. /home/Documents
→ A. /home/johnd/Documents/
1|Page| GradeA+ | 2 0 0 2 5