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 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
Some servers in an organization have been compromised. Users are unable to access to the organization’s web page and other services.
While reviewing the system log, a systems administrator notices messages from the kernel regarding firewall rules:
Which of the following commands will remediate and help resolve the issue?
A)
B)
C)
D)
- A . Option A
- B . Option B
- C . Option C
- D . Option D
A junior administrator is trying to set up a passwordless SSH connection to one of the servers. The administrator follows the instructions and puts the key in the authorized_key file at the server, but the administrator is still asked to provide a password during the connection.
Given the following output:
Which of the following commands would resolve the issue and allow an SSH connection to be established without a password?
- A . restorecon -rv .ssh/authorized_key
- B . mv .ssh/authorized_key .ssh/authorized_keys
- C . systemct1 restart sshd.service
- D . chmod 600 mv .ssh/authorized_key
A Linux administrator needs to resolve a service that has failed to start.
The administrator runs the following command:
The following output is returned
Which of the following is MOST likely the issue?
- A . The service does not have permissions to read write the startupfile.
- B . The service startupfile size cannot be 81k.
- C . The service startupfile cannot be owned by root.
- D . The service startupfile should not be owned by the root group.
A Linux engineer is setting the sticky bit on a directory called devops with 755 file permission.
Which of the following commands will accomplish this task?
- A . chown -s 755 devops
- B . chown 1755 devops
- C . chmod -s 755 devops
- D . chmod 1755 devops
A Linux administrator booted up the server and was presented with a non-GUI terminal. The administrator ran the command systemct1 isolate graphical.target and rebooted the system by running systemct1 reboot, which fixed the issue. However, the next day the administrator was presented again with a non-GUI terminal.
Which of the following is the issue?
- A . The administrator did not reboot the server properly.
- B . The administrator did not set the default target to basic.target.
- C . The administrator did not set the default target to graphical.target.
- D . The administrator did not shut down the server properly.
Users report that connections to a MariaDB service are being closed unexpectedly.
A systems administrator troubleshoots the issue and finds the following message in /var/log/messages:
Which of the following is causing the connection issue?
- A . The process mysqld is using too many semaphores.
- B . The server is running out of file descriptors.
- C . Something is starving the server resources.
- D . The amount of RAM allocated to the server is too high.
A developer is trying to install an application remotely that requires a graphical interface for installation. The developer requested assistance to set up the necessary environment variables along with X11 forwarding in SSH.
Which of the following environment variables must be set in remote shell in order to launch the graphical interface?
- A . $RHOST
- B . SETENV
- C . $SHELL
- D . $DISPLAY
A systems administrator is implementing a new service task with systems at startup and needs to execute a script entitled test.sh with the following content:
The administrator tries to run the script after making it executable with chmod +x; however, the script will not run.
Which of the following should the administrator do to address this issue? (Choose two.)
- A . Add #!/bin/bash to the bottom of the script.
- B . Create a unit file for the new service in /etc/systemd/system/ with the name helpme.service in the location.
- C . Add #!//bin/bash to the top of the script.
- D . Restart the computer to enable the new service.
- E . Create a unit file for the new service in /etc/init.d with the name helpme.service in the location.
- F . Shut down the computer to enable the new service.
A Linux administrator needs to correct the permissions of a log file on the server.
Which of the following commands should be used to set filename.log permissions to -rwxr―r–. ?
- A . chmod 755 filename.log
- B . chmod 640 filename.log
- C . chmod 740 filename.log
- D . chmod 744 filename.log