CompTIA Linux+ XK0-005 – Question120

A cloud engineer needs to check the link status of a network interface named eth1 in a Linux server. Which of the following commands can help to achieve the goal?

A.
ifconfig hw eth1
B. netstat -r eth1
C. ss -ti eth1
D. ip link show eth1

Correct Answer: D

CompTIA Linux+ XK0-005 – Question119

A Linux administrator modified the SSH configuration file. Which of the following commands should be used to apply the configuration changes?

A.
systemctl stop sshd
B. systemctl mask sshd
C. systemctl reload sshd
D. systemctl start sshd

Correct Answer: C

CompTIA Linux+ XK0-005 – Question118

A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?

A.
/etc/ssh/sshd_config
B. /etc/ssh/moduli
C. ~/.ssh/config
D. ~/.ssh/authorized_keys

Correct Answer: C

CompTIA Linux+ XK0-005 – Question117

A Linux system is failing to boot. The following error is displayed in the serial console:
[[1;33mDEPEND[Om] Dependency failed for /data.
[[1;33mDEPEND[Om] Dependency failed for Local File Systems

Welcome to emergency mode! After logging in, type "journalctl -xb" to viewsystem
logs, "systemctl reboot" to reboot, "systemctl default" to try again to boot into
default mode.
Give root password for maintenance
(or type Control-D to continue}
Which of the following files will need to be modified for this server to be able to boot again?

A.
/etc/mtab
B. /dev/sda
C. /etc/fstab
D. /ete/grub.conf

Correct Answer: C

CompTIA Linux+ XK0-005 – Question116

A Linux engineer needs to create a custom script, cleanup.sh, to run at boot as part of the system services.
Which of the following processes would accomplish this task?

A.
Create a unit file in the /etc/default/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
B. Create a unit file in the /etc/ske1/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
C. Create a unit file in the /etc/systemd/system/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup
D. Create a unit file in the /etc/sysctl.d/ directory.
systemctl enable cleanup
systemctl is-enabled cleanup

Correct Answer: C

CompTIA Linux+ XK0-005 – Question115

Employees in the finance department are having trouble accessing the file /opt/work/file. All IT employees can read and write the file. Systems administrator reviews the following output:

Which of the following commands would permanently fix the access issue while limiting access to IT and finance department employees?

A.
chattr +i file
B. chown it:finance file
C. chmod 666 file
D. setfacl -m g:finance:rw file

Correct Answer: D

CompTIA Linux+ XK0-005 – Question114

A Linux administrator was notified that a virtual server has an I/O bottleneck. The Linux administrator analyzes the following output:

Given there is a single CPU in the sever, which of the following is causing the slowness?

A.
The system is running out of swap space.
B. The CPU is overloaded.
C. The memory is exhausted.
D. The processes are paging.

Correct Answer: B

CompTIA Linux+ XK0-005 – Question113

A systems technician is working on deploying several microservices to various RPM-based systems, some of which could run up to two hours. Which of the following commands will allow the technician to execute those services and continue deploying other microservices within the same terminal section?

A.
gedit & disown
B. kill 9 %1
C. fg %1
D. bg %1 job name

Correct Answer: A

CompTIA Linux+ XK0-005 – Question112

Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:

Based on the information above, which of the following is causing the issue?

A.
The name www.comptia.org does not point to a valid IP address.
B. The server 192.168.168.53 is unreachable.
C. No default route is set on the server.
D. The network interface eth0 is disconnected.

Correct Answer: C

CompTIA Linux+ XK0-005 – Question111

A systems administrator is troubleshooting a connectivity issue pertaining to access to a system named db.example.com. The system IP address should be 192.168.20.88. The administrator issues the dig command and receives the following output:

The administrator runs grep db.example.com /etc/hosts and receives the following output:

Given this scenario, which of the following should the administrator do to address this issue?

A.
Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.89.
B. Modify the /etc/network file and change the db.example.com entry to 192.168.20.88.
C. Modify the /etc/network file and change the db.example.com entry to 192.168.20.89.
D. Modify the /etc/hosts file and change the db.example.com entry to 192.168.20.88.

Correct Answer: A