Pass the CompTIA Linux+ XK0-005 Questions and answers with CertsForce

Viewing page 2 out of 15 pages
Viewing questions 11-20 out of questions
Questions # 11:

As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:

Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.

INSTRUCTIONS

Fill the blanks to build a script that performs the actual compression of rotated log files.

If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.

Question # 11


Expert Solution
Questions # 12:

A systems administrator wants to test the route between IP address 10.0.2.15 and IP address 192.168.1.40. Which of the following commands will accomplish this task?

Options:

A.

route -e get to 192.168.1.40 from 10.0.2.15


B.

ip route get 192.163.1.40 from 10.0.2.15


C.

ip route 192.169.1.40 to 10.0.2.15


D.

route -n 192.168.1.40 from 10.0.2.15


Expert Solution
Questions # 13:

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?

Options:

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.


Expert Solution
Questions # 14:

A junior systems administrator has just generated public and private authentication keys for passwordless login. Which of the following files will be moved to the remote servers?

Options:

A.

id_dsa.pem


B.

id_rsa


C.

id_ecdsa


D.

id_rsa.pub


Expert Solution
Questions # 15:

Which of the following files holds the system configuration for journal when running systemd?

Options:

A.

/etc/systemd/journald.conf


B.

/etc/systemd/systemd-journalctl.conf


C.

/usr/lib/systemd/journalctl.conf


D.

/etc/systemd/systemd-journald.conf


Expert Solution
Questions # 16:

A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?

Options:

A.

iptables -f filter -I INPUT -p tcp --dport 4000:5000 -A ACCEPT


B.

iptables -t filter -A INPUT -p tcp --dport 4000:5000 -j ACCEPT


C.

iptables filter -A INPUT -p tcp --dport 4000:5000 -D ACCEPT


D.

iptables filter -S INPUT -p tcp --dport 4000:5000 -A ACCEPT


Expert Solution
Questions # 17:

A systems administrator made some unapproved changes prior to leaving the company. The newly hired administrator has been tasked with revealing the system to a compliant state. Which of the following commands will list and remove the correspondent packages?

Options:

A.

dnf list and dnf remove last


B.

dnf remove and dnf check


C.

dnf info and dnf upgrade


D.

dnf history and dnf history undo last


Expert Solution
Questions # 18:

A Linux system fails to start and delivers the following error message:

Which of the following commands can be used to address this issue?

Options:

A.

fsck.ext4 /dev/sda1


B.

partprobe /dev/sda1


C.

fdisk /dev/sda1


D.

mkfs.ext4 /dev/sda1


Expert Solution
Questions # 19:

A Linux administrator is tasked with adding users to the system. However, the administrator wants to ensure the users’ access will be disabled once the project is over. The expiration date should be 2021-09-30. Which of the following commands will accomplish this task?

Options:

A.

sudo useradd -e 2021-09-30 Project_user


B.

sudo useradd -c 2021-09-30 Project_user


C.

sudo modinfo -F 2021-09-30 Project_uses


D.

sudo useradd -m -d 2021-09-30 Project_user


Expert Solution
Questions # 20:

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

Options:

A.

unzip -v


B.

bzip2 -z


C.

gzip


D.

funzip


Expert Solution
Viewing page 2 out of 15 pages
Viewing questions 11-20 out of questions