pg. 1 LPI Linux Essentials Study Guide Questions with Correct Answers/ Latest Update 2024 – Rated A+.
What is detailed by a Free Software license?
- Details of the technical documentation.
- The programming languages that may be used to keep the license.
- A list of libraries required to compile the licensed software.
- 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?
- apt depends-onpackage
- apt dependencies package
- apt show package
- apt requires package - ANSWER - C. apt show package
Which of the following are common services offered by public cloud providers? (Choose three correct answers)
- Infrastructure as a Service (IaaS)
- Platform as a Service (PaaS)
- Net as a Service (NaaS)
- Graphics as a Service (GaaS)
- Software as a Service (SaaS) - ANSWER - A. Infrastructure as a Service (IaaS)
- Platform as a Service (PaaS)
- Software as a Service (SaaS)
- / 3
pg. 2 Which command is used to get information on the proper use of ls?
- option ls
- man ls
- usage ls
- show ls - ANSWER - B. man ls
What is the correct command to extract the contents of the archive file download.bz2?
- unpack download.bz2
- unzip2 download.bz2
- bunzip2 download.bz2
- unzip download.bz2
- 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?
- sort names.txt
- cat -r names.txt | sort
- sort -r names.txt
- cat -sort names.txt - ANSWER - C. sort -r names.txt
Which of the following commands will compress bzip2 files? (Choose more than one answer)
- bzip2 file
- bzip2 -c file
- bzip2 -z file
- bzip2 -a file - ANSWER - A. bzip2 file
- bzip2 -z file
(-z : Filter the archive through gzip)
- / 3
pg. 3
Which method can be used to document standard operation errors in a file?
- > file
- 2> file
- 3> file
- 1> file - ANSWER - B. 2> file
What does the 'wc' command do?
- It counts how many lines there are in a file.
- It counts how many words there are in a file.
- It counts how many characters there are in a file.
- 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?
- merge file1 file2 file3 > newfile
- cat file1 file2 file3 > newfile
- echo file1 file2 file3 > newfile
- 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?
- #
- *
- &
D. $ - ANSWER - A. #
What is the purpose of using the command ls -r?
- To include the permissions of a listed directory.
- To include the details of file system internals.
- / 3