Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

Free CompTIA Linux+ Exam Practice Questions

Question # 121

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?

Options:

A.  

/etc/ssh/sshd_config

B.  

/etc/ssh/moduli

C.  

~/.ssh/config

D.  

~/.ssh/authorized_keys

Discussion 0
Question # 122

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?

Options:

A.  

Create a unit file in the /etc/default/ directory.systemct1 enable cleanupsystemct1 is-enabled cleanup

B.  

Create a unit file in the /etc/ske1/ directory.systemct1 enable cleanupsystemct1 is-enabled cleanup

C.  

Create a unit file in the /etc/systemd/system/ directory.systemct1 enable cleanupsystemct1 is-enabled cleanup

D.  

Create a unit file in the /etc/sysctl.d/ directory.systemct1 enable cleanupsystemct1 is-enabled cleanup

Discussion 0
Question # 123

A Linux administrator has set up a new DNS forwarder and is configuring all internal servers to use the new forwarder to look up external DNS requests. The administrator needs to modify the firewall on the server for the DNS forwarder to allow the internal servers to communicate to it and make the changes persistent between server reboots. Which of the following commands should be run on the DNS forwarder server to accomplish this task?

Options:

A.  

ufw allow out dns

B.  

systemct1 reload firewalld

C.  

iptables -A OUTPUT -p udp -ra udp -dport 53 -j ACCEPT

D.  

flrewall-cmd --zone-public --add-port-53/udp --permanent

Discussion 0
Question # 124

A Linux systems administrator needs to copy files and directories from Server A to Server

B.  

Which of the following commands can be used for this purpose? (Select TWO)

Options:

A.  

rsyslog

B.  

cp

C.  

rsync

D.  

reposync

E.  

scp

F.  

ssh

Discussion 0
Question # 125

A Linux administrator needs to expand a volume group using a new disk. Which of the following options presents the correct sequence of commands to accomplish the task?

Options:

A.  

partprobevgcreatelvextend

B.  

lvcreatefdiskpartprobe

C.  

fdiskpartprobemkfs

D.  

fdiskpvcreatevgextend

Discussion 0
Question # 126

A systems administrator is receiving tickets from users who cannot reach the application app that should be listening on port 9443/tcp on a Linux server.

To troubleshoot the issue, the systems administrator runs netstat and receives the following output:

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

Options:

A.  

The IP address 0.0.0.0 is not valid.

B.  

The application is listening on the loopback interface.

C.  

The application is listening on port 1234.

D.  

The application is not running.

Discussion 0
Question # 127

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?

Options:

A.  

The system is running out of swap space.

B.  

The CPU is overloaded.

C.  

The memory is exhausted.

D.  

The processes are paging.

Discussion 0
Question # 128

A Linux administrator has physically added a new RAID adapter to a system. Which of the following commands should the Linux administrator run to confirm that the device has been recognized? (Select TWO).

Options:

A.  

rmmod

B.  

Is -11 /etc

C.  

Ishw —class disk

D.  

pvdisplay

E.  

rmdir /dev

F.  

dmesg

Discussion 0
Question # 129

A user reported issues when trying to log in to a Linux server. The following outputs were received:

Given the outputs above. which of the following is the reason the user is una-ble to log in to the server?

Options:

A.  

User1 needs to set a long password.

B.  

User1 is in the incorrect group.

C.  

The user1 shell assignment incorrect.

D.  

The user1 password is expired.

Discussion 0
Question # 130

A Linux administrator has been tasked with installing the most recent versions of packages on a RPM-based OS. Which of the following commands will accomplish this task?

Options:

A.  

apt-get upgrade

B.  

rpm -a

C.  

yum updateinfo

D.  

dnf update

E.  

yum check-update

Discussion 0

XK0-005 PDF

XK0-005 PDF (Printable)
$54.25
$154.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$59.5
$169.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$74.55
$212.99

Free Exams Sample Questions