
CompTIA Linux+ Certification - XK0-006 Exam Questions
QUESTION NO: 1
A Linux administrator tries to install Ansible in a Linux environment. One of the steps is to change the owner and the group of the directory /opt/Ansible and its contents. Which of the following commands will accomplish this task?
A Linux administrator tries to install Ansible in a Linux environment. One of the steps is to change the owner and the group of the directory /opt/Ansible and its contents. Which of the following commands will accomplish this task?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 2
Which of the following is an example of responsible use of publicly available generative AI by a systems administrator?
Which of the following is an example of responsible use of publicly available generative AI by a systems administrator?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 3
A Linux user needs to authenticate to a Windows Active Directory domain. Which of the following configuration files contains the domain configuration details?
A Linux user needs to authenticate to a Windows Active Directory domain. Which of the following configuration files contains the domain configuration details?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 4
An administrator adds new DNS servers to the network environment. Which of the following files should the administrator modify?
An administrator adds new DNS servers to the network environment. Which of the following files should the administrator modify?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 5
Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands:

Which of the following is the cause of the issue?
Users cannot access a server after it has been restarted. At the server console, the administrator runs the following commands:

Which of the following is the cause of the issue?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 6
Application owners are reporting that their application stops responding after several days of running, and they need to restart it. A Linux administrator obtains the following details from the dmesgcommand:

The application owners mentioned that resources to the system have boon increased, and the error takes longer to appear. Which of the following best describes the reason the process is being terminated by OOM?
Application owners are reporting that their application stops responding after several days of running, and they need to restart it. A Linux administrator obtains the following details from the dmesgcommand:

The application owners mentioned that resources to the system have boon increased, and the error takes longer to appear. Which of the following best describes the reason the process is being terminated by OOM?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 7
SIMULATION 3
You are a systems administrator and have created an uncompressed backup of the application directory. Several hours later, you must restore the application from backup.
INSTRUCTIONS
Within each tab, click on an object to form the appropriate command used to create the backup and restore the application.
Command objects may only be used once, but the spacebar object may be used multiple times.
Not all objects will be used. Click the arrow to remove any unwanted objects from your command.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


SIMULATION 3
You are a systems administrator and have created an uncompressed backup of the application directory. Several hours later, you must restore the application from backup.
INSTRUCTIONS
Within each tab, click on an object to form the appropriate command used to create the backup and restore the application.
Command objects may only be used once, but the spacebar object may be used multiple times.
Not all objects will be used. Click the arrow to remove any unwanted objects from your command.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


Correct Answer:


-cvf creates (-c) a verbose (-v) archive file (-f) named /backups/application.tar.
-C /opt/ application changes to /opt/ so only the relative application directory is saved, avoiding absolute paths.
-xvf extracts (-x) the same archive, and -C /opt/ restores the contents back into the original location.
QUESTION NO: 8
Which of the following describes how a user's public key is used during SSH authentication?
Which of the following describes how a user's public key is used during SSH authentication?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 9
Which of the following Linux directories contains documentation for installed software packages and shareable system files?
Which of the following Linux directories contains documentation for installed software packages and shareable system files?
Correct Answer: C
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 10
SIMULATION 4
Joe, a user, has taken a position previously held by Ann. As a systems administrator, you need to archive all the files from Ann's home directory and extract them into Joe's home directory.
INSTRUCTIONS
Within each tab, click on an object to form the appropriate commands. Command objects may only be used once, but the spacebar object may be used multiple times. Not all objects will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


SIMULATION 4
Joe, a user, has taken a position previously held by Ann. As a systems administrator, you need to archive all the files from Ann's home directory and extract them into Joe's home directory.
INSTRUCTIONS
Within each tab, click on an object to form the appropriate commands. Command objects may only be used once, but the spacebar object may be used multiple times. Not all objects will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.


Correct Answer:
Archive tab:
tar -cvf /tmp/ann.tar -C /home ann
Extract tab:
tar -xvf /tmp/ann.tar -C /home/joe
tar -cvf /tmp/ann.tar -C /home ann
Extract tab:
tar -xvf /tmp/ann.tar -C /home/joe
QUESTION NO: 11
An administrator thinks that the user Joe may be running an unauthorized process on a Linux server. Which of the following commands should the administrator run to confirm this idea?
An administrator thinks that the user Joe may be running an unauthorized process on a Linux server. Which of the following commands should the administrator run to confirm this idea?
Correct Answer: B
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 12
A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels.
Which of the following should the administrator do?
A systems administrator manages multiple Linux servers and needs to set up a reliable and secure way to handle the complexity of managing event records on the OS and application levels.
Which of the following should the administrator do?
Correct Answer: C
QUESTION NO: 13
Following the completion of monthly server patching, a Linux administrator receives reports that a critical application is not functioning. Which of the following commands should help the administrator determine which packages were installed?
Following the completion of monthly server patching, a Linux administrator receives reports that a critical application is not functioning. Which of the following commands should help the administrator determine which packages were installed?
Correct Answer: A
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).
QUESTION NO: 14
A systems administrator is experiencing local network connectivity issues. The administrator gathers the following outputs:

Which of the following conclusions can the systems administrator make?
A systems administrator is experiencing local network connectivity issues. The administrator gathers the following outputs:

Which of the following conclusions can the systems administrator make?
Correct Answer: D
Explanation: Only visible for Pass4Test members. You can sign-up / login (it's free).




