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

XK0-006 Exam Dumps - CompTIA Linux+ Questions and Answers

Question # 34

A Linux system displays the following error during operation:

Kernel panic - not syncing: Fatal Machine check

Pid: 0, comm: swapper Tainted: G M

Call Trace:

...

mce_panic

do_machine_check

Which of the following is the most likely cause of this issue?

Options:

A.

Filesystem corruption

B.

Hardware failure (CPU or memory)

C.

Misconfigured bootloader

D.

Incorrect file permissions

Buy Now
Question # 35

An administrator attempts to install updates on a Linux system but receives error messages regarding a specific repository. Which of the following commands should the administrator use to verify that the repository is installed and enabled?

Options:

A.

yum repo-pkgs

B.

yum list installed repos

C.

yum reposync available

D.

yum repolist all

Buy Now
Question # 36

A Linux administrator needs to create accounts for a list of new users. The user account names have been defined in the USER_LIST variable as follows:

USER_LIST= " alice bob charles "

Which of the following commands should the administrator use to successfully create the user accounts?

Options:

A.

echo " $USER_LIST " | while username; do useradd -m " $username " ; done

B.

echo " $USER_LIST " | until username; do useradd -m " $username " ; done

C.

select username in " $USER_LIST " ; do useradd -m " $username " ; done

D.

for username in $USER_LIST; do useradd -m " $username " ; done

Buy Now
Question # 37

A Linux software developer wants to use AI to optimize source code used in a commercial product. Which of the following steps should the developer take first?

Options:

A.

Research which available AI chatbots are best at optimizing source code.

B.

Verify that the company has a policy governing the use of AI in software development.

C.

Install a private LLM to use on the internal network for source code optimization.

D.

Use open-source LLMs that undergo regular security reviews by the community.

Buy Now
Question # 38

Which of the following best describes journald?

Options:

A.

A system service that collects and stores logging data

B.

A feature that creates crash dumps in case of kernel failure

C.

A service responsible for keeping the filesystem journal

D.

A service responsible for writing audit records to a disk

Buy Now
Question # 39

A systems administrator needs to open the DNS TCP port on a Linux system from network 10.0.0.0/24. Which of the following commands should the administrator use for this task?

Options:

A.

ufw allow dns/tcp to 10.0.0.0/24

B.

ufw enable 53/tcp from 10.0.0.0/24

C.

ufw allow 53/tcp from 10.0.0.0/24

D.

ufw disable from 10.0.0.0/24

Buy Now
Question # 40

Which of the following describes how a user ' s public key is used during SSH authentication?

Options:

A.

The user ' s public key is used to hash the password during SSH authentication.

B.

The user ' s public key is verified against a list of authorized keys. If it is found, the user is allowed to log in.

C.

The user ' s public key is used instead of a password to allow server access.

D.

The user ' s public key is used to encrypt the communication between the client and the server.

Buy Now
Question # 41

A Linux administrator needs to analyze a compromised disk for traces of malware. To complete the analysis, the administrator wants to make an exact, block-level copy of the disk. Which of the following commands accomplishes this task?

Options:

A.

cp -rp /dev/sdc/* /tmp/image

B.

cpio -i /dev/sdc -ov /tmp/image

C.

tar cvzf /tmp/image /dev/sdc

D.

dd if=/dev/sdc of=/tmp/image bs=8192

Buy Now
Question # 42

A Linux administrator needs to change the server name to comptia1. Which of the following commands should the administrator use?

Options:

A.

export HOSTNAME=comptia1

B.

echo " comptia1 " > > /etc/resolv.conf

C.

hostnamectl set-hostname comptia1

D.

systemctl daemon-reload -H comptia1

Buy Now
Question # 43

The security manager at a company notifies a systems administrator of open vulnerabilities on the Linux system. The administrator receives the following information while logged in to the server:

$ date

Thu Jul 11 16:12:42 UTC 2024

$ getenforce

Enforcing

$ dnf history

ID | Command Line | Date and time | Action(s) | Altered

45 | update -y | 2023-07-09 | Update | 27

46 | install httpd | 2023-01-11 | Install | 9

47 | update -y | 2023-08-08 | Upgrade | 44

Which of the following is the most likely security concern?

Options:

A.

The server has not been updated in a year and should be patched.

B.

The system has httpd installed and needs to be removed.

C.

The system is configured to use UTC time and should be set to EDT.

D.

The system has SELinux set to enforcing and needs to be disabled.

Buy Now
Exam Code: XK0-006
Exam Name: CompTIA Linux+ V8 Exam
Last Update: May 4, 2026
Questions: 149
XK0-006 pdf

XK0-006 PDF

$25.5  $84.99
XK0-006 Engine

XK0-006 Testing Engine

$28.5  $94.99
XK0-006 PDF + Engine

XK0-006 PDF + Testing Engine

$40.5  $134.99