CompTIA XK0-005 Practice Exams
Last updated on Nov 16,2026- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Nov 16,2026
Users have been unable to reach www.comptia.org from a Linux server.
A systems administrator is troubleshooting the issue and does the following:

Based on the information above, which of the following is causing the issue?
- A . The name www.comptia.org does not point to a valid IP address.
- B . The server 192.168.168.53 is unreachable.
- C . No default route is set on the server.
- D . The network interface eth0 is disconnected.
A Linux administrator wants to set the SUID of a file named dev_team.text with 744 access rights.
Which of the following commands will achieve this goal?
- A . chmod 4744 dev_team.txt
- B . chmod 744 –setuid dev_team.txt
- C . chmod -c 744 dev_team.txt
- D . chmod -v 4744 –suid dev_team.txt
A Linux administrator needs to determine whether a hostname is in the DNS.
Which of the following would supply the information that is needed?
- A . nslookup
- B . rsynс
- C . netstat
- D . host
After installing a new version of a package, a systems administrator notices a new version of the corresponding, service file was Installed In order to use the new version of the, service file, which of the following commands must be Issued FIRST?
- A . systemct1 status
- B . systemct1 stop
- C . systemct1 reinstall
- D . systemct1 daemon-reload
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)
![]()
B)
![]()
C)
![]()
D)
![]()
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A new Linux systems administrator just generated a pair of SSH keys that should allow connection to the servers.
Which of the following commands can be used to copy a key file to remote servers? (Choose two.)
- A . wget
- B . ssh-keygen
- C . ssh-keyscan
- D . ssh-copy-id
- E . ftpd
- F . scp
A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems
…
Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem logs, "systemct1 reboot" to reboot, "systemct1 default" to try again to boot into default mode. Give root password for maintenance (or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?
- A . /etc/mtab
- B . /dev/sda
- C . /etc/fstab
- D . /ete/grub.conf
A Linux administrator reviews a set of log output files and needs to identify files that contain any occurrence of the word denied. All log files containing entries in uppercase or lowercase letters should be included in the list.
Which of the following commands should the administrator use to accomplish this task?
- A . find . -type f -print | xrags grep -ln denied
- B . find . -type f -print | xrags grep -nv denied
- C . find . -type f -print | xrags grep -wL denied
- D . find . -type f -print | xrags grep -li denied
A server is experiencing intermittent connection issues. Some connections to the Internet work as intended, but some fail as if there is no connectivity.
The systems administrator inspects the server configuration:

Which of the following is MOST likely the cause of the issue?
- A . An internal-only DNS server is configured.
- B . The IP netmask is wrong for ens3.
- C . Two default routes are configured.
- D . The ARP table contains incorrect entries.
A systems administrator has been unable to terminate a process.
Which of the following should the administrator use to forcibly stop the process?
- A . kill -1
- B . kill -3
- C . kill -15
- D . kill -HUP
- E . kill -TERM