LPI Linux Essentials Study Guide Questions with Correct
Answers/ Latest Update 2024 – Rated A+.
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.
D. Conditions for distributing and modifying the licensed software. - ANSWER - 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 - ANSWER - 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) - ANSWER - A. Infrastructure as a Service (IaaS)
B. Platform as a Service (PaaS)
E. Software as a Service (SaaS)
pg. 1
,Which command is used to get information on the proper use of ls?
A. option ls
B. man ls
C. usage ls
D. show ls - ANSWER - B. man ls
What is the correct command to extract the contents of the archive file download.bz2?
A. unpack download.bz2
B. unzip2 download.bz2
C. bunzip2 download.bz2
D. unzip download.bz2
E. uncompress download.bz.2 - ANSWER - D. unzip download.bz2
https://linuxize.com/post/how-to-unzip-files-in-linux/
For a file that includes a list of names, what is the correct way to display the list in reverse alphabetical
order?
A. sort names.txt
B. cat -r names.txt | sort
C. sort -r names.txt
D. cat -sort names.txt - ANSWER - C. sort -r names.txt
Which of the following commands will compress bzip2 files? (Choose more than one answer)
A. bzip2 file
B. bzip2 -c file
C. bzip2 -z file
D. bzip2 -a file - ANSWER - A. bzip2 file
C. bzip2 -z file
(-z : Filter the archive through gzip)
pg. 2
, Which method can be used to document standard operation errors in a file?
A. > file
B. 2> file
C. 3> file
D. 1> file - ANSWER - B. 2> file
What does the 'wc' command do?
A. It counts how many lines there are in a file.
B. It counts how many words there are in a file.
C. It counts how many characters there are in a file.
D. All of the above. - ANSWER - D. All of the above.
Which of the following commands merges the content of multiple files to a single file?
A. merge file1 file2 file3 > newfile
B. cat file1 file2 file3 > newfile
C. echo file1 file2 file3 > newfile
D. type file1 file2 file3 >> newfile - ANSWER - C. echo file1 file2 file3 > newfile
Which of the following characters in a shell indicates that the shell is running with superuser (root)
privileges?
A. #
B. *
C. &
D. $ - ANSWER - 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.
pg. 3
Answers/ Latest Update 2024 – Rated A+.
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.
D. Conditions for distributing and modifying the licensed software. - ANSWER - 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 - ANSWER - 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) - ANSWER - A. Infrastructure as a Service (IaaS)
B. Platform as a Service (PaaS)
E. Software as a Service (SaaS)
pg. 1
,Which command is used to get information on the proper use of ls?
A. option ls
B. man ls
C. usage ls
D. show ls - ANSWER - B. man ls
What is the correct command to extract the contents of the archive file download.bz2?
A. unpack download.bz2
B. unzip2 download.bz2
C. bunzip2 download.bz2
D. unzip download.bz2
E. uncompress download.bz.2 - ANSWER - D. unzip download.bz2
https://linuxize.com/post/how-to-unzip-files-in-linux/
For a file that includes a list of names, what is the correct way to display the list in reverse alphabetical
order?
A. sort names.txt
B. cat -r names.txt | sort
C. sort -r names.txt
D. cat -sort names.txt - ANSWER - C. sort -r names.txt
Which of the following commands will compress bzip2 files? (Choose more than one answer)
A. bzip2 file
B. bzip2 -c file
C. bzip2 -z file
D. bzip2 -a file - ANSWER - A. bzip2 file
C. bzip2 -z file
(-z : Filter the archive through gzip)
pg. 2
, Which method can be used to document standard operation errors in a file?
A. > file
B. 2> file
C. 3> file
D. 1> file - ANSWER - B. 2> file
What does the 'wc' command do?
A. It counts how many lines there are in a file.
B. It counts how many words there are in a file.
C. It counts how many characters there are in a file.
D. All of the above. - ANSWER - D. All of the above.
Which of the following commands merges the content of multiple files to a single file?
A. merge file1 file2 file3 > newfile
B. cat file1 file2 file3 > newfile
C. echo file1 file2 file3 > newfile
D. type file1 file2 file3 >> newfile - ANSWER - C. echo file1 file2 file3 > newfile
Which of the following characters in a shell indicates that the shell is running with superuser (root)
privileges?
A. #
B. *
C. &
D. $ - ANSWER - 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.
pg. 3