Logo

Win IT Exam with Last Dumps 2023


CompTIA XK0-004 Exam

Page 17/18
Viewing Questions 161 170 out of 180 Questions
94.44%

Question 161
An administrator needs to create a file named hello in the home directory that contains the following text: it's me!Which of the following commands would accomplish this goal?
A. mkdir ~/hello touch ~/"it's me!"
B. touch ~/hello echo "it's me!" > ~/hello
C. mv ~/hello cp "it's me!" > ~/hello
D. type ~/hello print "it's me!"

Question 162
Which of the following commands will let a Linux user know the PCI devices that are installed in the system?
A. cat /proc/devices/pci
B. lspci
C. lsdev
D. cat /proc/sys/dev

Question 163
A Linux administrator is updating iptables rules and is given the following tasks:
- Output a list of iptables rules.
- Remove all iptables rules.
Which of the following actions should be performed from the terminal console to accomplish these tasks? (Choose two.)
A. iptables -F
B. iptables -L
C. iptables -I
D. iptables -C
E. iptables -A
F. iptables -N

Question 164
A junior Linux administrator is performing version control on a Git repository. The administrator is given a list of tasks to complete:
- List the currently installed Git release.
- Show the status reporting of the clone.
Which of the following commands would allow the administrator to complete these tasks? (Choose two.)
A. git clone --progress
B. git clone --recursive
C. git --help
D. git clone --dissociate
E. git --version
F. git clone --shared

Question 165
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked.
Which of the following rules should be added in the firewall to allow this type of connection?
A. firewall-cmd --zone=public --add-port=443/tcp --permanent
B. firewall-cmd --zone=internal --add-port=80/tcp --permanent
C. firewall-cmd --zone=public --add-port=80/tcp --permanent
D. firewall-cmd --zone=internal --add-port=443/tcp --permanent

Question 166
A Linux administrator attempts to install the package newprogram.x86_64.rpm using a package manager. The administrator receives a warning indicating the command that was run was using a deprecated package manager. Which of the following commands should the administrator use to avoid the warning and install the newprogram.x86_64.rpm program?
A. # dnf install newprogram.x86_64.rpm
B. # rpm -e newprogram.x86_64.rpm
C. # dpkg -i newprogram.x86_64.rpm
D. # apt-get install newprogram.x86_64.rpm

Question 167
Which of the following would allow remote users to access a corporate server? (Choose two.)
A. VPN server
B. SMTP server
C. NTP server
D. SSH server
E. DHCP server
F. File server

Question 168
A junior administrator is configuring local name lookups for fully qualified domain names in an isolated environment. The administrator is given a checklist and must accomplish the following tasks:
- Add localhost with loopback address.
- Add 192.168.192.12/24 to resolve to database01.comptia.orgGiven this scenario, which of the following steps should the administrator perform to accomplish these tasks?
A. Open the /etc/nsswitch.conf file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
B. Open the /etc/dhcpd.conf file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
C. Open the /etc/hosts file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org
D. Open the /etc/network file with a file editor and add the following lines: 127.0.0.1 localhost 192.168.192.12 database01.comptia.org

Question 169
An administrator is reviewing suspicious activity on a server and needs to determine which users logged into the system within the past 24 hours. Which of the following commands should the administrator run to determine this?
A. last
B. who
C. id
D. usermod

Question 170
During the final step of staging new Linux hardware, GRUB2 is installed to the system drive. Which of the following BEST describes the role of GRUB2 in a newLinux installation?
A. It provides a menu for creating administrator task shortcuts.
B. It provides a menu for running special shell scripts.
C. It provides a method to partition a hard drive.
D. It provides a method to pass parameters to the Linux kernel on startup.