ExamGecko
Home / LPI / 101-500
Ask Question

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

Question list
Search

Question 161

Report
Export
Collapse

CORRECT TEXT

In the vi editor, what vi command will copy (but not paste) from the current line at the cursor and the following 16 lines (17 lines total)? Specify the correct vi command without spaces.

17yy
17yy
Suggested answer: A
asked 18/09/2024
Coleman Owie
39 questions

Question 162

Report
Export
Collapse

Which of the following commands changes all occurrences of the word "bob" in file data to "Bob" and prints the result to standard output?

sed'/bob/Bob' data
sed'/bob/Bob' data
sed's/bob/Bob/g' data
sed's/bob/Bob/g' data
sed's/bob/Bob/' data
sed's/bob/Bob/' data
sed'/bob/Bob/' data
sed'/bob/Bob/' data
sed's/bob,Bob/' data
sed's/bob,Bob/' data
Suggested answer: B
asked 18/09/2024
Alireza Noura
27 questions

Question 163

Report
Export
Collapse

Which of the following is a limitation of the cut command?

Thecutcommand can only select output by field position.
Thecutcommand can only select output by field position.
Thecutcommand cannot reorder fields.
Thecutcommand cannot reorder fields.
Thecutcommand only works on ASCIItext.
Thecutcommand only works on ASCIItext.
Thecutcommand cannot use different input and output delimiters.
Thecutcommand cannot use different input and output delimiters.
Suggested answer: B
asked 18/09/2024
Leila Bekirova
39 questions

Question 164

Report
Export
Collapse

Which of the following commands will change all CR-LF pairs in an imported text file, userlist.txt, to Linux standard LF characters and store it as newlist.txt?

tr '\r\n' '' < userlist.txt > newlist.txt
tr '\r\n' '' < userlist.txt > newlist.txt
tr -c '\n\r' '' < newlist.txt > userlist.txt
tr -c '\n\r' '' < newlist.txt > userlist.txt
tr -d '\r' < userlist.txt > newlist.txt
tr -d '\r' < userlist.txt > newlist.txt
tr '\r' '\n' userlist.txt newlist.txt
tr '\r' '\n' userlist.txt newlist.txt
tr -s '^M' '^J' userlist.txt newlist.txt
tr -s '^M' '^J' userlist.txt newlist.txt
Suggested answer: C
asked 18/09/2024
Pilocz Pi
39 questions

Question 165

Report
Export
Collapse

When in Normal mode invi, which character can be used to begin a reverse search of the text?

?
?
/
/
F
F
r
r
Suggested answer: A
asked 18/09/2024
57 Milecross Lane Jodie
41 questions

Question 166

Report
Export
Collapse

In compliance with the FHS, in which of the following directories are documentation files found?

/usr/share/documentation
/usr/share/documentation
/usr/local/share/documentation
/usr/local/share/documentation
/var/share/doc
/var/share/doc
/usr/share/doc
/usr/share/doc
/etc/share/doc
/etc/share/doc
Suggested answer: C
asked 18/09/2024
Swen Evers
39 questions

Question 167

Report
Export
Collapse

Which of the following commands converts spaces in a file to tab characters and prints the result to standard output?

iconv
iconv
expand
expand
unexpand
unexpand
tab
tab
Suggested answer: C
asked 18/09/2024
Garvey Butler
44 questions

Question 168

Report
Export
Collapse

What does the command grub-install /dev/sda do?

GRUB creates partitions on the device/dev/sdato be used with Linux.
GRUB creates partitions on the device/dev/sdato be used with Linux.
GRUB sets the default BIOS boot device to/dev/sda.
GRUB sets the default BIOS boot device to/dev/sda.
GRUB installs all required files and configures the boot loader on device/dev/sda.
GRUB installs all required files and configures the boot loader on device/dev/sda.
GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.
GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.
Suggested answer: C
asked 18/09/2024
Braden Houser
33 questions

Question 169

Report
Export
Collapse

Which of the following statements describes a difference between GNU GRUB Legacy and GRUB 2?

GRUB 2 no longer requires a configuration file.
GRUB 2 no longer requires a configuration file.
Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.
Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.
grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.
grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.
The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.
The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.
Suggested answer: B
asked 18/09/2024
Isidre Piguillem
42 questions

Question 170

Report
Export
Collapse

Which of the following commands updates the already installed RPM package rpmname?

rpm --update rpmname
rpm --update rpmname
rpm -U rpmname
rpm -U rpmname
rpm -q rpmname
rpm -q rpmname
rpm --force rpmname
rpm --force rpmname
rpm -u rpmname
rpm -u rpmname
Suggested answer: B
asked 18/09/2024
himanshu deshpande
41 questions
Total 246 questions
Go to page: of 25