Pass4itsure > CompTIA > Linux+ > XK0-005 > XK0-005 Online Practice Questions and Answers

XK0-005 Online Practice Questions and Answers

Questions 4

A junior administrator is setting up a new Linux server that is intended to be used as a router at a remote site. Which of the following parameters will accomplish this goal?

A. C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

B. C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

C. C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

D. C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

Buy Now
Questions 5

A Linux administrator needs to create an image named sda.img from the sda disk and store it in the /tmp directory. Which of the following commands should be used to accomplish this task?

A. dd of=/dev/sda if=/tmp/sda.img

B. dd if=/dev/sda of=/tmp/sda.img

C. dd --if=/dev/sda --of=/tmp/sda.img

D. dd --of=/dev/sda --if=/tmp/sda.img

Buy Now
Questions 6

An administrator is trying to diagnose a performance issue and is reviewing the following output: System Properties: CPU: 4 vCPU Memory: 40GB Disk maximum IOPS: 690 Disk maximum throughput: 44Mbps | 44000Kbps Based on the above output, which of the following BEST describes the root cause?

A. The system has reached its maximum IOPS, causing the system to be slow.

B. The system has reached its maximum permitted throughput, therefore iowait is increasing.

C. The system is mostly idle, therefore the iowait is high.

D. The system has a partitioned disk, which causes the IOPS to be doubled.

Buy Now
Questions 7

Rugged appliances are small appliances with ruggedized hardware and like Quantum Spark appliance they use which operating system?

A. Centos Linux

B. Gaia embedded

C. Gaia

D. Red Hat Enterprise Linux version 5

Buy Now
Questions 8

An administrator deployed a Linux server that is running a web application on port 6379/tcp.

SELinux is in enforcing mode based on organization policies.

The port is open on the firewall.

Users who are trying to connect to a local instance of the web application receive Error 13, Permission denied.

The administrator ran some commands that resulted in the following output:

Which of the following commands should be used to resolve the issue?

A. semanage port -d -t http_port_t -p tcp 6379

B. semanage port -a -t http_port_t -p tcp 6379

C. semanage port -a http_port_t -p top 6379

D. semanage port -l -t http_port_tcp 6379

Buy Now
Questions 9

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?

A. scp ~/.ssh/id_rsa user@server:~/

B. rsync ~ /.ssh/ user@server:~/

C. ssh-add user server

D. ssh-copy-id user@server

Buy Now
Questions 10

A user is asking the systems administrator for assistance with writing a script to verify whether a file exists. Given the following:

Which of the following commands should replace the string?

A. if [ -f "$filename" ]; then

B. if [ -d "$filename" ]; then

C. if [ -f "$filename" ] then

D. if [ -f "$filename" ]; while

Buy Now
Questions 11

A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content:

The administrator tries to run the script after making it executable with chmod +x; however, the script will not run. Which of the following should the administrator do to address this issue? (Choose two.)

A. Add #!/bin/bash to the bottom of the script.

B. Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.

C. Add #!//bin/bash to the top of the script.

D. Restart the computer to enable the new service.

E. Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.

F. Shut down the computer to enable the new service.

Buy Now
Questions 12

A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect. Which of the following would the administrator do to complete this requirement?

A. hostnamectl status --no-ask-password

B. hostnamectl set-hostname "$(perl -le "print" "A" x 86)"

C. hostnamectl set-hostname Comptia-WebNode -H [email protected]

D. hostnamectl set-hostname Comptia-WebNode --transient

Buy Now
Questions 13

Which of the following directories is the mount point in a UEFI system?

A. /sys/efi

B. /boot/efi

C. /efi

D. /etc/efi

Buy Now
Exam Code: XK0-005
Exam Name: CompTIA Linux+ Certification Exam
Last Update: May 02, 2024
Questions: 285
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$45.99

VCE

$49.99

PDF + VCE

$59.99