ExamGecko
Home Home / LPI / 101-500

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

Question list
Search
Search

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.

A.
17yy
A.
17yy
Answers
Suggested answer: A

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

A.
sed'/bob/Bob' data
A.
sed'/bob/Bob' data
Answers
B.
sed's/bob/Bob/g' data
B.
sed's/bob/Bob/g' data
Answers
C.
sed's/bob/Bob/' data
C.
sed's/bob/Bob/' data
Answers
D.
sed'/bob/Bob/' data
D.
sed'/bob/Bob/' data
Answers
E.
sed's/bob,Bob/' data
E.
sed's/bob,Bob/' data
Answers
Suggested answer: B

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

A.
Thecutcommand can only select output by field position.
A.
Thecutcommand can only select output by field position.
Answers
B.
Thecutcommand cannot reorder fields.
B.
Thecutcommand cannot reorder fields.
Answers
C.
Thecutcommand only works on ASCIItext.
C.
Thecutcommand only works on ASCIItext.
Answers
D.
Thecutcommand cannot use different input and output delimiters.
D.
Thecutcommand cannot use different input and output delimiters.
Answers
Suggested answer: B

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?

A.
tr '\r\n' '' < userlist.txt > newlist.txt
A.
tr '\r\n' '' < userlist.txt > newlist.txt
Answers
B.
tr -c '\n\r' '' < newlist.txt > userlist.txt
B.
tr -c '\n\r' '' < newlist.txt > userlist.txt
Answers
C.
tr -d '\r' < userlist.txt > newlist.txt
C.
tr -d '\r' < userlist.txt > newlist.txt
Answers
D.
tr '\r' '\n' userlist.txt newlist.txt
D.
tr '\r' '\n' userlist.txt newlist.txt
Answers
E.
tr -s '^M' '^J' userlist.txt newlist.txt
E.
tr -s '^M' '^J' userlist.txt newlist.txt
Answers
Suggested answer: C

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

A.
?
A.
?
Answers
B.
/
B.
/
Answers
C.
F
C.
F
Answers
D.
r
D.
r
Answers
Suggested answer: A

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

A.
/usr/share/documentation
A.
/usr/share/documentation
Answers
B.
/usr/local/share/documentation
B.
/usr/local/share/documentation
Answers
C.
/var/share/doc
C.
/var/share/doc
Answers
D.
/usr/share/doc
D.
/usr/share/doc
Answers
E.
/etc/share/doc
E.
/etc/share/doc
Answers
Suggested answer: C

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

A.
iconv
A.
iconv
Answers
B.
expand
B.
expand
Answers
C.
unexpand
C.
unexpand
Answers
D.
tab
D.
tab
Answers
Suggested answer: C

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

A.
GRUB creates partitions on the device/dev/sdato be used with Linux.
A.
GRUB creates partitions on the device/dev/sdato be used with Linux.
Answers
B.
GRUB sets the default BIOS boot device to/dev/sda.
B.
GRUB sets the default BIOS boot device to/dev/sda.
Answers
C.
GRUB installs all required files and configures the boot loader on device/dev/sda.
C.
GRUB installs all required files and configures the boot loader on device/dev/sda.
Answers
D.
GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.
D.
GRUB recompiles the Linux Kernel and installs it on the Master Boot Record of device/dev/sda.
Answers
Suggested answer: C

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

A.
GRUB 2 no longer requires a configuration file.
A.
GRUB 2 no longer requires a configuration file.
Answers
B.
Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.
B.
Partition numbers start at 0 in GRUB Legacy and1in GRUB 2.
Answers
C.
grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.
C.
grub-mkconfigonly works with GRUB Legacy if the--version 1option is used.
Answers
D.
The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.
D.
The configuration filemenu.lst(andgrub.conf) have been replaced withgrub.config.
Answers
Suggested answer: B

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

A.
rpm --update rpmname
A.
rpm --update rpmname
Answers
B.
rpm -U rpmname
B.
rpm -U rpmname
Answers
C.
rpm -q rpmname
C.
rpm -q rpmname
Answers
D.
rpm --force rpmname
D.
rpm --force rpmname
Answers
E.
rpm -u rpmname
E.
rpm -u rpmname
Answers
Suggested answer: B
Total 246 questions
Go to page: of 25