ExamGecko
Home Home / LPI / 101-500

LPI 101-500 Practice Test - Questions Answers, Page 16

Question list
Search
Search

Question 151

Report
Export
Collapse

Which of the following commands print the current working directory when using a Bash shell?

(Choose two.)

A.
echo "${PWD}"
A.
echo "${PWD}"
Answers
B.
echo "${WD}"
B.
echo "${WD}"
Answers
C.
pwd
C.
pwd
Answers
D.
printwd
D.
printwd
Answers
E.
echo "${pwd}"
E.
echo "${pwd}"
Answers
Suggested answer: C
asked 18/09/2024
doaa elshazly
47 questions

Question 152

Report
Export
Collapse

Which signal is sent by the kill command by default?

A.
SIGHUP(1)
A.
SIGHUP(1)
Answers
B.
SIGQUIT(3)
B.
SIGQUIT(3)
Answers
C.
SIGKILL(9)
C.
SIGKILL(9)
Answers
D.
SIGTERM(15)
D.
SIGTERM(15)
Answers
Suggested answer: D
asked 18/09/2024
Vikram Panchal
37 questions

Question 153

Report
Export
Collapse

Which of the following command lines creates or, in case it already exists, overwrites a file called data with the output of ls?

A.
ls 3> data
A.
ls 3> data
Answers
B.
ls >& data
B.
ls >& data
Answers
C.
ls > data
C.
ls > data
Answers
D.
ls >> data
D.
ls >> data
Answers
Suggested answer: C
asked 18/09/2024
ACHILLE CARROLL
43 questions

Question 154

Report
Export
Collapse

Which of the following commands will print important system information such as the kernel version and machine hardware architecture?

A.
sysinfo
A.
sysinfo
Answers
B.
uname
B.
uname
Answers
C.
lspci
C.
lspci
Answers
D.
arch
D.
arch
Answers
E.
info
E.
info
Answers
Suggested answer: B
asked 18/09/2024
Santanu Roy
34 questions

Question 155

Report
Export
Collapse

In Bash, inserting 2>&1 after a command redirects:

A.
standard error to standard input.
A.
standard error to standard input.
Answers
B.
standard input to standard error.
B.
standard input to standard error.
Answers
C.
standard output to standard error.
C.
standard output to standard error.
Answers
D.
standard error to standard output.
D.
standard error to standard output.
Answers
E.
standard outputto standard input.
E.
standard outputto standard input.
Answers
Suggested answer: C
asked 18/09/2024
Robert Aghten
34 questions

Question 156

Report
Export
Collapse

When piping the output of find to the xargs command, what option to find is useful if the filenames have spaces in them?

A.
-rep-space
A.
-rep-space
Answers
B.
-print0
B.
-print0
Answers
C.
-nospace
C.
-nospace
Answers
D.
-ignore-space
D.
-ignore-space
Answers
Suggested answer: B
asked 18/09/2024
james campbell
38 questions

Question 157

Report
Export
Collapse

Pressing the Ctrl-C combination on the keyboard while a command is executing in the foreground sends which of the following signal codes?

A.
1(SIGHUP)
A.
1(SIGHUP)
Answers
B.
2(SIGINT)
B.
2(SIGINT)
Answers
C.
3(SIGQUIT)
C.
3(SIGQUIT)
Answers
D.
9(SIGKILL)
D.
9(SIGKILL)
Answers
E.
15(SIGTERM)
E.
15(SIGTERM)
Answers
Suggested answer: B
asked 18/09/2024
mahdis khaledi
46 questions

Question 158

Report
Export
Collapse

Which of the following are modes of the vi editor? (Choose two.)

A.
edit mode
A.
edit mode
Answers
B.
insert mode
B.
insert mode
Answers
C.
change mode
C.
change mode
Answers
D.
review mode
D.
review mode
Answers
E.
command mode
E.
command mode
Answers
Suggested answer: B, E
asked 18/09/2024
Bruno Soriano
34 questions

Question 159

Report
Export
Collapse

Which of the following shell commands makes the already defined variable TEST visible to new child processes? (Choose two.)

A.
visible TEST
A.
visible TEST
Answers
B.
declare +x TEST
B.
declare +x TEST
Answers
C.
declare -x TEST
C.
declare -x TEST
Answers
D.
export TEST
D.
export TEST
Answers
E.
export -v TEST
E.
export -v TEST
Answers
Suggested answer: D
asked 18/09/2024
Cristian Pernia
42 questions

Question 160

Report
Export
Collapse

CORRECT TEXT

Which command is used to start another command with a given nice level? (Specify ONLY the command without any path or parameters.)

A.
nice
A.
nice
Answers
Suggested answer: A
asked 18/09/2024
Lazar Marinovic
34 questions
Total 246 questions
Go to page: of 25