Act now and download your CompTIA XK0-004 test today! Do not waste time for the worthless CompTIA XK0-004 tutorials. Download Improved CompTIA CompTIA Linux+ Certification Exam exam with real questions and answers and begin to learn CompTIA XK0-004 with a classic professional.
Online XK0-004 free questions and answers of New Version:
NEW QUESTION 1
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
- A. UEFI
- B. PXE
- C. NFS
- D. GRUB
Answer: A
NEW QUESTION 2
A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed. Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?
- A. lsmod, modprobe, modinfo
- B. modinfo, insmod, modprobe
- C. modinfo, insmod, dmesg
- D. lsmod, insmod, dmesg
Answer: A
NEW QUESTION 3
A Linux administrator has installed a web application firewall in front of a web server running on HTTP port 8080 and successfully started the HTTP server. However, after opening the application URL in an Internet browser, the administrator discovered that the application does not work. The administrator performed the following diagnostic steps:
Output of sysctl -a command:
Output of iptables -L command:
Output of netstat –nltop | grep "8080":
Which of the following is the NEXT step the administrator should perform to permanently fix the issue at the kernel level?
- A. sysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable the change
- B. Edit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/ sysctl.conf to enable the change
- C. Add iptables rule iptables -A INPUT -m state --state NEW -p tcp --dport 8080 -j then restart httpd daemon
- D. Add iptables rule iptables -A FORWARD-m state --state NEW -p tcp --dport 8080 –j ACCEPT then restart httpd daemon
Answer: D
NEW QUESTION 4
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?
- A. pvcreate
- B. vgcreate
- C. lvcreate
- D. mkfs.xfs
Answer: B
NEW QUESTION 5
A configuration management tool running every minute is enforcing the service HTTPd to be started. To perform maintenance, which of the following series of commands can be used to prevent the service from being started?
- A. systemctl stop httpd && systemctl mask httpd
- B. systemctl disable httpd && systemctl mask httpd
- C. systemctl stop httpd && systemctl hide httpd
- D. systemctl disable httpd && systemctl hide httpd
Answer: A
NEW QUESTION 6
A Linux systems administrator needs to copy the contents of a directory named “working” on the local working system to a folder /var/www/html on a server named “corporate-web”.
Which of the following commands will allow the administrator to copy all the contents to the web server?
- A. scp –r working/* webuser@corporate-web:/var/www/html
- B. tar working/* webuser@corporate-web:/var/www/html
- C. cp –r working/* webuser@corporate-web:/var/www/html
- D. mv working webuser@corporate-web:/var/www/html
Answer: A
NEW QUESTION 7
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 –L20G /dev/vg/lv; resizelv /dev/vg/lv
- B. parted –L20G /dev/vg/lv; remount /dev/vg/lv
- C. mkfs –L20G /dev/vg/lv; tune2fs /dev/vg/lv
- D. lvextend –L20G /dev/vg/lv; resize2fs /dev/vg/lv
Answer: D
NEW QUESTION 8
A junior administrator is migrating a virtual machine from a Type 1 hypervisor to a Type 2 hypervisor. To ensure portability, which of the following formats should the administrator export from the Type 1 hypervisor to ensure compatibility?
- A. OWASP
- B. VDI
- C. VMDK
- D. OVA
Answer: D
NEW QUESTION 9
An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?
- A. lsof | grep largelogfile
- B. pkill /tmp/largelogfile
- C. pgrep largelogfile
- D. ps –ef | grep largelogfile
Answer: A
NEW QUESTION 10
Which of the following BEST describes running on a Linux system?
- A. Containers only need the namespaces functionally to run on a Linux system available since kernel 2.6.
- B. Containers need a hypervisor to run a Linux syste
- C. Cgroups namespaces are functionalities used for the kernel but not for running containers.
- D. Containers only need the cgroups functionality for running on a Linux syste
- E. Namespaces is not a Linux kernel functionality needed for creating and managing containers.
- F. Containers use the cgroups and namespaces functionalities to isolate processes and assign hardware resources to each of those isolated processes.
Answer: D
NEW QUESTION 11
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.
Which of the following commands will achieve this task?
- A. sudo killall –HUP dd
- B. sudo killall dd
- C. sudo killall –TERM dd
- D. sudo killall -USR1 dd
Answer: D
NEW QUESTION 12
An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly.
Which of the following explains what is wrong with the script?
- A. $(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.
- B. The for should be changed to while in the loop.
- C. The > should be changed to 2> in the do statement.
- D. The -ne flag should be changed to -eq in the if statement.
Answer: A
NEW QUESTION 13
Which of the following configuration management tools is considered agentless?
- A. Ouppet
- B. Salt
- C. Ansible
- D. Chef
Answer: C
NEW QUESTION 14
A systems administrator has finished building a new feature for the monitoring software in a separate Git branch.
Which of the following is the BEST method for adding the new feature to the software’s master branch?
- A. Merge the changes from the feature branch to the master branch.
- B. Save the changes to the master branch automatically with each Git commit.
- C. Clone the feature branch into the master branch.
- D. Pull the changes from the feature branch into the master branch.
Answer: A
NEW QUESTION 15
A junior administrator needs to unload an older video kernel module. Which of the following commands would BEST accomplish this task?
- A. modprobe
- B. insmod
- C. rmmod
- D. chmod
Answer: A
NEW QUESTION 16
A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.
Which of the following should the administrator use to reduce the output of memory messages?
- A. free : swapoff / swapfile ; swapon -a
- B. mkswap /swapfile; swapon –a
- C. fallocate –l 2G /swapfile && swapon –a
- D. echo “1” > /proc/meninfo ; swapon / swapfile
Answer: A
NEW QUESTION 17
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?
- A. echo “blacklist bluetooth” > /etc/modprobe.d/blacklist-bluetooth
- B. echo “kill bluetooth” > /etc/modprobe.d/kill-bluetooth
- C. echo “modprobe bluetooth” > /etc/modprobe.d/modprbe-bluetooth
- D. echo “rmod bluetooth” > /etc/modprobe.d/rmmod-bluetooth
Answer: C
NEW QUESTION 18
A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?
- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: D
NEW QUESTION 19
......
100% Valid and Newest Version XK0-004 Questions & Answers shared by Certleader, Get Full Dumps HERE: https://www.certleader.com/XK0-004-dumps.html (New 267 Q&As)