This page was exported from Actual Test Materials [ http://blog.actualtests4sure.com ] Export date:Fri Nov 15 19:34:34 2024 / +0000 GMT ___________________________________________________ Title: View All XK0-004 Actual Exam Questions, Answers and Explanations for Free [Q118-Q138] --------------------------------------------------- View All XK0-004 Actual Exam Questions, Answers and Explanations for Free XK0-004 Exam Free Practice Test with100% Accurate Answers CompTIA XK0-004: Career Prospects The professionals who pass the CompTIA XK0-004 exam are qualified to get the CompTIA Linux+ certification. With this certificate, they can explore a variety of career prospects. Some of the job roles that they can take up include a Systems Administrator, a Technical Support Specialist, a Linux Administrator, a Web Administrator, and a Network Administrator, among others. The salary outlook for these titles is also attractive as the certified individuals in any of these positions can earn an average of $75,000 per annum. It's important to mention that some individuals can get more than this average sum as it mostly depends on their job role, experience, and their workplace.   Q118. A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfigis as follows:Which of the following commands BEST describes how the administrator should re-enable the network service?  chkconfig –level 0 network on  chkconfig –level 0-6 network on  chkconfig –level 6 network on  chkconfig –level 12 network on  cchkconfig –level 345 network on ExplanationExplanation/Reference: https://www.thegeekdiary.com/how-to-enable-or-disable-service-on-boot-with-chkconfig/Q119. A Linux administrator is configuring a web server that connects to an external SQL database. However, after starting the web application, the logs are show an error message:Which of the following is the BEST way to resolve this issue?  echo 0> seLinux/enforce  restorecon -rv /var/www/ html  sed -1 s/’SELINUX. ‘ /SELINUXpermissive// etc/selinux/config  setseboo1 -p http-can-network_connect_db 1 Q120. A Linux administrator tried to copy files to a remote server but received an error message indicating a lack of free space on the disk. The administrator issued a df command and verified adequate free space and inodes on the filesystem.Which of the following commands is the BEST way to diagnose the issue?  cat /proc/meminfo  lsof -nP | grep deleted  find / -type f -size +50M  du -a / | sort -n -r | head -n 30 Q121. Which of the following will provide a list of all flash, external, internal, and SSD drives?  lspci  lsmod  lsblk  lsusb Reference:https://www.linux.com/learn/intro-to-linux/2017/3/how-format-storage-devices-linuxQ122. A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?  tar -cv domain.tar.gz /usr/domain  tar -cvf /usr/domain domain.tar.gz  tar -czvf domain.tar.gz /usr/domain  tar -cxzv /usr/domain domain.tar.gz Reference:https://help.ubuntu.com/community/BackupYourSystem/TARQ123. A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver support. The administrator tested the device installation and access, but the user cannot access the serial port.Each time the user attempts to access the device, an error log is created that shows the user does not have permission to use the serial port. Which of the following will add a user to the group that has serial port capabilities?  usermod -a -G serialport $USER  usermod -a -G modem $USER  usermod -a -G dialout $USER  usermod -a -G root $USER Q124. A Linux administrator needs to run a command in the background of a terminal, Which of the following commands will BEST accomplish this task?  ./run_application $$ bg  ./run_application +$  ./run_application  ./run_application $ Q125. A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?  ~/ssh/authorized-keys  /etc/authorized_keys  /etc/sshd/ssh.conf  ~/.ssh/authorized_keys ExplanationExplanation/Reference: https://www.linode.com/docs/security/securing-your-server/Q126. 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?  iptables -I OUTPUT -p tcp –sport 443 -j ACCEPT  iptables -A INPUT -p tcp –dport 443 -j ACCEPT  iptables -I INPUT –dport 443 -j ACCEPT  iptables -A OUTPUT -p tcp –dport 443 -j ACCEPT Explanation/Reference: https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/Q127. A system administrator is troubleshooting a web server that runs in a container. After the log is retained, the container occasionally stops logging to a log file. Fortunately, the vendor provides a custom signal that allows the application to reconnect to the log file. Which of the following would be BEST for the administrator to run the containers?  Kill -HUP 1  Kill -USR 1  Kill -TEAM 1  Kill -Kill 1 Q128. A junior system administrator had trouble installing and running an Apache web server on a Linux server. You have been tasked with installing the Apache web server on the Linux server and resolving the issue that prevented the junior administrator from running Apache.INSTRUCTIONSInstall Apache and start the service. Verify that the Apache service is running with the defaults.Typing “help” in the terminal will show a list of relevant commands.If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.CentOS Command Prompt See explanation belowExplanationSolution below.Q129. Users are unable to connect to a server using HTTPS. The administrator runs the following command on the remote system:Then, the administrator runs the following command from a local workstation:Which of the following steps should the administrator take to address the issue?  Start the application to run on port 443  Configure the application to run on an active port  Allow port 443 through the firewall  Update the self-signed certificate Q130. A directory called /employee is shared with many employees in a company. New hardware was acquired, and the systems administrator needs to back up all files in /employee before the server is replaced.Which of the following commands should be used to back up all the files and compress them to use little space in the filesystem?  tar -zcvf backup.tar.gz /employee  tar -zxvf backup.tar.gz /employee  tar -Cvf backup.tar.gz /employee  tar -Tpf backup.tar.gz /employee Q131. A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.Which of the following commands will accomplish this task?  df -k /home/User/files.txt  du -a /home/User3/*  du -sh /home/User/  find . -name /home/User3 -print Q132. A Linux administrator needs to take stock of USB devices attached to the system.Which of the following commands would be BEST to complete this task?  lspci  lsusb  cat /proc/USB  modprobe –usb Q133. Which of the following are classified as Linux GUI servers? (Choose two.)  VNC  KDE  Gnome  Wayland  MATE  X11 Q134. A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?  rmmod -c  depmod -r  insmod -c  modprobe -r Reference:http://ccrma.stanford.edu/planetccrma/man/man8/modprobe.8.htmlQ135. A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring parameters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in size. In addition, five rotations of the file should exist in the /var/log directory.Which of the following should be added to the /etc/logrotate.conf file to meet this objective?         Q136. 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?  sysctl -w net.ipv4.ip_forward=1 then run sysctl -w /etc/sysctl.conf to enable thechange  Edit /etc/sysctl.conf file and add net.ipv4.ip_forward = 1 then run sysctl -p /etc/sysctl.conf to enable the change  Add iptables rule iptables -A INPUT -m state –state NEW -p tcp –dport 8080 -j thenrestart httpd daemon  Add iptables rule iptables -A FORWARD-m state –state NEW -p tcp –dport 8080 -jACCEPT then restart httpd daemon Q137. An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.Which of the following commands would prevent the script from being killed?  nohup service network restart  service network restart &  echo “service network restart” | at now  dg service network restart Q138. 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?  nice -n 5 -p 2864  nice -n -5 -p 2864  renice -n 10 -p 2864  renice -n -10 -p 2864 A higher value of priority actually makes the process lower priority; it means the process demands fewer system resources (and therefore is a “nicer” process). A lower priority value means the process demands more resources, possibly denying those resources to processes that are “nicer”. Loading … XK0-004 dumps Free Test Engine Verified By It Certified Experts: https://www.actualtests4sure.com/XK0-004-test-questions.html --------------------------------------------------- Images: https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif https://blog.actualtests4sure.com/wp-content/plugins/watu/loading.gif --------------------------------------------------- --------------------------------------------------- Post date: 2022-07-02 12:46:12 Post date GMT: 2022-07-02 12:46:12 Post modified date: 2022-07-02 12:46:12 Post modified date GMT: 2022-07-02 12:46:12