CompTIA XK0-005 CompTIA Linux+ Exam Online Training
CompTIA XK0-005 Online Training
The questions for XK0-005 were last updated at Nov 23,2024.
- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
A Linux administrator was tasked with deleting all files and directories with names that are contained in the sobelete.txt file.
Which of the following commands will accomplish this task?
- A . xargs -f cat toDelete.txt -rm
- B . rm -d -r -f toDelete.txt
- C . cat toDelete.txt | rm -frd
- D . cat toDelete.txt | xargs rm -rf
A Linux administrator is troubleshooting the root cause of a high CPU load and average.
Which of the following commands will permanently resolve the issue?
- A . renice -n -20 6295
- B . pstree -p 6295
- C . iostat -cy 1 5
- D . kill -9 6295
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 developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator.
The following output was received:
Which of the following commands can be used to resolve this issue?
- A . chgrp -R 755 data/
- B . chmod -R 777 data/
- C . chattr -R -i data/
- D . chown -R data/
A Linux administrator needs to ensure that Java 7 and Java 8 are both locally available for developers to use when deploying containers. Currently only Java 8 is available.
Which of the following commands should the administrator run to ensure both versions are available?
- A . docker image load java:7
- B . docker image pull java:7
- C . docker image import java:7
- D . docker image build java:7
A cloud engineer is installing packages during VM provisioning.
Which of the following should the engineer use to accomplish this task?
- A . Cloud-init
- B . Bash
- C . Docker
- D . Sidecar
A systems administrator is tasked with creating a cloud-based server with a public IP address.
Which of the following technologies did the systems administrator use to complete this task?
- A . Puppet
- B . Git
- C . Ansible
- D . Terraform
A Linux systems administrator is setting up a new web server and getting 404 – NOT FOUND errors while trying to access the web server pages from the browser.
While working on the diagnosis of this issue, the Linux systems administrator executes the following commands:
Which of the following commands will BEST resolve this issue?
- A . sed -i ‘s/SELINUX=enforcing/SELINUX=disabled/’ /etc/selinux/config
- B . restorecon -R -v /var/www/html
- C . setenforce 0
- D . setsebool -P httpd_can_network_connect_db on
To harden one of the servers, an administrator needs to remove the possibility of remote administrative login via the SSH service.
Which of the following should the administrator do?
- A . Add the line DenyUsers root to the /etc/hosts.deny file.
- B . Set PermitRootLogin to no in the /etc/ssh/sshd_config file.
- C . Add the line account required pam_nologin. so to the /etc/pam.d/sshd file.
- D . Set PubKeyAuthentication to no in the /etc/ssh/ssh_config file.
Which of the following is a function of a bootloader?
- A . It initializes all the devices that are required to load the OS.
- B . It mounts the root filesystem that is required to load the OS.
- C . It helps to load the different kernels to initiate the OS startup process.
- D . It triggers the start of all the system services.