Winter Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

Note! Following XK0-004 Exam is Retired now. Please select the alternative replacement for your Exam Certification. The new exam code is XK0-005

XK0-004 Exam Dumps - CompTIA Linux+ Certification Exam

Go to page:
Question # 65

Which of the following is modified to reconfigure the boot environment?

A.

grub-mkconfig

B.

grub.cfg

C.

update-grub

D.

grub2-mkconfig

Full Access
Question # 66

A Linux systems administrator needs to set permissions on an application with the following parameters:

The owner of the application should be able to read, write, and execute the application.

Members of the group should be able to read and execute the application.

Everyone else should not have access to the application.

Which of the following commands would BEST accomplish these tasks?

A.

chmod 710

B.

chmod 730

C.

chmod 750

D.

chmod 760

Full Access
Question # 67

A Linux administrator is using a public cloud provider to host servers for a company’s website. Using the provider’s tools, the administrator wrote a JSON file to define how to deploy the servers. Which of the following techniques did the administrator use?

A.

Infrastructure as code

B.

Build automation

C.

Platform as a service

D.

Automated configuration

Full Access
Question # 68

A Linux administrator has installed a web application firewall in front of a web server running on HTTP port 8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:

Output of sysctl -a command:

Output of iptables -L command:

Output of netstat –nltop | grep "8080":

Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?

A.

sysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable the

change

B.

Edit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/

sysctl.conf to enable the change

C.

Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j then

restart httpd daemon

D.

Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 –j

ACCEPT then restart httpd daemon

Full Access
Question # 69

A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.

Which of the following commands will achieve this task?

A.

sudo killall –HUP dd

B.

sudo killall dd

C.

sudo killall –TERM dd

D.

sudo killall -USR1 dd

Full Access
Question # 70

An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content.

Which of the following permissions should be applied to this shared directory?

A.

rwxrwxrwt

B.

rwxrwxrws

C.

rwxrwxrwx

D.

rwxrwxrw*

Full Access
Question # 71

An administrator has written the following Bash script:

All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received:

No such file or directory

Which of the following is the MOST likely cause of the error?

A.

The shebang points to the wrong path.

B.

The script is not executable.

C.

The formatting of the file is incorrect.

D.

Nslookup is not installed.

Full Access
Question # 72

A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Go to page: