CompTIA Linux+ Certification - XK0-005 Exam Practice Test
A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?
Correct Answer: A
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A technician just fixed a few issues in some code and is ready to deploy the code into production.
Which of the following steps should the technician take next?
Which of the following steps should the technician take next?
Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?
Which of the following commands would BEST assists the administrator in identifying the problem?
Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
An administrator is trying to access a server in a cloud via SSH but is unable to log in. The administrator determines the company's IP address has been blocklisted on the server.
Which of the following should the administrator do to prevent being blocked in the future?
Which of the following should the administrator do to prevent being blocked in the future?
Correct Answer: A
Vote an answer
An administrator deployed a Linux server that is running a web application on port 6379/tcp.
- SELinux is in enforcingmode 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?
- SELinux is in enforcingmode 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?
Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A cloud engineer needs to launch a container named web-01 in background mode. Which of the following commands will accomplish this task''
Correct Answer: A
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Which of the following are Linux desktop managers? (Choose two.)
Correct Answer: B,E
Vote an answer
A systems administrator created a new directory with specific permissions. Given the following output:
# file: comptia
# owner: root
* group: root
user::rwx
group::r-x
other::---
default:user::rwx
default:group::r-x
default:group:wheel:rwx
default:mask::rwx
default:other::---
Which of the following permissions are enforced on /comptia?
# file: comptia
# owner: root
* group: root
user::rwx
group::r-x
other::---
default:user::rwx
default:group::r-x
default:group:wheel:rwx
default:mask::rwx
default:other::---
Which of the following permissions are enforced on /comptia?
Correct Answer: D
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A Linux administrator is tasked with moving files in a database server. The administrator must not overwrite any existing files. Which of the following commands would indicate that the file already exists?
Correct Answer: A
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A newly created container has been unable to start properly, and a Linux administrator is analyzing the cause of the failure.
Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
Which of the following will allow the administrator to determine the FIRST command that is executed inside the container right after it starts?
Correct Answer: A
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
An administrator is installing a Linux VM on a personal hypervisor. The administrator wants to have the VM's IP address on the same network as the hypervisor host so the VM has the same network properties as the physical interface of the host. To which of the following should the administrator set the network properties?
Correct Answer: A
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
Users are reporting collaborate.company.comis inaccessible from the user VLAN, but there is no issue connecting to the system's web page from the DMZ. Given the following outputs from commands run on the system:

Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue?

Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue?
Correct Answer: B
Vote an answer
A Linux administrator needs to take stock of USB devices attached to the system.
Which of the following commands would be BEST to complete this task?
Which of the following commands would be BEST to complete this task?
Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).
A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.
Which of the following scripts would BEST accomplish this task?
Which of the following scripts would BEST accomplish this task?
Correct Answer: C
Vote an answer
Explanation: Only visible for Fast2test members. You can sign-up / login (it's free).