ExamGecko
Home / LPI / 101-500 / List of questions
Ask Question

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

List of questions

Question 81

Report Export Collapse

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

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

Question 82

Report Export Collapse

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

grep'/$' foo
grep'/$' foo
grep '/#' foo
grep '/#' foo
grep -v '/$' foo
grep -v '/$' foo
grep -v '/#' foo
grep -v '/#' foo
Suggested answer: C
asked 18/09/2024
Juan Jose Montero Caletrio
36 questions

Question 83

Report Export Collapse

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

history
history
set
set
bashconf
bashconf
setsh
setsh
envsetup
envsetup
Suggested answer: B
asked 18/09/2024
Emergya Ingenieria SLU Emergya Ingenieria SLU
29 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?

sed '/bob/Bob' letter > newletter
sed '/bob/Bob' letter > newletter
sed s/bob/Bob/ letter < newletter
sed s/bob/Bob/ letter < newletter
sed's/bob/Bob' letter > newletter
sed's/bob/Bob' letter > newletter
sed 's/bob/Bob/g' letter > newletter
sed 's/bob/Bob/g' letter > newletter
sed 's/bob, Bob/' letter > newletter
sed 's/bob, Bob/' letter > newletter
Suggested answer: D
asked 18/09/2024
Camilo Garrido Lizana
34 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.)

source /usr/local/bin/runme.sh
source /usr/local/bin/runme.sh
. /usr/local/bin/runme.sh
. /usr/local/bin/runme.sh
/bin/bash /usr/local/bin/runme.sh
/bin/bash /usr/local/bin/runme.sh
/usr/local/bin/runme.sh
/usr/local/bin/runme.sh
run /usr/local/bin/runme.sh
run /usr/local/bin/runme.sh
Suggested answer: A, B
asked 18/09/2024
Juliet Kihonge
48 questions

Question 86

Report Export Collapse

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

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

Question 87

Report Export Collapse

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

&
&
bg
bg
cont
cont
exec
exec
:&
:&
Suggested answer: B
asked 18/09/2024
Farid Tannouch
40 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?

2>&1 >filename
2>&1 >filename
>filename 2>&1
>filename 2>&1
1>&2>filename
1>&2>filename
>>filename
>>filename
1&2>filename
1&2>filename
Suggested answer: B
asked 18/09/2024
Nestor Maitin
30 questions

Question 89

Report Export Collapse

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

c
c
cc
cc
1c
1c
yy
yy
1y
1y
Suggested answer: D
asked 18/09/2024
Paul Pinero
36 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.)

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