CompTIA XK0-005 CompTIA Linux+ Exam Online Training
CompTIA XK0-005 Online Training
The questions for XK0-005 were last updated at Nov 22,2024.
- Exam Code: XK0-005
- Exam Name: CompTIA Linux+ Exam
- Certification Provider: CompTIA
- Latest update: Nov 22,2024
A systems administrator is troubleshooting connectivity issues and trying to find out why a Linux server is not able to reach other servers on the same subnet it is connected to.
When listing link parameters, the following is presented:
Based on the output above, which of following is the MOST probable cause of the issue?
- A . The address ac:00:11:22:33:cd is not a valid Ethernet address.
- B . The Ethernet broadcast address should be ac:00:11:22:33:ff instead.
- C . The network interface eth0 is using an old kernel module.
- D . The network interface cable is not connected to a switch.
A Linux administrator was asked to run a container with the httpd server inside. This container should be exposed at port 443 of a Linux host machine while it internally listens on port 8443.
Which of the following commands will accomplish this task?
- A . podman run -d -p 443:8443 httpd
- B . podman run -d -p 8443:443 httpd
- C . podman run Cd -e 443:8443 httpd
- D . podman exec -p 8443:443 httpd
A Linux administrator needs to analyze a failing application that is running inside a container.
Which of the following commands allows the Linux administrator to enter the running container and analyze the logs that are stored inside?
- A . docker run -ti app /bin/sh
- B . podman exec -ti app /bin/sh
- C . podman run -d app /bin/bash
- D . docker exec -d app /bin/bash
A systems administrator needs to clone the partition /dev/sdc1 to /dev/sdd1.
Which of the following commands will accomplish this task?
- A . tar -cvzf /dev/sdd1 /dev/sdc1
- B . rsync /dev/sdc1 /dev/sdd1
- C . dd if=/dev/sdc1 of=/dev/sdd1
- D . scp /dev/sdc1 /dev/sdd1
When trying to log in remotely to a server, a user receives the following message:
The server administrator is investigating the issue on the server and receives the following outputs:
Which of the following is causing the issue?
- A . The wrong permissions are on the user’s home directory.
- B . The account was locked out due to three failed logins.
- C . The user entered the wrong password.
- D . The user has the wrong shell assigned to the account.
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 systems administrator needs to reconfigure a Linux server to allow persistent IPv4 packet forwarding.
Which of the following commands is the correct way to accomplish this task?
- A . echo 1 > /proc/sys/net/ipv4/ipv_forward
- B . sysctl -w net.ipv4.ip_forward=1
- C . firewall-cmd –enable ipv4_forwarding
- D . systemct1 start ipv4_forwarding
A Linux administrator would like to use systemd to schedule a job to run every two hours. The administrator creates timer and service definitions and restarts the server to load these new configurations. After the restart, the administrator checks the log file and notices that the job is only running daily.
Which of the following is MOST likely causing the issue?
- A . The checkdiskspace.service is not running.
- B . The checkdiskspace.service needs to be enabled.
- C . The OnCalendar schedule is incorrect in the timer definition.
- D . The system-daemon services need to be reloaded.
An administrator deployed a Linux server that is running a web application on port 6379/tcp.
SELinux is in enforcing mode 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?
- A . semanage port -d -t http_port_t -p tcp 6379
- B . semanage port -a -t http_port_t -p tcp 6379
- C . semanage port -a http_port_t -p top 6379
- D . semanage port -l -t http_port_tcp 6379
A systems administrator created a web server for the company and is required to add a tag for the API so end users can connect.
Which of the following would the administrator do to complete this requirement?
- A . hostnamectl status –no-ask-password
- B . hostnamectl set-hostname "$(perl -le "print" "A" x 86)"
- C . hostnamectl set-hostname Comptia-WebNode -H [email protected]
- D . hostnamectl set-hostname Comptia-WebNode –transient