Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: ecus65

CompTIA XK0-005 - CompTIA Linux+ Exam

Page: 2 / 15
Total 470 questions

The MySQL database process that was running on a Linux server suddenly stopped, and the process was killed. Which of the following commands can help identify whether this issue was produced by the OOM killer?

A.

grep /proc/oom_score

B.

grep -ir "out of memory" /var/log

C.

cat /var/run/initramfs/overlayroot.log | grep "out of memory"

D.

cat /sys/block/loop0/events

A Linux systems administrator needs to add additional code to code that resides within a repository without changing the original code. Once completed, the additional code will be merged into the main branch. Which of the following commands should the administrator use first?

A.

git push

B.

git rebase

C.

git tag

D.

git clone

A Linux systems administrator has applied the necessary configuration to allow both HTTP and HTTPS through the firewall. However, the host is not responding on either HTTP or HTTPS. Given the output below, what is the issue?

python-repl

Copy

firewall-cmd —list-all-zones

public (active)

...

services: ssh

...

internal

...

services: http https ssh

Which of the following best describes the reason the system is not responding on HTTP or HTTPS?

A.

The incorrect rules were configured on the firewall

B.

The interface has the incorrect routes configured

C.

The rules were added to the wrong zone

A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?

A.

sudo passwd

B.

sudo userde 1

C.

sudo chage

D.

sudo usermod

A Linux administrator is troubleshooting an SSHD issue on a server. Users are receiving error messages stating the connection is refused. Which of the following commands should be used to verify whether the service is listening?

A.

nslookup

B.

route

C.

netstat

D.

ifconfig

A Linux administrator needs to list the packages that are currently installed on a server. Which of the following commands should the administrator use?

A.

snap install list

B.

snap list

C.

snap show

D.

snap packages

Which of the following paths stores the configuration files in a Linux filesystem?

A.

/proc

B.

/home

C.

/root

D.

/etc

A systems administrator intends to use a UI-JID to mount a new partition per-manently on a Linux system. Which of the following commands can the adminis-trator run to obtain information about the UUlDs of all disks attached to a Linux system?

A.

fcstat

B.

blkid

C.

dmsetup

D.

Isscsi

An administrator made a change to a system’s network configuration. Which of the following best represents what the administrator should do to have the new configuration take effect?

A.

systemctl restart networkd

B.

systemctl enable networkd

C.

systemctl status networkd

D.

systemctl isolate networkd

A Linux administrator is troubleshooting a systemd mount unit file that is not working correctly. The file contains:

[root@system] # cat mydocs.mount

[Unit]

Description=Mount point for My Documents drive

[Mount]

What=/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34

Where=/home/user1/My Documents

Options=defaults

Type=xfs

[Install]

WantedBy=multi-user.target

The administrator verifies the drive UUID correct, and user1 confirms the drive should be mounted as My Documents in the home directory. Which of the following can the administrator

do to fix the issues with mounting the drive? (Select two).

A.

Rename the mount file to home-user1-My\x20Documents.mount.

B.

Rename the mount file to home-user1-my-documents.mount.

C.

Change the What entry to /dev/drv/disk/by-uuid/94afc9b2\-ac34\-ccff\-88ae\-297ab3c7ff34.

D.

Change the Where entry to Where=/home/user1/my\ documents.

E.

Change the Where entry to Where=/home/user1/My\x20Documents.

F.

Add quotes to the What and Where entries, such as What="/dev/drv/disk/by-uuid/94afc9b2-ac34-ccff-88ae-297ab3c7ff34" and Where="/home/user1/My Documents".