CompTIA Linux+ XK0-005 – Question030

A systems administrator requires that all files that are created by the user named web have read-only permissions by the owner. Which of the following commands will satisfy this requirement?

A.
chown web:web /home/web
B. chmod -R 400 /home/web
C. echo "umask 377" >> /home/web/.bashrc
D. setfacl read /home/web

Correct Answer: B

CompTIA Linux+ XK0-005 – Question028

A Linux administrator is tasked with creating resources using containerization. When deciding how to create this type of deployment, the administrator identifies some key features, including portability, high availability, and scalability in production. Which of the following should the Linux administrator choose for the new design?

A.
Docker
B. On-premises systems
C. Cloud-based systems
D. Kubernetes

Correct Answer: D

CompTIA Linux+ XK0-005 – Question027

Which of the following files holds the system configuration for journal when running systemd?

A.
/etc/systemd/journald.conf
B. /etc/systemd/systemd-journalctl.conf
C. /usr/lib/systemd/journalctl.conf
D. /etc/systemd/systemd-journald.conf

Correct Answer: A

CompTIA Linux+ XK0-005 – Question026

A Linux administrator is troubleshooting SSH connection issues from one of the workstations.
When users attempt to log in from the workstation to a server with the IP address 104.21.75.76, they receive the following message:

The administrator reviews the information below:


Which of the following is causing the connectivity issue?

A.
The workstation has the wrong IP settings.
B. The sshd service is disabled.
C. The server's firewall is preventing connections from being made.
D. The server has an incorrect default gateway configuration.

Correct Answer: B

CompTIA Linux+ XK0-005 – Question022

An administrator attempts to rename a file on a server but receives the following error.

The administrator then runs a few commands and obtains the following output:

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

A.
chgrp reet files
B. chacl -R 644 files
C. chown users files
D. chmod -t files

Correct Answer: D

CompTIA Linux+ XK0-005 – Question021

An administrator needs to make some changes in the IaC declaration templates. Which of the following commands would maintain version control?

A.
git clone https://github.com/comptia/linux+-.git git push origin
B. git clone https://qithub.com/comptia/linux+-.git git fetch New-Branch
C. git clone https://github.com/comptia/linux+-.git git status
D. git clone https://github.com/comptia/linuxt+-.git git checkout -b <new-branch>

Correct Answer: D