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

New Release XK0-005 Linux+ Questions

Page: 18 / 30
Total 401 questions

CompTIA Linux+ Exam Questions and Answers

Question 69

A Linux user is trying to execute commands with sudo but is receiving the following error:

$ sudo visudo

>>> /etc/sudoers: syntax error near line 28 <<<

sudo: parse error in /etc/sudoers near line 28

sudo: no valid sudoers sources found, quitting

The following output is provided:

# grep root /etc/shadow

root :* LOCK *: 14600 ::::::

Which of the following actions will resolve this issue?

Options:

A.

Log in directly using the root account and comment out line 28 from /etc/sudoers.

B.

Boot the system in single user mode and comment out line 28 from /etc/sudoers.

C.

Comment out line 28 from /etc/sudoers and try to use sudo again.

D.

Log in to the system using the other regular user, switch to root, and comment out line 28 from /etc/sudoers.

Question 70

A diagnostic tool reports a "host seems down" event for a server with an IP address of 192.168.47.44. Which of the following commands should the administrator use to confirm the host down event?

Options:

A.

nmap 192.168.47.0/32

B.

netcat 192.168.47.44

C.

nmap 192.168.47.44 -Pn

D.

ping -c 1 192.168.47.44

Question 71

An administrator accidentally installed the httpd RPM package along with several dependencies. Which of the following options is the best way for the administrator to revert the package installation?

Options:

A.

dnf clean all

B.

rpm -e httpd

C.

apt-get clean

D.

yum history undo last

Question 72

An administrator completes maintenance on a server but cannot remount the logical volume. Given the following output:

# mount /dev/data/files /opt/data/

mount: /opt/data: special device /dev/data/files does not exist.

# lvs

LV VG Attr LSize Pool Origin Data% Meta% Move Log Cpy%Sync Convert

files data -wi-a------ 600.00m

# vgs

VG #PV #LV #SN Attr VSize VFree

data 1 1 0 wz—n- 1020.00m 420.00m

Which of the following commands should the administrator execute to resolve the issue?

Options:

A.

vgchange -ay data

B.

lvscan --all

C.

vgimport data

D.

lvchange -ay /dev/data/files

Page: 18 / 30
Total 401 questions