Weekend Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

Selected XK0-005 Linux+ Questions Answers

Page: 10 / 35
Total 470 questions

CompTIA Linux+ Exam Questions and Answers

Question 37

A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).

Options:

A.

~/.ssh/authorized_keys

B.

~/.ssh/known_hosts

C.

/etc/ssh/ssh_config

D.

~/.ssh/config

E.

/etc/ssh/sshd_config

F.

/etc/ssh/ssh_host_rsa_key.pub

Question 38

Users report issues when trying to securely connect to a web server. The systems administrator receives the following outputs:

bash

firewall-cmd --list-all

(Only ports for ssh, cockpit, dhcp-client are listed.)

netstat -an | grep LISTEN

tcp 0 0 0.0.0.0:443 ... LISTEN

Which of the following actions will fix this issue?

Options:

A.

Restarting the firewall service

B.

Starting the web application

C.

Restarting the web application

D.

Opening firewall port 443

Question 39

A systems administrator is configuring a Linux system so that network traffic from the internal network 172.17.0.0/16 going out through the eth0 interface would appear as if it was sent directly from this interface. Which of the following commands will accomplish this task?

Options:

A.

iptables -A POSTROUTING -s 172.17.0.0/16 -o eth0 -j MASQUERADE

B.

firewalld -A OUTPUT -s 172.17.0.0/16 -o eth0 -j DIRECT

C.

nmcli snasq-traffic eth0 -s 172.17.0.0/16 -j MASQUERADE

D.

ifconfig --nat eth0 -s 172.17.0.0/16 -j DIRECT

Question 40

A developer wants to ensure that all files and folders created inside a shared folder named /GroupOODEV inherit the group name of the parent folder. Which of the following commands will help achieve this goal?

Options:

A.

chmod g+X / GroupOODEV/

B.

chmod g+W / GroupOODEV/

C.

chmod g+r / GroupOODEV/

D.

chmod g+s / GroupOODEV/

Page: 10 / 35
Total 470 questions