ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

Question 81

Report
Export
Collapse

Which of the following commands displays the contents of a gzip compressed tar archive?

A.
gzip archive.tgz | tar xvf -
A.
gzip archive.tgz | tar xvf -
Answers
B.
tar ztf archive.tgz
B.
tar ztf archive.tgz
Answers
C.
gzip -d archive.tgz | tar tvf -
C.
gzip -d archive.tgz | tar tvf -
Answers
D.
tar cf archive.tgz
D.
tar cf archive.tgz
Answers
Suggested answer: B
asked 18/09/2024
Adam Beke
40 questions

Question 82

Report
Export
Collapse

Which grep command will print only the lines that do not end with a / in the file foo?

A.
grep'/$' foo
A.
grep'/$' foo
Answers
B.
grep '/#' foo
B.
grep '/#' foo
Answers
C.
grep -v '/$' foo
C.
grep -v '/$' foo
Answers
D.
grep -v '/#' foo
D.
grep -v '/#' foo
Answers
Suggested answer: C
asked 18/09/2024
Juan Jose Montero Caletrio
30 questions

Question 83

Report
Export
Collapse

Which of the following commands is used to change options and positional parameters for a running Bash?

A.
history
A.
history
Answers
B.
set
B.
set
Answers
C.
bashconf
C.
bashconf
Answers
D.
setsh
D.
setsh
Answers
E.
envsetup
E.
envsetup
Answers
Suggested answer: B
asked 18/09/2024
Emergya Ingenieria SLU Emergya Ingenieria SLU
25 questions

Question 84

Report
Export
Collapse

Which of the following commands replaces each occurrence of 'bob' in the file letter with 'Bob' and writes the result to the file newletter?

A.
sed '/bob/Bob' letter > newletter
A.
sed '/bob/Bob' letter > newletter
Answers
B.
sed s/bob/Bob/ letter < newletter
B.
sed s/bob/Bob/ letter < newletter
Answers
C.
sed's/bob/Bob' letter > newletter
C.
sed's/bob/Bob' letter > newletter
Answers
D.
sed 's/bob/Bob/g' letter > newletter
D.
sed 's/bob/Bob/g' letter > newletter
Answers
E.
sed 's/bob, Bob/' letter > newletter
E.
sed 's/bob, Bob/' letter > newletter
Answers
Suggested answer: D
asked 18/09/2024
Camilo Garrido Lizana
31 questions

Question 85

Report
Export
Collapse

From a Bash shell, which of the following commands directly executes the instruction from the file

/usr/local/bin/runme.sh without starting a subshell? (Please select TWO answers.)

A.
source /usr/local/bin/runme.sh
A.
source /usr/local/bin/runme.sh
Answers
B.
. /usr/local/bin/runme.sh
B.
. /usr/local/bin/runme.sh
Answers
C.
/bin/bash /usr/local/bin/runme.sh
C.
/bin/bash /usr/local/bin/runme.sh
Answers
D.
/usr/local/bin/runme.sh
D.
/usr/local/bin/runme.sh
Answers
E.
run /usr/local/bin/runme.sh
E.
run /usr/local/bin/runme.sh
Answers
Suggested answer: A, B
asked 18/09/2024
Juliet Kihonge
43 questions

Question 86

Report
Export
Collapse

Regarding the command: nice -5 /usr/bin/prog Which of the following statements is correct?

A.
/usr/bin/prog is executed with a nice level of -5.
A.
/usr/bin/prog is executed with a nice level of -5.
Answers
B.
/usr/bin/prog is executed with a nice level of 5.
B.
/usr/bin/prog is executed with a nice level of 5.
Answers
C.
/usr/bin/prog is executed with a priority of -5.
C.
/usr/bin/prog is executed with a priority of -5.
Answers
D.
/usr/bin/prog is executed with a priority of 5.
D.
/usr/bin/prog is executed with a priority of 5.
Answers
Suggested answer: B
asked 18/09/2024
Akhil Borkar
40 questions

Question 87

Report
Export
Collapse

Which shell command is used to continue background execution of a suspended command?

A.
&
A.
&
Answers
B.
bg
B.
bg
Answers
C.
cont
C.
cont
Answers
D.
exec
D.
exec
Answers
E.
:&
E.
:&
Answers
Suggested answer: B
asked 18/09/2024
Farid Tannouch
34 questions

Question 88

Report
Export
Collapse

Which of the following shell redirections will write standard output and standard error output to a file named filename?

A.
2>&1 >filename
A.
2>&1 >filename
Answers
B.
>filename 2>&1
B.
>filename 2>&1
Answers
C.
1>&2>filename
C.
1>&2>filename
Answers
D.
>>filename
D.
>>filename
Answers
E.
1&2>filename
E.
1&2>filename
Answers
Suggested answer: B
asked 18/09/2024
Nestor Maitin
28 questions

Question 89

Report
Export
Collapse

In the vi editor, which of the following commands will copy the current line into the vi buffer?

A.
c
A.
c
Answers
B.
cc
B.
cc
Answers
C.
1c
C.
1c
Answers
D.
yy
D.
yy
Answers
E.
1y
E.
1y
Answers
Suggested answer: D
asked 18/09/2024
Paul Pinero
31 questions

Question 90

Report
Export
Collapse

Which of the following sequences in the vi editor saves the opened document and exits the editor?

(Choose TWO correct answers.)

A.
esc ZZ
A.
esc ZZ
Answers
B.
ctrl :w!
B.
ctrl :w!
Answers
C.
esc zz
C.
esc zz
Answers
D.
esc :wq!
D.
esc :wq!
Answers
E.
ctrl XX
E.
ctrl XX
Answers
Suggested answer: A, D
asked 18/09/2024
NEURONES TECHNOLOGIES
42 questions
Total 246 questions
Go to page: of 25