ExamGecko
Home Home / LPI / 010-160

LPI 010-160 Practice Test - Questions Answers, Page 4

Question list
Search
Search

Which of the following are typical services offered by public cloud providers? (Choose three.)

A.
Platform as a Service(PaaS)
A.
Platform as a Service(PaaS)
Answers
B.
Infrastructure as a Service(IaaS)
B.
Infrastructure as a Service(IaaS)
Answers
C.
Internet as a Service(IaaS)
C.
Internet as a Service(IaaS)
Answers
D.
Graphics as a Service (GaaS)
D.
Graphics as a Service (GaaS)
Answers
E.
Software as a Service (SaaS)
E.
Software as a Service (SaaS)
Answers
Suggested answer: A, B, E

Which of the following characters in a shell prompt indicates the shell is running with root privileges?

A.
!
A.
!
Answers
B.
#
B.
#
Answers
C.
*
C.
*
Answers
D.
&
D.
&
Answers
E.
$
E.
$
Answers
Suggested answer: B

Which of the following commands are used to get information on the proper use of ls? (Choose two.)

A.
option ls
A.
option ls
Answers
B.
usage ls
B.
usage ls
Answers
C.
manual ls
C.
manual ls
Answers
D.
man ls
D.
man ls
Answers
E.
info ls
E.
info ls
Answers
Suggested answer: D, E

What is true about a recursive directory listing?

A.
It includes the content of sub-directories.
A.
It includes the content of sub-directories.
Answers
B.
It includes the permissions of the directory listed.
B.
It includes the permissions of the directory listed.
Answers
C.
It includes details of file system internals, such as inodes.
C.
It includes details of file system internals, such as inodes.
Answers
D.
It includes ownership information for the files.
D.
It includes ownership information for the files.
Answers
E.
It includes a preview of content for each file in the directory.
E.
It includes a preview of content for each file in the directory.
Answers
Suggested answer: A

Running the command rm Downloads leads to the following error: rm: cannot remove 'Downloads/': Is a directory

Which of the following commands can be used instead to remove Downloads, assuming Downloads is empty? (Choose two.)

A.
undir Downloads
A.
undir Downloads
Answers
B.
rmdir Downloads
B.
rmdir Downloads
Answers
C.
dir -r Downloads
C.
dir -r Downloads
Answers
D.
rem Downloads
D.
rem Downloads
Answers
E.
rm -r Downloads
E.
rm -r Downloads
Answers
Suggested answer: B, E

Which of the following directories contains information, documentation and example configuration files for installed software packages?

A.
/usr/share/doc/
A.
/usr/share/doc/
Answers
B.
/etc/defaults/
B.
/etc/defaults/
Answers
C.
/var/info/
C.
/var/info/
Answers
D.
/doc/
D.
/doc/
Answers
E.
/usr/examples/
E.
/usr/examples/
Answers
Suggested answer: A

Which of the following commands adds the directory /new/dir/ to the PATH environment variable?

A.
$PATH=/new/dir: $PATH
A.
$PATH=/new/dir: $PATH
Answers
B.
PATH=/new/dir: PATH
B.
PATH=/new/dir: PATH
Answers
C.
export PATH=/new/dir: PATH
C.
export PATH=/new/dir: PATH
Answers
D.
export $PATH=/new/dir: $PATH
D.
export $PATH=/new/dir: $PATH
Answers
E.
export PATH=/new/dir: $PATH
E.
export PATH=/new/dir: $PATH
Answers
Suggested answer: E

A user is currently in the directory /home/user/Downloads/ and runs the command

ls ../Documents/

Assuming it exists, which directory's content is displayed?

A.
/home/user/Documents/
A.
/home/user/Documents/
Answers
B.
/home/user/Documents/Downloads/
B.
/home/user/Documents/Downloads/
Answers
C.
/home/user/Downloads/Documents/
C.
/home/user/Downloads/Documents/
Answers
D.
/Documents/
D.
/Documents/
Answers
E.
/home/Documents
E.
/home/Documents
Answers
Suggested answer: D

A directory contains the following three files:

texts 1.txt texts 2.txt texts 3.csv

Which command copies the two files ending in .txt to the /tmp/ directory?

A.
cp ??.txt /tmp/
A.
cp ??.txt /tmp/
Answers
B.
cp *.txt /tmp/
B.
cp *.txt /tmp/
Answers
C.
cp. \.txt /tmp/
C.
cp. \.txt /tmp/
Answers
D.
cp ?.txt /tmp/
D.
cp ?.txt /tmp/
Answers
E.
cp $?.txt /tmp/
E.
cp $?.txt /tmp/
Answers
Suggested answer: B

FILL BLANK

When typing a long command line at the shell, what single character can be used to split a command across multiple lines?

A.
\
A.
\
Answers
Suggested answer: A
Total 80 questions
Go to page: of 8