Leads4pass > CompTIA > CompTIA Certifications > XK0-005 > XK0-005 Online Practice Questions and Answers

XK0-005 Online Practice Questions and Answers

Questions 4

A systems administrator wants to back up the directory /data and all its contents to /backup/data on a remote server named remote. Which of the following commands will achieve the desired effect?

A. scp -p /data remote:/backup/data

B. ssh -i /remote:/backup/ /data

C. rsync -a /data remote:/backup/

D. cp -r /data /remote/backup/

Buy Now
Questions 5

An engineer needs to insert a character at the end of the current line in the vi text editor. Which of the following will allow the engineer to complete this task?

A. p

B. r

C. bb

D. A E. i

Buy Now
Questions 6

A Linux administrator found many containers in an exited state. Which of the following commands will allow the administrator to clean up the containers in an exited state?

A. docker rm -- all

B. docker rm $ (docker ps -aq)

C. docker images prune *

D. docker rm -- state exited

Buy Now
Questions 7

A systems administrator received a request to change a user's credentials. Which of the following commands will grant the request?

A. sudo passwd

B. sudo userde 1

C. sudo chage

D. sudo usermod

Buy Now
Questions 8

A Linux administrator rebooted a server. Users then reported some of their files were missing. After doing some troubleshooting, the administrator found one of the filesystems was missing. The filesystem was not listed in /etc/f stab and might have been mounted manually by someone prior to reboot. Which of the following would prevent this issue from reoccurring in the future?

A. Sync the mount units.

B. Mount the filesystem manually.

C. Create a mount unit and enable it to be started at boot.

D. Remount all the missing filesystems

Buy Now
Questions 9

A systems administrator wants to upgrade /bin/ someapp to a new version, but the administrator does not know the package name. Which of the following will show the RPM package name that provides that binary file?

A. rpm --qf /bin/ someapp

B. rpm --Vv / bin/ someapp

C. rpm - P / bin/ some app

D. rpm --i / bin/ someapp

Buy Now
Questions 10

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

The administrator runs grep db.example.com /etc/hosts and receives the following output:

Given this scenario, which of the following should the administrator do to address this issue?

A. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.

B. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.

C. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.

D. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

Buy Now
Questions 11

A user is attempting to log in to a Linux server that has Kerberos SSO ena-bled. Which of the following commands should the user run to authenticate and then show the ticket grants? (Select TWO).

A. kinit

B. klist

C. kexec

D. kioad

E. pkexec

F. realm

Buy Now
Questions 12

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

Buy Now
Questions 13

A Linux user reported the following error after trying to connect to the system remotely:

ssh: connect to host 10.0.1.10 port 22: Resource temporarily unavailable

The Linux systems administrator executed the following commands in the Linux system while trying to diagnose this issue:

Which of the following commands will resolve this issue?

A. firewall-cmd --zone=public --permanent --add-service=22

B. systemct1 enable firewalld; systemct1 restart firewalld

C. firewall-cmd --zone=public --permanent --add-service=ssh

D. firewall-cmd --zone=public --permanent --add-port=22/udp

Buy Now
Exam Code: XK0-005
Exam Name: CompTIA Linux+
Last Update: Jun 09, 2026
Questions: 476
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99