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 # 33

A junior administrator is installing kernel modules. The administrator is given a checklist that outlines the

following tasks to be completed:

Display currently installed module version.

Display which modules loaded at startup.

Which of the following commands would be used to accomplish these tasks? (Choose two.)

A.

cat /etc/issue

B.

insmod

C.

lsmod

D.

rmmod

E.

depmod

F.

dmesg

Full Access
Question # 34

A site reliability engineer updated the latest configuration management scripts and committed them to a

workstream called either test or patch. A Linux administrator wants to ensure these latest workstreams are

able to be retrieved to the server. Which of the following is the BEST Git attribute to use?

A.

branch

B.

fetch

C.

log

D.

pull

Full Access
Question # 35

An administrator is reviewing updates in the master online Git repository and notices a file named .htaccess.

The file contains passwords and should only be in the administrator’s local repository, not the online one.

Which of the following would prevent this file from appearing online in the future?

A.

git commit -m "File Update" -x .htaccess

B.

sed -i 's/#Preserve Hidden=True/Preserve Hidden=True/g' .git/config

C.

chown nobody:nodoby .htaccess

D.

echo ".htaccess" >> .gitignore

Full Access
Question # 36

Users are unable to connect to a server using HTTPS. The administrator runs the following command on the remote system:

Then, the administrator runs the following command from a local workstation:

Which of the following steps should the administrator take to address the issue?

A.

Start the application to run on port 443

B.

Configure the application to run on an active port

C.

Allow port 443 through the firewall

D.

Update the self-signed certificate

Full Access
Question # 37

After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?

A.

Use a non-standard port for Telnet

B.

Disable and umnstall the Telnet service

C.

Ensure the kernels are up to date with the latest patches

D.

Configure the firewall to allow Telnet access only from trusted networks

Full Access
Question # 38

An administrator wrote the following script, but it failed:

Which of the following is MOST likely the error in the script?

A.

Line 1 should read: #!/bin/sh

B.

Line 4 should read: for line in $ { FILES}

C.

Line 6 should read: OWNER-'ls -1 ${LINE} I cut -d " " -f 1'

D.

Line 7 should read: echo '$(line) - S{OWNER)'

Full Access
Question # 39

An administrator needs to run the rescript. sh script stored on the /nr.t/disk Wesystem. but permission is denied;

The system options are:

The script properties are:

Which of the following will resolve the issue?

A.

mount -o remount, rw /mnt/disk

B.

chcon-u system_u -t admin_home_/mnt/disk/ myscript.sh

C.

mount -o remount, exec .mnt/disk

D.

setenforce permissive

Full Access
Question # 40

A Linux administrator is confirming information on a system. The administrator issues a series of commands and gets the following output:

Which of the following did the administrator issue?

A.

Ismod | sort

B.

dmesg | more

C.

insmod video > dev/ttyS0

D.

modprobe video ismod

Full Access
Go to page: