Limited-Time Offer: Enjoy 50% Savings! - Ends In 0d 00h 00m 00s Coupon code: 50OFF
Welcome to QA4Exam
Logo

- Trusted Worldwide Questions & Answers

Most Recent CompTIA XK0-005 Exam Dumps

 

Prepare for the CompTIA Linux+ Certification Exam exam with our extensive collection of questions and answers. These practice Q&A are updated according to the latest syllabus, providing you with the tools needed to review and test your knowledge.

QA4Exam focus on the latest syllabus and exam objectives, our practice Q&A are designed to help you identify key topics and solidify your understanding. By focusing on the core curriculum, These Questions & Answers helps you cover all the essential topics, ensuring you're well-prepared for every section of the exam. Each question comes with a detailed explanation, offering valuable insights and helping you to learn from your mistakes. Whether you're looking to assess your progress or dive deeper into complex topics, our updated Q&A will provide the support you need to confidently approach the CompTIA XK0-005 exam and achieve success.

The questions for XK0-005 were last updated on Jun 16, 2025.
  • Viewing page 1 out of 93 pages.
  • Viewing questions 1-5 out of 463 questions
Get All 463 Questions & Answers
Question No. 1

A Linux administrator is attempting to capture all network traffic coming to the server from the 10.0.6.5 IP address. Which of the following commands should the administrator run on the server to achieve the goal?

Show Answer Hide Answer
Correct Answer: C

Question No. 2

A Linux administrator is scheduling a system job that runs a script to check available disk space every hour. The Linux administrator does not want users to be able to start the job. Given the following:

The Linux administrator attempts to start the timer service but receives the following error message:

Which of the following is MOST likely the reason the timer will not start?

Show Answer Hide Answer
Correct Answer: C

The most likely reason the timer will not start is that the checkdiskspace.timer should be configured to allow manual starts. By default, systemd timers do not allow manual activation via systemct1 start, unless they have RefuseManualStart=no in their [Unit] section. This option prevents users from accidentally starting timers that are meant to be controlled by other mechanisms, such as calendar events or dependencies. To enable manual starts for checkdiskspace.timer, the administrator should add RefuseManualStart=no to its [Unit] section and reload systemd.

The other options are not correct reasons for the timer not starting. The checkdiskspace.timer unit does not need to be enabled via systemct1 enable, because enabling a timer only makes it start automatically at boot time or after a system reload, but does not affect manual activation. The timers.target does not need to be reloaded to get the new configuration, because reloading a target only affects units that have a dependency on it, but does not affect manual activation. The checkdiskspace.timer does not need to be started using the sudo command, because the administrator is already running systemct1 as root, as indicated by the # prompt.Reference:systemd.timer(5) - Linux manual page;systemct1(1) - Linux manual page


Question No. 3

A Linux administrator would like to measure possible packet loss between a workstation and a remote web application that is running on port 443. Which of the following would be the best command for the administrator to use to display this information?

Show Answer Hide Answer
Correct Answer: C

mtr (My Traceroute) is a network diagnostic tool that combines the functionality of traceroute and ping. It shows real-time packet loss and latency on a hop-by-hop basis. The -T option uses TCP instead of ICMP, and the -P 443 option specifies the remote port. This provides the best method for checking packet loss on port 443.


Question No. 4

A user generated a pair of private-public keys on a workstation. Which of the following commands will allow the user to upload the public key to a remote server and enable passwordless login?

Show Answer Hide Answer
Correct Answer: D

The commandssh-copy-id user@serverwill allow the user to upload the public key to a remote server and enable passwordless login. Thessh-copy-idcommand is a tool for copying the public key to a remote server and appending it to theauthorized_keysfile, which is used for public key authentication. The command will also set the appropriate permissions on the remote server to ensure the security of the key. The commandssh-copy-id user@serverwill copy the public key of the user to the server and allow the user to log in without a password. This is the correct command to use for this task. The other options are incorrect because they either do not copy the public key (scp,rsync, orssh-add) or do not use the correct syntax (scp ~/.ssh/id_rsa user@server:~/instead ofscp ~/.ssh/id_rsa.pub user@server:~/orrsync ~ /.ssh/ user@server:~/instead ofrsync ~/.ssh/id_rsa.pub user@server:~/).Reference:CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 13: Managing Network Services, page 410.


Question No. 5

A Linux engineer needs to block an incoming connection from the IP address 2.2.2.2 to a secure shell server and ensure the originating IP address receives a response that a firewall is blocking the connection. Which of the following commands can be used to accomplish this task?

Show Answer Hide Answer
Correct Answer: C

The REJECT target sends back an error packet to the source IP address, indicating that the connection is refused by the firewall. This is different from the DROP target, which silently discards the packet without any response. The RETURN target returns to the previous chain, which may or may not accept the connection. The QUEUE target passes the packet to a userspace application for further processing, which is not the desired outcome in this case.

Reference

CompTIA Linux+ (XK0-005) Certification Study Guide, page 316

iptables - ssh - access from specific ip only - Server Fault, answer by Eugene Ionichev


Unlock All Questions for CompTIA XK0-005 Exam

Full Exam Access, Actual Exam Questions, Validated Answers, Anytime Anywhere, No Download Limits, No Practice Limits

Get All 463 Questions & Answers