LPI Linux Essentials Questions and Answers Latest Update 100% Correct.
8 views 0 purchase
Course
LPI Linux Essentials
Institution
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...
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
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller ACADEMICMATERIALS. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $7.99. You're not tied to anything after your purchase.