CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 23,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 23,2024
A junior Linux administrator is trying to verify connectivity to the remote host host1 and display round-trip statistics for ten ICMP.
Which of the following commands should the administrator execute?
- A . ping Cc 10 host1
- B . traceroute Cc 10 host1
- C . netstat host1
- D . pathping Cc 10 host1
A systems administrator wants to mount an ISO to access its content. Using /mnt as a mount point, which of the following is the correct syntax?
- A . mount -o iso9660 /dev/sr0 /mnt
- B . mount -o loop -t iso /mnt
- C . mount -o loop /tmp/image.iso /mnt
- D . mount -o loop /dev/kvm /mnt
An administrator is tasked with increasing the size of the volume /dev/vg/lv to 20GB.
Which of the following BEST illustrates the steps the administrator should take?
- A . vgextend CL20G /dev/vg/lv; resizelv /dev/vg/lv
- B . parted CL20G /dev/vg/lv; remount /dev/vg/lv
- C . mkfs CL20G /dev/vg/lv; tune2fs /dev/vg/lv
- D . lvextend CL20G /dev/vg/lv; resize2fs /dev/vg/lv
A systems administrator has received reports of intermittent network connectivity to a particular website.
Which of the following is the BEST command to use to characterize the location and type of failure over the course of several minutes?
- A . mtr www.comptia.org
- B . tracert www.comptia.org
- C . ping www.comptia.org
- D . netstat www.comptia.org
An administrator needs to look at a log for an application on a systemd-based system. There is no log for this application in /var/log.
Which of the following is another way to view the application log on this system?
- A . tail -f /var/log/secure
- B . journalctl Cu application
- C . systemctl application.service
- D . watch /var/lib/application/
An administrator has written the following Bash script:
All necessary files exist in the correct locations.
However, when the administrator executes /home/user/test.sh the following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
- A . The shebang points to the wrong path.
- B . The script is not executable.
- C . The formatting of the file is incorrect.
- D . Nslookup is not installed.
Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full.
Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?
- A . rm -Rf ~/.*
- B . fsck -y /dev/sda1
- C . df -i
- D . fdisk /dev/sda
A Linux administrator is setting up a testing environment and needs to connect to a separate testing server using the production server name. The administrator needs to override the hostname that the DNS is returning in order to use the test environment.
Which of the following commands should be run on each of the testing systems to BEST meet this goal?
- A . # hostnamectl set-hostname “192.168.1.100 production.company.com”
- B . # grep Ci IP “${ip addr show} production.company.com” > /etc/resolv.conf
- C . # ip addr add 192.168.1.100/24 dev eth0 && rndc reload production.company.com
- D . # echo “192.168.1.100 production.company.com” >> /etc/hosts
A company wants to provide internal identity verification services for networked devices.
Which of the following servers should be installed?
- A . SSH
- B . VPN
- C . CA
- D . DHCP
- E . DNS
A Linux administrator opens a ticket to have an external hard drive mounted. As a security policy, external storage kernel modules are disabled.
Which of the following is the BEST command for adding the proper kernel module to enable external storage modules?
- A . rmmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- B . modinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- C . depmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- D . insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
No comment