XK0-004 dumps prepare 368 real and valid exam questions and answers according to actual requirements, preparing for the CompTIA Linux+ Certification exam you are eager to get.
You don’t need to be too nervous, it’s not difficult for us to get 720 points in 90 minutes. Use the Lead4Pass XK0-004 dumps: https://www.leads4pass.com/xk0-004.html to help you successfully pass the CompTIA Linux+ Certification exam under the rules. By the way, the XK0-004 dumps contain both PDF and VCE learning methods, which are simple and convenient, improve your learning speed and help you successfully pass the CompTIA Linux+ Certification exam on the first try.
So, first, take a look at the XK0-004 free dumps
The questions for XK0-004 were last updated on April 18, 2022.
Viewing questions 1-13 out of 368 questions:
QUESTION 1:
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate. The administrator uses the command renice -n -5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue?
A. nice -n 5 -p 2864
B. nice -n -5 -p 2864
C. renice -n 10 -p 2864
D. renice -n -10 -p 2864
Correct Answer: C
QUESTION 2:
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?
A. iptables -I OUTPUT -p tcp –sport 443 -j ACCEPT
B. iptables -A INPUT -p tcp –dport 443 -j ACCEPT
C. iptables -I INPUT –dport 443 -j ACCEPT
D. iptables -A OUTPUT -p tcp –dport 443 -j ACCEPT
Correct Answer: C
Reference: https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/
QUESTION 3:
The following represents a partial listing of a user\’s .bashrc file: HISTSIZE=800 HISTFILESIZE=1000
umask 2002 HISTCONTROL=ignoreboth When the user opens a terminal, an error message appears: Octal number out of range Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?
A. HISTSIZE=800
B. HISTFILESIZE=1000
C. umask 2002
D. HISTCONTROL=ignoreboth
Correct Answer: C
QUESTION 4:
A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?
A. /etc/sysconfig/network/interfaces.cnf
B. /system/config/interfaces
C. /etc/sysconfig/network-scripts/ifcfg-eth0
D. /system/networking/ifconfig
E. /etc/interfaces/eth0.conf
Correct Answer: C
Reference: https://opensource.com/life/16/6/how-configure-networking-linux
QUESTION 5:
Users in the payroll department are not configured to use DNS due to security concerns. The users ask the junior Linux administrator to configure their workstations to access the payroll server at 192.168.204.11 by the name “Payroll”.
Which of the following commands should the administrator issue meet this request?
A. echo “nameserver 192.168.204.11 #Payroll” >> /etc/resolv.conf
B. echo “net.ipv4.ip_dynaddr=192.168.204.11 Payroll” >> /etc/sysctl.conf
C. echo “192.168.204.11 Payroll” >> /etc/hosts
D. echo `IPADDR=”192.168.204.11″ #Payroll\’ >> /etc/network/interface
Correct Answer: C
QUESTION 6:
An administrator receives a USB drive and wants to make an exact copy of the disk before starting to work on it. One of the partitions on the USB drive was mounted as /dev/sdc1. Which of the following commands should the administrator use?
A. dd if=/dev/sdc of=~/usb_copy.img bs=512
B. dd if=/dev/sdc1 of=~/usb_copy.img count=1024
C. dd if=/dev/sdc1 of=~/usb_copy.img bs=1024
D. dd of=/dev/sdc if=~/usb_copy.img bs=1M
Correct Answer: C
QUESTION 7:
A Linux administrator is helping the security team troubleshoot an SELinux policy violation incident. Which of the following would be the BEST utility command to display SELinux violation and AVC denial messages?
A. journalctl | grep sealert
B. sealert -a /var/log/audit/audit.log
C. aureport | grep AVC
D. cat /var/log/messages | grep selinux
Correct Answer: B
QUESTION 8:
A server is almost out of free memory and is becoming unresponsive. Which of the following sets of commands will BEST mitigate the issue?
A. free, fack, partprobe
B. lsof, lvcreate, mdadm
C. df, du, rmmod
D. fdisk, mkswap, swapon -a
Correct Answer: D
QUESTION 9:
A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?
A. echo “- – -” > /sys/class/scsi_host/host0/scan
B. echo \’ \’ > /sys/class/scsi_host/host0/scan
C. echo “- – -” > /sys/scsi/scsi_host/host0/scan
D. echo “scan” > /sys/class/scsi_host/host0/scan
Correct Answer: A
Reference: https://geekpeek.net/rescan-scsi-bus-on-linux-system/
QUESTION 10:
A systems administrator has set up third-party log aggregation agents across several cloud instances. The systems administrator wants to create a dashboard of failed SSH attempts and the usernames used. Which of the following files should be watched by the agents?
A. /var/log/audit/audit.log
B. /var/log/kern.log
C. /var/log/monitor
D. /etc/rsyslog.conf
Correct Answer: A
QUESTION 11:
An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point/mnt/testvol and make the mount persistent after reboot. Which of the following BEST demonstrates the commands necessary to accomplish this task?
A. Option A
B. Option B
C. Option C
D. Option D
Correct Answer: A
QUESTION 12:
A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap.
Which of the following commands would allow the administrator to accomplish this task?
A. netcat -p 80 -w test.pcap
B. tshark -r test.pcap -o http
C. tcpdump -i eth0 port 80 -r test.pcap
D. tcpdump -i eth0 port 80 -w test.pcap
Correct Answer: B
QUESTION 13:
A server, which is used to collect data about the network and data center environment via SNMP, is running out of space. Which of the following should the server administrator implement to reduce disk utilization?
A. journald
B. Snapshots
C. logrotate
D. tar -cvf
Correct Answer: B
……
Use the XK0-004 dumps provided by Lead4Pass: https://www.leads4pass.com/xk0-004.html, easy to learn, fast progress, to help you easily complete the CompTIA Linux+ Certification exam and achieve success.