Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Document preview thumbnail
Preview 3 out of 17 pages
Exam (elaborations)

LPI Linux Essentials Questions and Answers Latest Update 100% Correct.

Document preview thumbnail
Preview 3 out of 17 pages

Which of the following commands can be used to remove the 'Documents' directory? (Choose two correct answers) A. undir Documents B. rmdir Documents C. rm -r Documents D. dir -r Documents - ️️B. rmdir Documents C. rm -r Documents 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. - ️️D. Conditions for distributing and modifying the licensed software. 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: 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 lsB. 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. # 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 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 subdirectories. 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

Content preview

LPI Linux Essentials
Which of the following commands can be used to remove the 'Documents' directory?
(Choose two correct answers)
A. undir Documents
B. rmdir Documents
C. rm -r Documents
D. dir -r Documents - ✔️✔️B. rmdir Documents
C. rm -r Documents


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. - ✔️✔️D. Conditions
for distributing and modifying the licensed software.


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/

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

,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. #

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


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 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/

A directory includes the files a.py, b.py, and c.txt. Which command will copy the two
files ending in .py to the /tmp/ directory?
A. cp !!.py /tmp/
B. cp *.py /tmp/
C. cp. \.py /tmp/

, D. cp #.py /tmp/
E. cp $?.py /tmp/ - ✔️✔️B. cp *.py /tmp/

How can the file MyScript.py be searched for in the current directory and all sub-
directories?
A. find . -name MyScript.py
B. grep MyScript.py | find
C. grep -r MyScript.py
D. less MyScript.py
E. search MyScript.py - ✔️✔️A. find . -name MyScript.py

A user tries to move the file "Script.py" to another location using the command "mv
script.py destination_folder", but an error occurs. What could be the reason for the
error?
A. The user must be a superuser to move the file.
B. The file may be corrupted.
C. Txt files cannot be moved.
D. The name of the file in the command should be "Script.py", not "script.py" - ✔️✔️D.
The name of the file in the command should be "Script.py", not "script.py"

Which of the following commands will delete all files in a directory except one.
A. rm * !"file-name"
B. rm All -except "file-name"
C. rm -fr * -exclude "file-name"
D. rm -v !("file-name") - ✔️✔️D. rm -v !("file-name")

Which of the following commands can be used to create multiple nested folders?
A. mkdir -expand 1<2<3<4<5 6 7
B. mkdir 1/>2/>3/>4/>5 6 7
C. mkdir -r 1/2/3/4/5 6 7
D. mkdir -p 1/2/3/4/5 6 7 - ✔️✔️D. mkdir -p 1/2/3/4/5 6 7
"With the help of mkdir -p command you can create sub-directories of a directory. It will
create parent directory first."

You have several files in a folder and want to display all files ending with .py, and
names that consist of four characters. Which command can do that? (Choose 2
answers)
A. ls -l ????.*
B. ls -l *.????
C. ls -l py.????
D. ls -l ????.py - ✔️✔️A. ls -l ????.*
D. ls -l ????.py

Which of the following commands can be used to view the full path of the passwd
command? (Choose two answers)
A. type passwd

Document information

Uploaded on
September 22, 2024
Number of pages
17
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers
$8.49

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
ACADEMICMATERIALS
4.0
(100)
Sold
622
Followers
185
Items
10510
Last sold
1 month ago




Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions