Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > CompTIA > CompTIA Certifications > XK0-004 > XK0-004 Online Practice Questions and Answers

XK0-004 Online Practice Questions and Answers

Questions 4

A systems administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role. Which of the following could be used to install more Linux servers with the same characteristics?

A. /etc/sysconfig/anaconda.cfg

B. /root/anaconda.auto

C. /root/anaconda-ks.cfg

D. /etc/sysconfig/installation.cfg

Buy Now

Correct Answer: C

Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/ installation_guide/sn-automating-installation

Questions 5

Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry:

joe:x:505:505::/home/joe:/bin/false

Which of the following commands should the administrator execute to resolve the problem?

A. usermod -s /bin/bash joe

B. passwd -u joe

C. useradd -s /bin/bash joe

D. chage -E -1 joe

Buy Now

Correct Answer: A

Questions 6

A user needs to access the GUI of an application on a remote console using encrypted x-forwarding. Which of the following BEST accomplishes this?

A. scp -X user@server "./GUIapplication.bin"

B. ssh user@server "./GUIapplication.bin"

C. ssh -X user@server "./GUIapplication.bin"

D. ssh-copy-id user@server "./GUIapplication.bin"

Buy Now

Correct Answer: C

Reference: https://docstore.mik.ua/orelly/networking_2ndEd/ssh/ch09_03.htm

Questions 7

A Linux administrator has downloaded the network-tools-12.1-17.i386.rpm package for installation to a local system. The administrator issues the rpm -ivh nerwork-cools-12.1-17.i386.rpm command to install the package. After attempting to use the newly installed package, the administrator realizes the package for the system's architecture was not installed correctly.

Which of the following commands should the administrator use to remove the package from the system?

A. rpm -e network-tools

B. rpm -U network-tools-12.1-17.i386.rpm

C. rpm -ivh network-tools-12.1-17.i686.rpm

D. rpm -r network-tools

Buy Now

Correct Answer: A

Questions 8

tracepath -n 192.168.1.100An administrator completed the configuration of the in-addr.arpa zone files for an organization. Which of the following commands should the administrator use to verify the configuration is working as expected?

A. ping -n 192.168.1.100

B. host in-add.arpa

C. dig -x 192.168.1.100

D. nslookup in-addr.arpa

E. tracepath -n 192.168.1.100

Buy Now

Correct Answer: C

Questions 9

A file server is sharing a directory called /share between team members inside a company. The fileshare needs to be moved from serverA to /newshare located on serverB with all permissions and attributes preserved. Which of the following commands would BEST achieve this task?

A. rsync -aHAX /share/* serverB:/newshare

B. dd if=/share/* of=serverB:/newshare

C. tar -cvf /share/* serverB:/newshare

D. mirrorlv /share/* serverB:/newshare

Buy Now

Correct Answer: C

Questions 10

A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:

1.

Add localhost with loopback address.

2.

Add 192.168.192.12/24 to resolve to database01.comptia.org

Given this scenario, which of the following steps should the administrator perform to accomplish these tasks?

A. Open the /etc/nsswitch.conf file with a file editor and add the following lines:

127.0.0.1 localhost

192.168.192.12 database01.comptia.org

B. Open the /etc/dhcpd.conf file with a file editor and add the following lines:

127.0.0.1 localhost

192.168.192.12 database01.comptia.org

C. Open the /etc/hosts file with a file editor and add the following lines:

127.0.0.1 localhost

192.168.192.12 database01.comptia.org

D. Open the /etc/network file with a file editor and add the following lines:

127.0.0.1 localhost

192.168.192.12 database01.comptia.org

Buy Now

Correct Answer: C

Questions 11

A junior systems administrator is diagnosing an issue with latency. The administrator issues the command mtr www.comptia.org at a terminal and receives the following output:

Given this scenario and the output, which of the following should be reported to the network team for investigation? (Choose two.)

A. Host 1 is set to filter ICMP reply packets.

B. Host 1 is set to filter ICMP echo packets.

C. Host 2 is experiencing high packet loss, indicating the link is overloaded.

D. Host 2 is experiencing low bandwidth, indicating the ISP is blocking traffic.

E. Host 3 is set to filter ICMP reply packets.

F. Host 3 is set to filter ICMP echo packets.

Buy Now

Correct Answer: CF

Questions 12

A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login. Which of the following is the BEST action the user can take to ensure the command is always available?

A. echo "alias dir=ls -la" > /etc/profile

B. echo "alias dir=ls -la" >> /etc/skel

C. echo "alias dir=ls -la" >> ~/.profile

D. echo "alias dir=ls -la" > ~/.bashrc

Buy Now

Correct Answer: C

Questions 13

A server administrator notices that one of the servers cannot connect to its gateway, which has the IP 10.10.10.1.

Which of the following commands should the administrator execute to determine the default gateway of the server?

A. route -n

B. ip a default-gw

C. ifconfig

D. nslookup

Buy Now

Correct Answer: A

Exam Code: XK0-004
Exam Name: CompTIA Linux+ Certification
Last Update: Aug 23, 2023
Questions: 516

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2025 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.