ExamGecko
Home Home / LPI / 201-450

LPI 201-450 Practice Test - Questions Answers, Page 12

Question list
Search
Search

The following is an excerpt from the output of tcpdump -nli eth1:

13:03:17.277327 IP 192.168.123.5.1065 > 192.168.5.112.21: Flags [.], ack 1 (truncated)

13:03:17.598624 IP 192.168.5.112.21 > 192.168.123.5.1065: Flags [P.], seq (truncated)

Which network service or protocol was used?

A.
FTP
A.
FTP
Answers
B.
HTTP
B.
HTTP
Answers
C.
SSH
C.
SSH
Answers
D.
DNS
D.
DNS
Answers
E.
DHCP
E.
DHCP
Answers
Suggested answer: A

Which of the following commands can be used to script interactions with various TCP or UDP services?

A.
ftp
A.
ftp
Answers
B.
nc
B.
nc
Answers
C.
tcpdump
C.
tcpdump
Answers
D.
strings
D.
strings
Answers
E.
wget
E.
wget
Answers
Suggested answer: B

Which /etc/hosts.allow entries will permit access to sshd for users from the 192.168.1.0/24 subnet?

(Choose TWO correct answers.)

A.
sshd : 192.168.1.
A.
sshd : 192.168.1.
Answers
B.
sshd : 192.168.1
B.
sshd : 192.168.1
Answers
C.
sshd : 192.168.1.0 netmask 255.255.255.0
C.
sshd : 192.168.1.0 netmask 255.255.255.0
Answers
D.
sshd : 192.168.1.0/255.255.255.0
D.
sshd : 192.168.1.0/255.255.255.0
Answers
E.
sshd : 192.168.1.0
E.
sshd : 192.168.1.0
Answers
Suggested answer: A, D

What should be done to ensure a client machine uses the recursive nameserver running on the IP address 192.168.0.1? (Choose TWO correct answers.)

A.
Add nameserver 192.168.0.1 to /etc/resolv.conf.
A.
Add nameserver 192.168.0.1 to /etc/resolv.conf.
Answers
B.
Run route add nameserver 192.168.0.1.
B.
Run route add nameserver 192.168.0.1.
Answers
C.
Run ifconfig eth0 nameserver 192.168.0.1.
C.
Run ifconfig eth0 nameserver 192.168.0.1.
Answers
D.
Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file.
D.
Ensure that the dns service is listed in the hosts entry in the /etc/nsswitch.conf file.
Answers
E.
Run bind add nameserver 192.168.0.1.
E.
Run bind add nameserver 192.168.0.1.
Answers
Suggested answer: A, D

What should be done after updating the configuration file for syslogd in order to make the changes become effective? (Choose TWO correct answers.)

A.
No action is required, syslogd will notice the updated configuration file after a few minutes.
A.
No action is required, syslogd will notice the updated configuration file after a few minutes.
Answers
B.
Send the HUP signal to the syslogd process.
B.
Send the HUP signal to the syslogd process.
Answers
C.
Restart the syslogd service.
C.
Restart the syslogd service.
Answers
D.
Run the command syslogd -u.
D.
Run the command syslogd -u.
Answers
Suggested answer: B, C

Which of the following filter keywords for tcpdump specify the transfer direction for network packets? (Choose TWO correct answers.)

A.
source
A.
source
Answers
B.
src
B.
src
Answers
C.
dest
C.
dest
Answers
D.
src or dst
D.
src or dst
Answers
E.
both
E.
both
Answers
Suggested answer: B, D

Under which of the following circumstances would the command ping output the string (DUP!)?

A.
When the ICMP packets are send to a broadcast address and multiple hosts respond.
A.
When the ICMP packets are send to a broadcast address and multiple hosts respond.
Answers
B.
When the host being sent ICMP packets is on a different network.
B.
When the host being sent ICMP packets is on a different network.
Answers
C.
When the router responds to the ICMP packet in addition to the host receiving the ICMP packets.
C.
When the router responds to the ICMP packet in addition to the host receiving the ICMP packets.
Answers
D.
When the host sending the ICMP packet is the same host as the one receiving the ICMP packets.
D.
When the host sending the ICMP packet is the same host as the one receiving the ICMP packets.
Answers
Suggested answer: A

What does the -p3 option to the patch command do?

A.
It will strip off path information from each file mentioned in the patch file up to and including the third / character.
A.
It will strip off path information from each file mentioned in the patch file up to and including the third / character.
Answers
B.
patch continues execution as long as there are three or fewer errors.
B.
patch continues execution as long as there are three or fewer errors.
Answers
C.
It instructs patch to look up to three lines of context before or after the declared line in the original file for a match.
C.
It instructs patch to look up to three lines of context before or after the declared line in the original file for a match.
Answers
D.
patch will keep three previous versions of each file in the output to prevent loss of change history.
D.
patch will keep three previous versions of each file in the output to prevent loss of change history.
Answers
E.
It instructs patch to conform more strictly to the POSIX standard.
E.
It instructs patch to conform more strictly to the POSIX standard.
Answers
Suggested answer: A

When a makefile is included in a source code package, what are commonly defined targets in the file?

A.
CFLAGS, CPPFLAGS, LIBS, LDFLAGS
A.
CFLAGS, CPPFLAGS, LIBS, LDFLAGS
Answers
B.
clean, install, uninstall
B.
clean, install, uninstall
Answers
C.
PATHS, DESTDIR, LIBS, LDFLAGS
C.
PATHS, DESTDIR, LIBS, LDFLAGS
Answers
D.
prefix, exec_prefix, bindir, mandir
D.
prefix, exec_prefix, bindir, mandir
Answers
Suggested answer: B

Which of the following commands will securely copy the directory ./fyf/ to /var/tmp/ on the remote host deltaur using the remote user account kevin?

A.
rsync -a -e ssh kevin@deltaur:/var/tmp/ fyf/
A.
rsync -a -e ssh kevin@deltaur:/var/tmp/ fyf/
Answers
B.
rsync -a -u kevin -e ssh fyf/ deltaur:/var/tmp/
B.
rsync -a -u kevin -e ssh fyf/ deltaur:/var/tmp/
Answers
C.
rsync -a -u kevin -e ssh deltaur:/var/tmp/ fyf/
C.
rsync -a -u kevin -e ssh deltaur:/var/tmp/ fyf/
Answers
D.
rsync -a -e ssh fyf/ kevin@deltaur:/var/tmp/
D.
rsync -a -e ssh fyf/ kevin@deltaur:/var/tmp/
Answers
Suggested answer: D
Total 161 questions
Go to page: of 17