{"id":2226,"date":"2026-03-12T10:13:27","date_gmt":"2026-03-12T10:13:27","guid":{"rendered":"https:\/\/exam.real4prep.com\/?p=2226"},"modified":"2026-03-12T10:13:27","modified_gmt":"2026-03-12T10:13:27","slug":"mar-12-2026-xk0-005-exam-dumps-xk0-005-practice-test-questions-q339-q361","status":"publish","type":"post","link":"https:\/\/exam.real4prep.com\/ja\/2026\/03\/12\/mar-12-2026-xk0-005-exam-dumps-xk0-005-practice-test-questions-q339-q361\/","title":{"rendered":"[Mar 12, 2026] XK0-005 Exam Dumps, XK0-005 Practice Test Questions [Q339-Q361]"},"content":{"rendered":"\n\n<div class=\"kk-star-ratings kksr-auto kksr-align-left kksr-valign-top\"\n    data-payload='{&quot;align&quot;:&quot;left&quot;,&quot;id&quot;:&quot;2226&quot;,&quot;slug&quot;:&quot;default&quot;,&quot;valign&quot;:&quot;top&quot;,&quot;ignore&quot;:&quot;&quot;,&quot;reference&quot;:&quot;auto&quot;,&quot;class&quot;:&quot;&quot;,&quot;count&quot;:&quot;1&quot;,&quot;legendonly&quot;:&quot;&quot;,&quot;readonly&quot;:&quot;&quot;,&quot;score&quot;:&quot;5&quot;,&quot;starsonly&quot;:&quot;&quot;,&quot;best&quot;:&quot;5&quot;,&quot;gap&quot;:&quot;5&quot;,&quot;greet&quot;:&quot;Rate this post&quot;,&quot;legend&quot;:&quot;5\\\/5 - (1 vote)&quot;,&quot;size&quot;:&quot;24&quot;,&quot;title&quot;:&quot;[Mar 12, 2026] XK0-005 Exam Dumps, XK0-005 Practice Test Questions [Q339-Q361]&quot;,&quot;width&quot;:&quot;142.5&quot;,&quot;_legend&quot;:&quot;{score}\\\/{best} - ({count} {votes})&quot;,&quot;font_factor&quot;:&quot;1.25&quot;}'>\n            \n<div class=\"kksr-stars\">\n    \n<div class=\"kksr-stars-inactive\">\n            <div class=\"kksr-star\" data-star=\"1\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"2\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"3\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"4\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" data-star=\"5\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n    \n<div class=\"kksr-stars-active\" style=\"width: 142.5px;\">\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n            <div class=\"kksr-star\" style=\"padding-right: 5px\">\n            \n\n<div class=\"kksr-icon\" style=\"width: 24px; height: 24px;\"><\/div>\n        <\/div>\n    <\/div>\n<\/div>\n                \n\n<div class=\"kksr-legend\" style=\"font-size: 19.2px;\">\n            5\/5 - (1 vote)    <\/div>\n    <\/div>\n<p><strong><span style=\"font-size: 18px;color: red\">[Mar 12, 2026] XK0-005 Exam Dumps, XK0-005 Practice Test Questions<\/span><\/strong><\/p>\n<p><strong><span style=\"color: red\">Free XK0-005 Study Guides Exam Questions and Answer<\/span><\/strong><\/p>\n<p><\/p>\n<p>CompTIA Linux+ certification is vendor-neutral, which means that it is not tied to any specific distribution of Linux. This makes it a valuable certification for IT professionals who work with multiple Linux distributions or who work in organizations that use different distributions. Earning the CompTIA Linux+ certification can help IT professionals advance their careers and increase their earning potential, as well as validate their knowledge and skills in Linux system administration.<\/p>\n<p>&nbsp;<\/p>\n<div id=\"watu_quiz\" class=\"quiz-area single-page-quiz\">\n<form action=\"\" method=\"post\" class=\"quiz-form \" id=\"quiz-883\" >\n<div class='watu-question' id='question-1'><div class='question-content'><p><strong>QUESTION 339<\/strong><br \/>A systems administrator is enabling LUKS on a USB storage device with an ext4 filesystem format. The administrator runs dmesg and notices the following output:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-c8003dbef7490d1f36e7a0b01ef4344f.jpg\"\/><br \/>Given this scenario, which of the following should the administrator perform to meet these requirements?<br \/>(Select three).<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17353' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67116' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67116' class='answer answer-1 js-answer-label answerof-17353' value='67116' \/>&nbsp;<label for='answer-id-67116' id='answer-label-67116' class='js-answer-label answer label-1'><span class='answer'>gpg \/dev\/sdcl<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67117' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67117' class='answer answer-1 js-answer-label answerof-17353' value='67117' \/>&nbsp;<label for='answer-id-67117' id='answer-label-67117' class='js-answer-label answer label-1'><span class='answer'>pvcreate \/dev\/sdc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67118' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67118' class='answer answer-1 php-answer-label answerof-17353' value='67118' \/>&nbsp;<label for='answer-id-67118' id='answer-label-67118' class='php-answer-label answer label-1'><span class='answer'>mkfs . ext4 \/dev\/mapper\/LUKSCJ001 &#8211; L ENCRYPTED<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67119' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67119' class='answer answer-1 php-answer-label answerof-17353' value='67119' \/>&nbsp;<label for='answer-id-67119' id='answer-label-67119' class='php-answer-label answer label-1'><span class='answer'>umount \/ dev\/ sdc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67120' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67120' class='answer answer-1 js-answer-label answerof-17353' value='67120' \/>&nbsp;<label for='answer-id-67120' id='answer-label-67120' class='js-answer-label answer label-1'><span class='answer'>fdisk \/dev\/sdc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67121' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67121' class='answer answer-1 js-answer-label answerof-17353' value='67121' \/>&nbsp;<label for='answer-id-67121' id='answer-label-67121' class='js-answer-label answer label-1'><span class='answer'>mkfs . vfat \/dev\/mapper\/LUKS0001 &#8211; L ENCRYPTED<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67122' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67122' class='answer answer-1 js-answer-label answerof-17353' value='67122' \/>&nbsp;<label for='answer-id-67122' id='answer-label-67122' class='js-answer-label answer label-1'><span class='answer'>wipefs -a\/dev\/sdbl<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67123' \/><div class='watu-question-choice'><input type='checkbox' name='answer-17353[]' id='answer-id-67123' class='answer answer-1 php-answer-label answerof-17353' value='67123' \/>&nbsp;<label for='answer-id-67123' id='answer-label-67123' class='php-answer-label answer label-1'><span class='answer'>cryptsetup IuksFormat \/dev\/ sdcl<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Explanation<br\/>To enable LUKS on a USB storage device with an ext4 filesystem format, the administrator needs to perform the following steps:<br\/>Unmount the device if it is mounted using umount \/dev\/sdc (D)<br\/>Create a partition table on the device using fdisk \/dev\/sdc (E)<br\/>Format the partition with LUKS encryption using cryptsetup luksFormat \/dev\/sdc1 (H) Open the encrypted partition using cryptsetup luksOpen \/dev\/sdc1 LUKS0001 Create an ext4 filesystem on the encrypted partition using mkfs.ext4 \/dev\/mapper\/LUKS0001  Mount the encrypted partition using mount \/dev\/mapper\/LUKS0001 \/mnt References:<br\/>[CompTIA Linux+ Study Guide], Chapter 9: Securing Linux, Section: Encrypting Disks<br\/>[How to Encrypt USB Drive on Ubuntu 18.04]<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(1,this)' id='btn-1' value='See Answer'  \/><input type='hidden' id='questionType1' value='checkbox' class=''><\/div><div class='watu-question' id='question-2'><div class='question-content'><p><strong>QUESTION 340<\/strong><br \/>A systems administrator is creating new user accounts on several Linux machines and wants to automate the process from a Linux system used for operations. In this operations system, the list of servers is located in the \/home\/user\/serverslist file and the list of user accounts is located in the \/home\/user\/userslist file. Which of the following scripts will help accomplish this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17354' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67124' \/><div class='watu-question-choice'><input type='radio' name='answer-17354[]' id='answer-id-67124' class='answer answer-2 js-answer-label answerof-17354' value='67124' \/>&nbsp;<label for='answer-id-67124' id='answer-label-67124' class='js-answer-label answer label-2'><span class='answer'>bashfor server in $(cat \/home\/user\/serverslist) do for user in $(cat \/home\/user\/userslist) do sudo useradd $user done done<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67125' \/><div class='watu-question-choice'><input type='radio' name='answer-17354[]' id='answer-id-67125' class='answer answer-2 php-answer-label answerof-17354' value='67125' \/>&nbsp;<label for='answer-id-67125' id='answer-label-67125' class='php-answer-label answer label-2'><span class='answer'>bashfor server in $(cat \/home\/user\/serverslist) do ssh -i user@$server &#8220;for user in $(cat \/home\/user\/userslist) do sudo useradd $user done; exit&#8221; done<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67126' \/><div class='watu-question-choice'><input type='radio' name='answer-17354[]' id='answer-id-67126' class='answer answer-2 js-answer-label answerof-17354' value='67126' \/>&nbsp;<label for='answer-id-67126' id='answer-label-67126' class='js-answer-label answer label-2'><span class='answer'>bashfor server in $(cat \/home\/user\/serverslist) do scp \/home\/user\/userslist user@$server:\/tmp ssh -i user@$server &#8220;for user in $(cat \/tmp\/userslist) do sudo useradd $user done; exit&#8221; done<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67127' \/><div class='watu-question-choice'><input type='radio' name='answer-17354[]' id='answer-id-67127' class='answer answer-2 js-answer-label answerof-17354' value='67127' \/>&nbsp;<label for='answer-id-67127' id='answer-label-67127' class='js-answer-label answer label-2'><span class='answer'>bashssh user@$(cat \/home\/user\/serverslist) &#8220;sudo useradd $(cat \/home\/user\/userslist); exit&#8221;<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The script in option B performs the task by SSH-ing into each server listed in serverslist and then adding each user listed in userslist. This is an effective way to remotely create user accounts without manually logging into each server. The ssh command allows the execution of the useradd commands on the remote machines.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(2,this)' id='btn-2' value='See Answer'  \/><input type='hidden' id='questionType2' value='radio' class=''><\/div><div class='watu-question' id='question-3'><div class='question-content'><p><strong>QUESTION 341<\/strong><br \/>Which of the following is the purpose of the monitoring server role?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17355' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67128' \/><div class='watu-question-choice'><input type='radio' name='answer-17355[]' id='answer-id-67128' class='answer answer-3 js-answer-label answerof-17355' value='67128' \/>&nbsp;<label for='answer-id-67128' id='answer-label-67128' class='js-answer-label answer label-3'><span class='answer'>To aggregate web traffic to watch which websites employees are visiting<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67129' \/><div class='watu-question-choice'><input type='radio' name='answer-17355[]' id='answer-id-67129' class='answer answer-3 php-answer-label answerof-17355' value='67129' \/>&nbsp;<label for='answer-id-67129' id='answer-label-67129' class='php-answer-label answer label-3'><span class='answer'>To collect status and performance information about the servers in an environment<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67130' \/><div class='watu-question-choice'><input type='radio' name='answer-17355[]' id='answer-id-67130' class='answer answer-3 js-answer-label answerof-17355' value='67130' \/>&nbsp;<label for='answer-id-67130' id='answer-label-67130' class='js-answer-label answer label-3'><span class='answer'>To provide user authentication services to a network<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67131' \/><div class='watu-question-choice'><input type='radio' name='answer-17355[]' id='answer-id-67131' class='answer answer-3 js-answer-label answerof-17355' value='67131' \/>&nbsp;<label for='answer-id-67131' id='answer-label-67131' class='js-answer-label answer label-3'><span class='answer'>To provide real-time analysis of potential threats to the organization<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(3,this)' id='btn-3' value='See Answer'  \/><input type='hidden' id='questionType3' value='radio' class=''><\/div><div class='watu-question' id='question-4'><div class='question-content'><p><strong>QUESTION 342<\/strong><br \/>A Linux user needs to create a file named newfile in the home directory that mirrors the contents of the \/etc\/resolv.conf file.<br \/>Which of the following commands would accomplish this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17356' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67132' \/><div class='watu-question-choice'><input type='radio' name='answer-17356[]' id='answer-id-67132' class='answer answer-4 php-answer-label answerof-17356' value='67132' \/>&nbsp;<label for='answer-id-67132' id='answer-label-67132' class='php-answer-label answer label-4'><span class='answer'>cat \/etc\/resolv.conf &gt; \/home\/user\/newfile<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67133' \/><div class='watu-question-choice'><input type='radio' name='answer-17356[]' id='answer-id-67133' class='answer answer-4 js-answer-label answerof-17356' value='67133' \/>&nbsp;<label for='answer-id-67133' id='answer-label-67133' class='js-answer-label answer label-4'><span class='answer'>echo \/etc\/resolv.conf &gt; \/home\/user\/newfile<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67134' \/><div class='watu-question-choice'><input type='radio' name='answer-17356[]' id='answer-id-67134' class='answer answer-4 js-answer-label answerof-17356' value='67134' \/>&nbsp;<label for='answer-id-67134' id='answer-label-67134' class='js-answer-label answer label-4'><span class='answer'>grep \/etc\/resolv.conf &lt; \/home\/user\/newfile<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67135' \/><div class='watu-question-choice'><input type='radio' name='answer-17356[]' id='answer-id-67135' class='answer answer-4 js-answer-label answerof-17356' value='67135' \/>&nbsp;<label for='answer-id-67135' id='answer-label-67135' class='js-answer-label answer label-4'><span class='answer'>printf \/etc\/resolv.conf &gt; \/home\/user\/newfile<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(4,this)' id='btn-4' value='See Answer'  \/><input type='hidden' id='questionType4' value='radio' class=''><\/div><div class='watu-question' id='question-5'><div class='question-content'><p><strong>QUESTION 343<\/strong><br \/>A Linux administrator has installed a web server, a database server, and a web application on a server. The web application should be active in order to render the web pages. After the administrator restarts the server, the website displays the following message in the browser: Error establishing a database connection. The Linux administrator reviews the following relevant output from the systemd init files:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-3fd87a6ccfecbb783d44e99c0b483d24.jpg\"\/><br \/>The administrator needs to ensure that the database is available before the web application is started. Which of the following should the administrator add to the HTTP server .service file to accomplish this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17357' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67136' \/><div class='watu-question-choice'><input type='radio' name='answer-17357[]' id='answer-id-67136' class='answer answer-5 js-answer-label answerof-17357' value='67136' \/>&nbsp;<label for='answer-id-67136' id='answer-label-67136' class='js-answer-label answer label-5'><span class='answer'>TRIGGERS=mariadb.service<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67137' \/><div class='watu-question-choice'><input type='radio' name='answer-17357[]' id='answer-id-67137' class='answer answer-5 js-answer-label answerof-17357' value='67137' \/>&nbsp;<label for='answer-id-67137' id='answer-label-67137' class='js-answer-label answer label-5'><span class='answer'>ONFAILURE=mariadb.service<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67138' \/><div class='watu-question-choice'><input type='radio' name='answer-17357[]' id='answer-id-67138' class='answer answer-5 js-answer-label answerof-17357' value='67138' \/>&nbsp;<label for='answer-id-67138' id='answer-label-67138' class='js-answer-label answer label-5'><span class='answer'>WANTEDBY=mariadb.service<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67139' \/><div class='watu-question-choice'><input type='radio' name='answer-17357[]' id='answer-id-67139' class='answer answer-5 php-answer-label answerof-17357' value='67139' \/>&nbsp;<label for='answer-id-67139' id='answer-label-67139' class='php-answer-label answer label-5'><span class='answer'>REQUIRES=mariadb.service<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The administrator should add REQUIRES=mariadb.service to the HTTP server .service file to ensure that the database is available before the web application is started. This directive specifies that the HTTP server unit requires the MariaDB server unit to be started before it can run. If the MariaDB server unit fails to start or stops for any reason, the HTTP server unit will also fail or stop. This way, the dependency between the web application and the database is enforced by systemd.<br\/>The other options are not correct directives for accomplishing this task. TRIGGERS=mariadb.service is not a valid directive in systemd unit files. ONFAILURE=mariadb.service means that the HTTP server unit will start only if the MariaDB server unit fails, which is not what we want. WANTEDBY=mariadb.service means that the HTTP server unit will be started when the MariaDB server unit is enabled, but it does not imply a strong dependency or ordering relationship between them. References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 10: Managing Services with systemd; systemd.unit(5) &#8211; Linux manual page<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(5,this)' id='btn-5' value='See Answer'  \/><input type='hidden' id='questionType5' value='radio' class=''><\/div><div class='watu-question' id='question-6'><div class='question-content'><p><strong>QUESTION 344<\/strong><br \/>A Linux administrator is creating a directory called CompTIA_doc, and it needs to switch to another location to perform some system-related tasks. Which of the following commands should the administrator use for this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17358' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67140' \/><div class='watu-question-choice'><input type='radio' name='answer-17358[]' id='answer-id-67140' class='answer answer-6 js-answer-label answerof-17358' value='67140' \/>&nbsp;<label for='answer-id-67140' id='answer-label-67140' class='js-answer-label answer label-6'><span class='answer'>mkdir CompTIA_doc &amp; cd CompTIA_doc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67141' \/><div class='watu-question-choice'><input type='radio' name='answer-17358[]' id='answer-id-67141' class='answer answer-6 js-answer-label answerof-17358' value='67141' \/>&nbsp;<label for='answer-id-67141' id='answer-label-67141' class='js-answer-label answer label-6'><span class='answer'>mkdir CompTIA_doc + cd CompTIA_doc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67142' \/><div class='watu-question-choice'><input type='radio' name='answer-17358[]' id='answer-id-67142' class='answer answer-6 js-answer-label answerof-17358' value='67142' \/>&nbsp;<label for='answer-id-67142' id='answer-label-67142' class='js-answer-label answer label-6'><span class='answer'>mkdir CompTIA_doc || cd CompTIA_doc<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67143' \/><div class='watu-question-choice'><input type='radio' name='answer-17358[]' id='answer-id-67143' class='answer answer-6 php-answer-label answerof-17358' value='67143' \/>&nbsp;<label for='answer-id-67143' id='answer-label-67143' class='php-answer-label answer label-6'><span class='answer'>mkdir CompTIA_doc &amp;&amp; cd CompTIA_doc<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Step-by-Step Comprehensive Detailed Explanation:<br\/>* Command Explanation:<br\/>* mkdir CompTIA_doc creates the directory, and &amp;&amp; ensures the cd CompTIA_doc command executes only if the directory creation is successful.<br\/>* Why Other Options are Incorrect:<br\/>* A: The &amp; runs commands in the background and does not ensure sequential execution.<br\/>* B: + is not a valid operator in shell commands.<br\/>* C: || executes the second command only if the first command fails.<br\/>* References:<br\/>* Linux+ Certification Exam Resources<br\/>* man mkdir, man cd<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(6,this)' id='btn-6' value='See Answer'  \/><input type='hidden' id='questionType6' value='radio' class=''><\/div><div class='watu-question' id='question-7'><div class='question-content'><p><strong>QUESTION 345<\/strong><br \/>Users have been unable to reach www.comptia.org from a Linux server. A systems administrator is troubleshooting the issue and does the following:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-f0139f8af26a0cda4f2baf73aa490d08.jpg\"\/><br \/>Based on the information above, which of the following is causing the issue?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17359' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67144' \/><div class='watu-question-choice'><input type='radio' name='answer-17359[]' id='answer-id-67144' class='answer answer-7 js-answer-label answerof-17359' value='67144' \/>&nbsp;<label for='answer-id-67144' id='answer-label-67144' class='js-answer-label answer label-7'><span class='answer'>The name www.comptia.org does not point to a valid IP address.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67145' \/><div class='watu-question-choice'><input type='radio' name='answer-17359[]' id='answer-id-67145' class='answer answer-7 php-answer-label answerof-17359' value='67145' \/>&nbsp;<label for='answer-id-67145' id='answer-label-67145' class='php-answer-label answer label-7'><span class='answer'>The server 192.168.168.53 is unreachable.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67146' \/><div class='watu-question-choice'><input type='radio' name='answer-17359[]' id='answer-id-67146' class='answer answer-7 js-answer-label answerof-17359' value='67146' \/>&nbsp;<label for='answer-id-67146' id='answer-label-67146' class='js-answer-label answer label-7'><span class='answer'>No default route is set on the server.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67147' \/><div class='watu-question-choice'><input type='radio' name='answer-17359[]' id='answer-id-67147' class='answer answer-7 js-answer-label answerof-17359' value='67147' \/>&nbsp;<label for='answer-id-67147' id='answer-label-67147' class='js-answer-label answer label-7'><span class='answer'>The network interface eth0 is disconnected.<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The issue is caused by the server 192.168.168.53 being unreachable. This server is the DNS server configured in the \/etc\/resolv.conf file, which is used to resolve domain names to IP addresses. The ping command shows that the server cannot be reached, and the nslookup command shows that the name www.comptia.org cannot be resolved using this server. The other options are incorrect because:<br\/>* The name www.comptia.org does point to a valid IP address, as shown by the nslookup command using another DNS server (8.8.8.8).<br\/>* The default route is set on the server, as shown by the ip route command, which shows a default gateway of 192.168.168.1.<br\/>* The network interface eth0 is connected, as shown by the ip link command, which shows a state of UP for eth0. References: CompTIA Linux+ Study Guide, Fourth Edition, page 457-458, 461-462.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(7,this)' id='btn-7' value='See Answer'  \/><input type='hidden' id='questionType7' value='radio' class=''><\/div><div class='watu-question' id='question-8'><div class='question-content'><p><strong>QUESTION 346<\/strong><br \/>A web server will not start on a Linux server. A Linux administrator troubleshooting the issue runs a few commands, which produce the following output:<br \/>Output 1: systemctl units<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-0b93baf4b165f5de5d67aea42423070c.jpg\"\/><br \/>Output 2: service status<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-5f03a45c2cdec7727367fc9e9f5aab28.jpg\"\/><br \/>Output 3: firewall configuration<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-ba1ed9b352ab7c5cc6da0e7785eeb6b5.jpg\"\/><br \/>Which of the following commands will allow the administrator to start the web server?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17360' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67148' \/><div class='watu-question-choice'><input type='radio' name='answer-17360[]' id='answer-id-67148' class='answer answer-8 js-answer-label answerof-17360' value='67148' \/>&nbsp;<label for='answer-id-67148' id='answer-label-67148' class='js-answer-label answer label-8'><span class='answer'>systemctl stop firewalld.service<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67149' \/><div class='watu-question-choice'><input type='radio' name='answer-17360[]' id='answer-id-67149' class='answer answer-8 js-answer-label answerof-17360' value='67149' \/>&nbsp;<label for='answer-id-67149' id='answer-label-67149' class='js-answer-label answer label-8'><span class='answer'>systemctl daemon-reload<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67150' \/><div class='watu-question-choice'><input type='radio' name='answer-17360[]' id='answer-id-67150' class='answer answer-8 php-answer-label answerof-17360' value='67150' \/>&nbsp;<label for='answer-id-67150' id='answer-label-67150' class='php-answer-label answer label-8'><span class='answer'>systemctl unmask httpd.service<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67151' \/><div class='watu-question-choice'><input type='radio' name='answer-17360[]' id='answer-id-67151' class='answer answer-8 js-answer-label answerof-17360' value='67151' \/>&nbsp;<label for='answer-id-67151' id='answer-label-67151' class='js-answer-label answer label-8'><span class='answer'>systemctl enable httpd@.service<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(8,this)' id='btn-8' value='See Answer'  \/><input type='hidden' id='questionType8' value='radio' class=''><\/div><div class='watu-question' id='question-9'><div class='question-content'><p><strong>QUESTION 347<\/strong><br \/>A Linux administrator is scheduling a system job that runs a script to check available disk space every hour.<br \/>The Linux administrator does not want users to be able to start the job. Given the following:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-570c33e5979a4379afaab12216454b2b.jpg\"\/><br \/>The Linux administrator attempts to start the timer service but receives the following error message:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-dedd04aa5790396b70b5904c7374dc65.jpg\"\/><br \/>Which of the following is MOST likely the reason the timer will not start?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17361' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67152' \/><div class='watu-question-choice'><input type='radio' name='answer-17361[]' id='answer-id-67152' class='answer answer-9 js-answer-label answerof-17361' value='67152' \/>&nbsp;<label for='answer-id-67152' id='answer-label-67152' class='js-answer-label answer label-9'><span class='answer'>The checkdiskspace.timer unit should be enabled via systemctl.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67153' \/><div class='watu-question-choice'><input type='radio' name='answer-17361[]' id='answer-id-67153' class='answer answer-9 js-answer-label answerof-17361' value='67153' \/>&nbsp;<label for='answer-id-67153' id='answer-label-67153' class='js-answer-label answer label-9'><span class='answer'>The timers.target should be reloaded to get the new configuration.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67154' \/><div class='watu-question-choice'><input type='radio' name='answer-17361[]' id='answer-id-67154' class='answer answer-9 php-answer-label answerof-17361' value='67154' \/>&nbsp;<label for='answer-id-67154' id='answer-label-67154' class='php-answer-label answer label-9'><span class='answer'>The checkdiskspace.timer should be configured to allow manual starts.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67155' \/><div class='watu-question-choice'><input type='radio' name='answer-17361[]' id='answer-id-67155' class='answer answer-9 js-answer-label answerof-17361' value='67155' \/>&nbsp;<label for='answer-id-67155' id='answer-label-67155' class='js-answer-label answer label-9'><span class='answer'>The checkdiskspace.timer should be started using the sudo command.<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Explanation<br\/>The most likely reason the timer will not start is that the checkdiskspace.timer should be configured to allow manual starts. By default, systemd timers do not allow manual activation via systemctl start, unless they have RefuseManualStart=no in their [Unit] section. This option prevents users from accidentally starting timers that are meant to be controlled by other mechanisms, such as calendar events or dependencies. To enable manual starts for checkdiskspace.timer, the administrator should add RefuseManualStart=no to its [Unit] section and reload systemd.<br\/>The other options are not correct reasons for the timer not starting. The checkdiskspace.timer unit does not need to be enabled via systemctl enable, because enabling a timer only makes it start automatically at boot time or after a system reload, but does not affect manual activation. The timers.target does not need to be reloaded to get the new configuration, because reloading a target only affects units that have a dependency on it, but does not affect manual activation. The checkdiskspace.timer does not need to be started using the sudo command, because the administrator is already running systemctl as root, as indicated by the # prompt. References: systemd.timer(5) &#8211; Linux manual page; systemctl(1) &#8211; Linux manual page<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(9,this)' id='btn-9' value='See Answer'  \/><input type='hidden' id='questionType9' value='radio' class=''><\/div><div class='watu-question' id='question-10'><div class='question-content'><p><strong>QUESTION 348<\/strong><br \/>A DevOps engineer needs to allow incoming traffic to ports in the range of 4000 to 5000 on a Linux server. Which of the following commands will enforce this rule?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17362' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67156' \/><div class='watu-question-choice'><input type='radio' name='answer-17362[]' id='answer-id-67156' class='answer answer-10 js-answer-label answerof-17362' value='67156' \/>&nbsp;<label for='answer-id-67156' id='answer-label-67156' class='js-answer-label answer label-10'><span class='answer'>iptables -f filter -I INPUT -p tcp &#8211;dport 4000:5000 -A ACCEPT<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67157' \/><div class='watu-question-choice'><input type='radio' name='answer-17362[]' id='answer-id-67157' class='answer answer-10 php-answer-label answerof-17362' value='67157' \/>&nbsp;<label for='answer-id-67157' id='answer-label-67157' class='php-answer-label answer label-10'><span class='answer'>iptables -t filter -A INPUT -p tcp &#8211;dport 4000:5000 -j ACCEPT<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67158' \/><div class='watu-question-choice'><input type='radio' name='answer-17362[]' id='answer-id-67158' class='answer answer-10 js-answer-label answerof-17362' value='67158' \/>&nbsp;<label for='answer-id-67158' id='answer-label-67158' class='js-answer-label answer label-10'><span class='answer'>iptables filter -A INPUT -p tcp &#8211;dport 4000:5000 -D ACCEPT<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67159' \/><div class='watu-question-choice'><input type='radio' name='answer-17362[]' id='answer-id-67159' class='answer answer-10 js-answer-label answerof-17362' value='67159' \/>&nbsp;<label for='answer-id-67159' id='answer-label-67159' class='js-answer-label answer label-10'><span class='answer'>iptables filter -S INPUT -p tcp &#8211;dport 4000:5000 -A ACCEPT<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The command iptables -t filter -A INPUT -p tcp &#8211;dport 4000:5000 -j ACCEPT will enforce the rule of allowing incoming traffic to ports in the range of 4000 to 5000 on a Linux server. The iptables command is a tool for managing firewall rules on Linux systems. The -t option specifies the table to operate on, in this case filter, which is the default table that contains the rules for filtering packets. The -A option appends a new rule to the end of a chain, in this case INPUT, which is the chain that processes the packets that are destined for the local system. The -p option specifies the protocol to match, in this case tcp, which is the transmission control protocol. The &#8211;dport option specifies the destination port or port range to match, in this case 4000:5000, which is the range of ports from 4000 to 5000. The -j option specifies the target to jump to if the rule matches, in this case ACCEPT, which is the target that allows the packet to pass through. The command iptables -t filter -A INPUT -p tcp &#8211;dport 4000:5000 -j ACCEPT will add a new rule to the end of the INPUT chain that will accept the incoming TCP packets that have a destination port between 4000 and 5000. This command will enforce the rule and allow the traffic to the specified ports. This is the correct command to use to accomplish the task. The other options are incorrect because they either use the wrong options (-f instead of -t or -D instead of -A) or do not exist (iptables filter -A INPUT -p tcp &#8211;dport 4000:5000 -D ACCEPT or iptables filter -S INPUT -p tcp &#8211;dport 4000:5000 -A ACCEPT). Reference: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 18: Securing Linux Systems, page 543.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(10,this)' id='btn-10' value='See Answer'  \/><input type='hidden' id='questionType10' value='radio' class=''><\/div><div class='watu-question' id='question-11'><div class='question-content'><p><strong>QUESTION 349<\/strong><br \/>As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:<br \/>Add relevant content to \/tmp\/script.sh, so that it finds and compresses rotated files in \/var\/log without recursion.<br \/>INSTRUCTIONS<br \/>Fill the blanks to build a script that performs the actual compression of rotated log files.<br \/>If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-858aa9b83a6b5e3952acee272fef4b3b.jpg\"\/><\/p>\n<\/div><input type='hidden' name='question_id[]' value='17363' \/><textarea name='answer-17363[]' rows='5' cols='40' id='textarea_q_17363' class='watu-textarea watu-textarea-11'><\/textarea><div class='watu-questions-wrap '><\/div><div class='show-question-feedback' style='display:none;'><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-656cf52f1dfa4afff9d11e3546b4275c.jpg\"\/><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(11,this)' id='btn-11' value='See Answer'  \/><input type='hidden' id='questionType11' value='textarea' class=''><\/div><div class='watu-question' id='question-12'><div class='question-content'><p><strong>QUESTION 350<\/strong><br \/>An administrator added the port 2222 for the SSH server on myhost and restarted the SSH server. The administrator noticed issues during the startup of the service. Given the following outputs:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-42561ba5123ba0464868250698586f4b.jpg\"\/><br \/>Which of the following commands will fix the issue?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17364' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67160' \/><div class='watu-question-choice'><input type='radio' name='answer-17364[]' id='answer-id-67160' class='answer answer-12 php-answer-label answerof-17364' value='67160' \/>&nbsp;<label for='answer-id-67160' id='answer-label-67160' class='php-answer-label answer label-12'><span class='answer'>semanage port -a -t ssh_port_t -p tcp 2222<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67161' \/><div class='watu-question-choice'><input type='radio' name='answer-17364[]' id='answer-id-67161' class='answer answer-12 js-answer-label answerof-17364' value='67161' \/>&nbsp;<label for='answer-id-67161' id='answer-label-67161' class='js-answer-label answer label-12'><span class='answer'>chcon system_u:object_r:ssh_home_t \/etc\/ssh\/*<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67162' \/><div class='watu-question-choice'><input type='radio' name='answer-17364[]' id='answer-id-67162' class='answer answer-12 js-answer-label answerof-17364' value='67162' \/>&nbsp;<label for='answer-id-67162' id='answer-label-67162' class='js-answer-label answer label-12'><span class='answer'>iptables -A INPUT -p tcp &#8212; dport 2222 -j ACCEPT<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67163' \/><div class='watu-question-choice'><input type='radio' name='answer-17364[]' id='answer-id-67163' class='answer answer-12 js-answer-label answerof-17364' value='67163' \/>&nbsp;<label for='answer-id-67163' id='answer-label-67163' class='js-answer-label answer label-12'><span class='answer'>firewall-cmd &#8212; zone=public &#8212; add-port=2222\/tcp<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The correct answer is<br\/>A) semanage port -a -t ssh_port_t -p tcp 2222<br\/>This command will allow the SSH server to bind to port 2222 by adding it to the SELinux policy. The semanage command is a utility for managing SELinux policies. The port subcommand is used to manage network port definitions. The -a option is used to add a new record, the -t option is used to specify the SELinux type, the -p option is used to specify the protocol, and the tcp 2222 argument is used to specify the port number. The ssh_port_t type is the default type for SSH ports in SELinux.<br\/>The other options are incorrect because:<br\/>B) chcon system_u:object_r:ssh_home_t \/etc\/ssh\/*<br\/>This command will change the SELinux context of all files under \/etc\/ssh\/ to system_u:object_r:ssh_home_t, which is not correct. The ssh_home_t type is used for user home directories that are accessed by SSH, not for SSH configuration files. The correct type for SSH configuration files is sshd_config_t.<br\/>C) iptables -A INPUT -p tcp &#8211;dport 2222 -j ACCEPT<br\/>This command will add a rule to the iptables firewall to accept incoming TCP connections on port 2222. However, this is not enough to fix the issue, as SELinux will still block the SSH server from binding to that port. Moreover, iptables may not be the default firewall service on some Linux distributions, such as Fedora or CentOS, which use firewalld instead.<br\/>D) firewall-cmd &#8211;zone=public &#8211;add-port=2222\/tcp<br\/>This command will add a rule to the firewalld firewall to allow incoming TCP connections on port 2222 in the public zone. However, this is not enough to fix the issue, as SELinux will still block the SSH server from binding to that port. Moreover, firewalld may not be installed or enabled on some Linux distributions, such as Ubuntu or Debian, which use iptables instead.<br\/>Reference:<br\/>How to configure SSH to use a non-standard port with SELinux set to enforcing Change SSH Port on CentOS\/RHEL\/Fedora With SELinux Enforcing How to change SSH port when SELinux policy is enabled<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(12,this)' id='btn-12' value='See Answer'  \/><input type='hidden' id='questionType12' value='radio' class=''><\/div><div class='watu-question' id='question-13'><div class='question-content'><p><strong>QUESTION 351<\/strong><br \/>A systems administrator is tasked with creating a cloud-based server with a public IP address.<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-4195a214f0bb23054b5483451f611742.jpg\"\/><br \/>Which of the following technologies did the systems administrator use to complete this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17365' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67164' \/><div class='watu-question-choice'><input type='radio' name='answer-17365[]' id='answer-id-67164' class='answer answer-13 js-answer-label answerof-17365' value='67164' \/>&nbsp;<label for='answer-id-67164' id='answer-label-67164' class='js-answer-label answer label-13'><span class='answer'>Puppet<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67165' \/><div class='watu-question-choice'><input type='radio' name='answer-17365[]' id='answer-id-67165' class='answer answer-13 js-answer-label answerof-17365' value='67165' \/>&nbsp;<label for='answer-id-67165' id='answer-label-67165' class='js-answer-label answer label-13'><span class='answer'>Git<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67166' \/><div class='watu-question-choice'><input type='radio' name='answer-17365[]' id='answer-id-67166' class='answer answer-13 js-answer-label answerof-17365' value='67166' \/>&nbsp;<label for='answer-id-67166' id='answer-label-67166' class='js-answer-label answer label-13'><span class='answer'>Ansible<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67167' \/><div class='watu-question-choice'><input type='radio' name='answer-17365[]' id='answer-id-67167' class='answer answer-13 php-answer-label answerof-17365' value='67167' \/>&nbsp;<label for='answer-id-67167' id='answer-label-67167' class='php-answer-label answer label-13'><span class='answer'>Terraform<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Explanation<br\/>The systems administrator used Terraform to create a cloud-based server with a public IP address. Terraform is a tool for building, changing, and versioning infrastructure as code. Terraform can create and manage resources on different cloud platforms, such as AWS, Azure, or Google Cloud. Terraform uses a declarative syntax to describe the desired state of the infrastructure and applies the changes accordingly. Terraform can also assign a public IP address to a cloud server by using the appropriate resource attributes. This is the correct technology that the systems administrator used to complete the task. The other options are incorrect because they are either not designed for creating cloud servers (Puppet or Git) or not capable of assigning public IP addresses (Ansible). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 19:<br\/>Managing Cloud and Virtualization Technologies, page 559.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(13,this)' id='btn-13' value='See Answer'  \/><input type='hidden' id='questionType13' value='radio' class=''><\/div><div class='watu-question' id='question-14'><div class='question-content'><p><strong>QUESTION 352<\/strong><br \/>A cloud engineer wants to delete all unused networks that are not referenced by any container. Which of the following commands will achieve this goal?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17366' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67168' \/><div class='watu-question-choice'><input type='radio' name='answer-17366[]' id='answer-id-67168' class='answer answer-14 js-answer-label answerof-17366' value='67168' \/>&nbsp;<label for='answer-id-67168' id='answer-label-67168' class='js-answer-label answer label-14'><span class='answer'>docker network erase<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67169' \/><div class='watu-question-choice'><input type='radio' name='answer-17366[]' id='answer-id-67169' class='answer answer-14 js-answer-label answerof-17366' value='67169' \/>&nbsp;<label for='answer-id-67169' id='answer-label-67169' class='js-answer-label answer label-14'><span class='answer'>docker network clear<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67170' \/><div class='watu-question-choice'><input type='radio' name='answer-17366[]' id='answer-id-67170' class='answer answer-14 php-answer-label answerof-17366' value='67170' \/>&nbsp;<label for='answer-id-67170' id='answer-label-67170' class='php-answer-label answer label-14'><span class='answer'>docker network prune<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67171' \/><div class='watu-question-choice'><input type='radio' name='answer-17366[]' id='answer-id-67171' class='answer answer-14 js-answer-label answerof-17366' value='67171' \/>&nbsp;<label for='answer-id-67171' id='answer-label-67171' class='js-answer-label answer label-14'><span class='answer'>docker network rm<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The docker command is used to manage Docker containers, images, networks, volumes, and other resources on a Linux system. Docker is a platform that allows users to run applications in isolated environments called containers. Docker also provides networking features that allow users to create and manage networks for containers.<br\/>To delete all unused networks that are not referenced by any container, the cloud engineer can use the docker network prune command. This command will remove all networks that have no containers connected to them.<br\/>The statement C is correct.<br\/>The statements A, B, and D are incorrect because they do not delete all unused networks. The docker network erase and docker network clear commands do not exist. The docker network rm command deletes a specific network by name or ID, but not all unused networks. References: [How to Manage Docker Networks]<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(14,this)' id='btn-14' value='See Answer'  \/><input type='hidden' id='questionType14' value='radio' class=''><\/div><div class='watu-question' id='question-15'><div class='question-content'><p><strong>QUESTION 353<\/strong><br \/>A cloud engineer needs to change the secure remote login port from 22 to 49000. Which of the following files should the engineer modify to change the port number to the desired value?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17367' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67172' \/><div class='watu-question-choice'><input type='radio' name='answer-17367[]' id='answer-id-67172' class='answer answer-15 js-answer-label answerof-17367' value='67172' \/>&nbsp;<label for='answer-id-67172' id='answer-label-67172' class='js-answer-label answer label-15'><span class='answer'>\/etc\/host.conf<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67173' \/><div class='watu-question-choice'><input type='radio' name='answer-17367[]' id='answer-id-67173' class='answer answer-15 js-answer-label answerof-17367' value='67173' \/>&nbsp;<label for='answer-id-67173' id='answer-label-67173' class='js-answer-label answer label-15'><span class='answer'>\/etc\/hostname<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67174' \/><div class='watu-question-choice'><input type='radio' name='answer-17367[]' id='answer-id-67174' class='answer answer-15 js-answer-label answerof-17367' value='67174' \/>&nbsp;<label for='answer-id-67174' id='answer-label-67174' class='js-answer-label answer label-15'><span class='answer'>\/etc\/services<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67175' \/><div class='watu-question-choice'><input type='radio' name='answer-17367[]' id='answer-id-67175' class='answer answer-15 php-answer-label answerof-17367' value='67175' \/>&nbsp;<label for='answer-id-67175' id='answer-label-67175' class='php-answer-label answer label-15'><span class='answer'>\/etc\/ssh\/sshd_config<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Explanation<br\/>The file \/etc\/ssh\/sshd_config contains the configuration settings for the SSH daemon, which handles the secure remote login. To change the port number, the engineer should edit this file and modify the line that says Port<br\/>22 to Port 49000. The other files are not related to the SSH service. References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 13: Managing Network Services, page 411.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(15,this)' id='btn-15' value='See Answer'  \/><input type='hidden' id='questionType15' value='radio' class=''><\/div><div class='watu-question' id='question-16'><div class='question-content'><p><strong>QUESTION 354<\/strong><br \/>A server administrator has scheduled a cron job to run YUM updates on all servers without manual intervention, but kernel packages must be excluded from the updates at all times. Which of the following configuration files needs to be modified to make these changes persistent?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17368' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67176' \/><div class='watu-question-choice'><input type='radio' name='answer-17368[]' id='answer-id-67176' class='answer answer-16 php-answer-label answerof-17368' value='67176' \/>&nbsp;<label for='answer-id-67176' id='answer-label-67176' class='php-answer-label answer label-16'><span class='answer'>\/etc\/yum.conf<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67177' \/><div class='watu-question-choice'><input type='radio' name='answer-17368[]' id='answer-id-67177' class='answer answer-16 js-answer-label answerof-17368' value='67177' \/>&nbsp;<label for='answer-id-67177' id='answer-label-67177' class='js-answer-label answer label-16'><span class='answer'>\/etc\/dnf\/dnf.conf<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67178' \/><div class='watu-question-choice'><input type='radio' name='answer-17368[]' id='answer-id-67178' class='answer answer-16 js-answer-label answerof-17368' value='67178' \/>&nbsp;<label for='answer-id-67178' id='answer-label-67178' class='js-answer-label answer label-16'><span class='answer'>\/etc\/yum\/pluginconf.d\/packages.conf<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67179' \/><div class='watu-question-choice'><input type='radio' name='answer-17368[]' id='answer-id-67179' class='answer answer-16 js-answer-label answerof-17368' value='67179' \/>&nbsp;<label for='answer-id-67179' id='answer-label-67179' class='js-answer-label answer label-16'><span class='answer'>\/etc\/yum.repo.d\/kernel.repo<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The \/etc\/yum.conf file contains configuration settings for the YUM package manager. To exclude kernel updates, the administrator should add exclude=kernel* to the [main] section of this file. This ensures that all future YUM updates skip kernel packages, making the exclusion persistent.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(16,this)' id='btn-16' value='See Answer'  \/><input type='hidden' id='questionType16' value='radio' class=''><\/div><div class='watu-question' id='question-17'><div class='question-content'><p><strong>QUESTION 355<\/strong><br \/>Developers have requested implementation of a persistent, static route on the application server. Packets sent over the interface eth0 to 10.0.213.5\/32 should be routed via 10.0.5.1. Which of the following commands should the administrator run to achieve this goal?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17369' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67180' \/><div class='watu-question-choice'><input type='radio' name='answer-17369[]' id='answer-id-67180' class='answer answer-17 js-answer-label answerof-17369' value='67180' \/>&nbsp;<label for='answer-id-67180' id='answer-label-67180' class='js-answer-label answer label-17'><span class='answer'>echo &#8220;10.0.213.5 10.0.5.1 eth0&#8221; &gt; \/proc\/net\/route<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67181' \/><div class='watu-question-choice'><input type='radio' name='answer-17369[]' id='answer-id-67181' class='answer answer-17 js-answer-label answerof-17369' value='67181' \/>&nbsp;<label for='answer-id-67181' id='answer-label-67181' class='js-answer-label answer label-17'><span class='answer'>route modify eth0 +ipv4.routes &#8220;10.0.213.5\/32 10.0.5.1&#8221;<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67182' \/><div class='watu-question-choice'><input type='radio' name='answer-17369[]' id='answer-id-67182' class='answer answer-17 php-answer-label answerof-17369' value='67182' \/>&nbsp;<label for='answer-id-67182' id='answer-label-67182' class='php-answer-label answer label-17'><span class='answer'>ip route add 10.0.213.5\/32 via 10.0.5.1 dev eth0<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67183' \/><div class='watu-question-choice'><input type='radio' name='answer-17369[]' id='answer-id-67183' class='answer answer-17 js-answer-label answerof-17369' value='67183' \/>&nbsp;<label for='answer-id-67183' id='answer-label-67183' class='js-answer-label answer label-17'><span class='answer'>route -i etho -p add 10.0.213.5 10.0.5.1<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(17,this)' id='btn-17' value='See Answer'  \/><input type='hidden' id='questionType17' value='radio' class=''><\/div><div class='watu-question' id='question-18'><div class='question-content'><p><strong>QUESTION 356<\/strong><br \/>A systems administrator receives reports that several virtual machines in a host are responding slower than expected. Upon further investigation, the administrator obtains the following output from one of the affected systems:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-a02401c324ef3e151c3e774471fe4afd.jpg\"\/><br \/>Which of the following best explains the reported issue?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17370' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67184' \/><div class='watu-question-choice'><input type='radio' name='answer-17370[]' id='answer-id-67184' class='answer answer-18 js-answer-label answerof-17370' value='67184' \/>&nbsp;<label for='answer-id-67184' id='answer-label-67184' class='js-answer-label answer label-18'><span class='answer'>The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67185' \/><div class='watu-question-choice'><input type='radio' name='answer-17370[]' id='answer-id-67185' class='answer answer-18 js-answer-label answerof-17370' value='67185' \/>&nbsp;<label for='answer-id-67185' id='answer-label-67185' class='js-answer-label answer label-18'><span class='answer'>The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67186' \/><div class='watu-question-choice'><input type='radio' name='answer-17370[]' id='answer-id-67186' class='answer answer-18 js-answer-label answerof-17370' value='67186' \/>&nbsp;<label for='answer-id-67186' id='answer-label-67186' class='js-answer-label answer label-18'><span class='answer'>The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67187' \/><div class='watu-question-choice'><input type='radio' name='answer-17370[]' id='answer-id-67187' class='answer answer-18 php-answer-label answerof-17370' value='67187' \/>&nbsp;<label for='answer-id-67187' id='answer-label-67187' class='php-answer-label answer label-18'><span class='answer'>The virtual machine is running out of CPU resources, leading to users experiencing longer response times.<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Based on the output from one of the affected systems, the best explanation for the reported issue is that the virtual machine is running out of CPU resources, leading to users experiencing longer response times (D). The output shows that the system use percentage is very high (57.85%), indicating that the virtual machine is using most of its CPU cycles for system processes. This leaves little CPU time for user processes, which results in slower performance. The other explanations are not supported by the output or are contradictory. Reference:<br\/>[CompTIA Linux+ Study Guide], Chapter 8: Optimizing Linux Performance, Section: Monitoring CPU Usage<br\/>[How to Interpret CPU Usage Statistics]<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(18,this)' id='btn-18' value='See Answer'  \/><input type='hidden' id='questionType18' value='radio' class=''><\/div><div class='watu-question' id='question-19'><div class='question-content'><p><strong>QUESTION 357<\/strong><br \/>An administrator needs to download a monitoring agent called node_exporter.0.16.0- Linux.amd64 from the internal web page https:\/\/company.local\/downloads\/. The server does not have graphical interface.<br \/>Which of the following commands will accomplish this task?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17371' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67188' \/><div class='watu-question-choice'><input type='radio' name='answer-17371[]' id='answer-id-67188' class='answer answer-19 js-answer-label answerof-17371' value='67188' \/>&nbsp;<label for='answer-id-67188' id='answer-label-67188' class='js-answer-label answer label-19'><span class='answer'>curl -K https:\/\/company.local\/downloads\/node_exporter.0.16.0-<br \/>Linux.amd64.tar.gz -o node_exporter.tar.gz<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67189' \/><div class='watu-question-choice'><input type='radio' name='answer-17371[]' id='answer-id-67189' class='answer answer-19 php-answer-label answerof-17371' value='67189' \/>&nbsp;<label for='answer-id-67189' id='answer-label-67189' class='php-answer-label answer label-19'><span class='answer'>curl -k https:\/\/company.local\/downloads\/node_exporter.0.16.0-<br \/>Linux.amd64.tar.gz -o node_exporter.tar.gz<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67190' \/><div class='watu-question-choice'><input type='radio' name='answer-17371[]' id='answer-id-67190' class='answer answer-19 js-answer-label answerof-17371' value='67190' \/>&nbsp;<label for='answer-id-67190' id='answer-label-67190' class='js-answer-label answer label-19'><span class='answer'>curl &#8211;auth https:\/\/company.local\/downloads\/node_exporter.0.16.0-<br \/>Linux.amd64.tar.gz<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67191' \/><div class='watu-question-choice'><input type='radio' name='answer-17371[]' id='answer-id-67191' class='answer answer-19 js-answer-label answerof-17371' value='67191' \/>&nbsp;<label for='answer-id-67191' id='answer-label-67191' class='js-answer-label answer label-19'><span class='answer'>curl -A https:\/\/company.local\/downloads\/node_exporter.0.16.0-<br \/>Linux.amd64.tar.gz -o node_exporter.tar.gz<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'><\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(19,this)' id='btn-19' value='See Answer'  \/><input type='hidden' id='questionType19' value='radio' class=''><\/div><div class='watu-question' id='question-20'><div class='question-content'><p><strong>QUESTION 358<\/strong><br \/>An administrator is running a web server in a container named web, but none of the error output is not showing. Which of the following should the administrator use to generate the errors on the container?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17372' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67192' \/><div class='watu-question-choice'><input type='radio' name='answer-17372[]' id='answer-id-67192' class='answer answer-20 js-answer-label answerof-17372' value='67192' \/>&nbsp;<label for='answer-id-67192' id='answer-label-67192' class='js-answer-label answer label-20'><span class='answer'>docker-compose inspect WEB<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67193' \/><div class='watu-question-choice'><input type='radio' name='answer-17372[]' id='answer-id-67193' class='answer answer-20 php-answer-label answerof-17372' value='67193' \/>&nbsp;<label for='answer-id-67193' id='answer-label-67193' class='php-answer-label answer label-20'><span class='answer'>docker logs WEB<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67194' \/><div class='watu-question-choice'><input type='radio' name='answer-17372[]' id='answer-id-67194' class='answer answer-20 js-answer-label answerof-17372' value='67194' \/>&nbsp;<label for='answer-id-67194' id='answer-label-67194' class='js-answer-label answer label-20'><span class='answer'>docker run &#8211;name WEB &#8211;volume\/dev\/stdout:\/var\/log\/nginx\/error.log<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67195' \/><div class='watu-question-choice'><input type='radio' name='answer-17372[]' id='answer-id-67195' class='answer answer-20 js-answer-label answerof-17372' value='67195' \/>&nbsp;<label for='answer-id-67195' id='answer-label-67195' class='js-answer-label answer label-20'><span class='answer'>docker ps WEB -f<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The docker logs command is used to fetch the logs of a container. If the error output is not showing for a running container, the docker logs command can be used to view these details.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(20,this)' id='btn-20' value='See Answer'  \/><input type='hidden' id='questionType20' value='radio' class=''><\/div><div class='watu-question' id='question-21'><div class='question-content'><p><strong>QUESTION 359<\/strong><br \/>A systems administrator received a notification that a system is performing slowly. When running the top command, the systems administrator can see the following values:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-af5bed8d27d8a7f1ab07c7b686fcca61.jpg\"\/><br \/>Which of the following commands will the administrator most likely run NEXT?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17373' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67196' \/><div class='watu-question-choice'><input type='radio' name='answer-17373[]' id='answer-id-67196' class='answer answer-21 php-answer-label answerof-17373' value='67196' \/>&nbsp;<label for='answer-id-67196' id='answer-label-67196' class='php-answer-label answer label-21'><span class='answer'>vmstat<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67197' \/><div class='watu-question-choice'><input type='radio' name='answer-17373[]' id='answer-id-67197' class='answer answer-21 js-answer-label answerof-17373' value='67197' \/>&nbsp;<label for='answer-id-67197' id='answer-label-67197' class='js-answer-label answer label-21'><span class='answer'>strace<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67198' \/><div class='watu-question-choice'><input type='radio' name='answer-17373[]' id='answer-id-67198' class='answer answer-21 js-answer-label answerof-17373' value='67198' \/>&nbsp;<label for='answer-id-67198' id='answer-label-67198' class='js-answer-label answer label-21'><span class='answer'>htop<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67199' \/><div class='watu-question-choice'><input type='radio' name='answer-17373[]' id='answer-id-67199' class='answer answer-21 js-answer-label answerof-17373' value='67199' \/>&nbsp;<label for='answer-id-67199' id='answer-label-67199' class='js-answer-label answer label-21'><span class='answer'>lsof<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>Explanation<br\/>The command vmstat will most likely be run next by the administrator to troubleshoot the system performance. The vmstat command is a tool for reporting virtual memory statistics on Linux systems. The command shows information about processes, memory, paging, block IO, interrupts, and CPU activity. The command can help the administrator identify the source of the performance issue, such as high CPU usage, low free memory, excessive swapping, or disk IO bottlenecks. The command can also be used with an interval and a count to display the statistics repeatedly over time and observe the changes. The command vmstat will provide useful information for diagnosing the system performance and finding the root cause of the issue. This is the most likely command to run next after the top command. The other options are incorrect because they either do not show the virtual memory statistics (strace or lsof) or do not provide more information than the top command (htop). References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 14:<br\/>Managing Processes and Scheduling Tasks, page 425.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(21,this)' id='btn-21' value='See Answer'  \/><input type='hidden' id='questionType21' value='radio' class=''><\/div><div class='watu-question' id='question-22'><div class='question-content'><p><strong>QUESTION 360<\/strong><br \/>A developer has been unable to remove a particular data folder that a team no longer uses. The developer escalated the issue to the systems administrator. The following output was received:<br \/><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/uploads\/2026\/03\/XK0-005-a2a9b5e19b1bfc7ecd28907148db2fcd.jpg\"\/><br \/>Which of the following commands can be used to resolve this issue?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17374' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67200' \/><div class='watu-question-choice'><input type='radio' name='answer-17374[]' id='answer-id-67200' class='answer answer-22 js-answer-label answerof-17374' value='67200' \/>&nbsp;<label for='answer-id-67200' id='answer-label-67200' class='js-answer-label answer label-22'><span class='answer'>chgrp -R 755 data\/<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67201' \/><div class='watu-question-choice'><input type='radio' name='answer-17374[]' id='answer-id-67201' class='answer answer-22 js-answer-label answerof-17374' value='67201' \/>&nbsp;<label for='answer-id-67201' id='answer-label-67201' class='js-answer-label answer label-22'><span class='answer'>chmod -R 777 data\/<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67202' \/><div class='watu-question-choice'><input type='radio' name='answer-17374[]' id='answer-id-67202' class='answer answer-22 php-answer-label answerof-17374' value='67202' \/>&nbsp;<label for='answer-id-67202' id='answer-label-67202' class='php-answer-label answer label-22'><span class='answer'>chattr -R -i data\/<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67203' \/><div class='watu-question-choice'><input type='radio' name='answer-17374[]' id='answer-id-67203' class='answer answer-22 js-answer-label answerof-17374' value='67203' \/>&nbsp;<label for='answer-id-67203' id='answer-label-67203' class='js-answer-label answer label-22'><span class='answer'>chown -R data\/<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The command that can be used to resolve the issue of being unable to remove a particular data folder is chattr -R -i data\/. This command will use the chattr utility to change file attributes on a Linux file system. The -R option means that chattr will recursively change attributes of directories and their contents. The -i option means that chattr will remove (unset) the immutable attribute from files or directories. When a file or directory has the immutable attribute set, it cannot be modified, deleted, or renamed.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(22,this)' id='btn-22' value='See Answer'  \/><input type='hidden' id='questionType22' value='radio' class=''><\/div><div class='watu-question' id='question-23'><div class='question-content'><p><strong>QUESTION 361<\/strong><br \/>A systems administrator frequently connects to a remote host via SSH and a non-standard port. The systems administrator would like to avoid passing the port parameter on the command line every time. Which of the following files can be used to set a different port value for that host?<\/p>\n<\/div><input type='hidden' name='question_id[]' value='17375' \/><div class='watu-questions-wrap '><input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67204' \/><div class='watu-question-choice'><input type='radio' name='answer-17375[]' id='answer-id-67204' class='answer answer-23 js-answer-label answerof-17375' value='67204' \/>&nbsp;<label for='answer-id-67204' id='answer-label-67204' class='js-answer-label answer label-23'><span class='answer'>\/etc\/ssh\/sshd_config<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67205' \/><div class='watu-question-choice'><input type='radio' name='answer-17375[]' id='answer-id-67205' class='answer answer-23 js-answer-label answerof-17375' value='67205' \/>&nbsp;<label for='answer-id-67205' id='answer-label-67205' class='js-answer-label answer label-23'><span class='answer'>\/etc\/ssh\/moduli<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67206' \/><div class='watu-question-choice'><input type='radio' name='answer-17375[]' id='answer-id-67206' class='answer answer-23 php-answer-label answerof-17375' value='67206' \/>&nbsp;<label for='answer-id-67206' id='answer-label-67206' class='php-answer-label answer label-23'><span class='answer'>~\/.ssh\/config<\/span><\/label><\/div>\n<input type='hidden' name='answer_ids[]' class='watu-answer-ids' value='67207' \/><div class='watu-question-choice'><input type='radio' name='answer-17375[]' id='answer-id-67207' class='answer answer-23 js-answer-label answerof-17375' value='67207' \/>&nbsp;<label for='answer-id-67207' id='answer-label-67207' class='js-answer-label answer label-23'><span class='answer'>~\/.ssh\/authorized_keys<\/span><\/label><\/div>\n<\/div><div class='show-question-feedback' style='display:none;'>The ~\/.ssh\/config file can be used to set various options for SSH connections, including the port number, for specific hosts or groups of hosts. This file is located in the user&#8217;s home directory and affects only the current user. The \/etc\/ssh\/sshd_config file is used to configure the SSH server daemon, not the client. The \/etc\/ssh<br\/>\/moduli file contains parameters for Diffie-Hellman key exchange, not port settings. The ~\/.ssh<br\/>\/authorized_keys file contains public keys for authentication, not port settings. References: CompTIA Linux+ (XK0-005) Certification Study Guide, Chapter 12: Secure Shell (SSH), page 414.<\/div><input type='button' class='showchecked' style='margin: 10px 0;' onclick='showanswer1(23,this)' id='btn-23' value='See Answer'  \/><input type='hidden' id='questionType23' value='radio' class=''><\/div><div style='display:none' id='question-24'><br \/><div class='question-content'><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading ...\" title=\"Loading ...\" \/>&nbsp;Loading &#8230;<\/div><\/div><br \/>\n<input type=\"button\" name=\"action\" onclick=\"Watu.submitResult()\" id=\"action-button\" style=\"margin:0 auto 20px auto;\" value=\"View Results\"  class=\"watu-submit-button\" \/>\n<input type=\"hidden\" name=\"no_ajax\" value=\"0\"><input type=\"hidden\" name=\"quiz_id\" value=\"883\" \/>\n<input type=\"hidden\" id=\"watuStartTime\" name=\"start_time\" value=\"2026-09-23 08:28:39\" \/>\n<\/form>\n<\/div>\n<div id=\"watu-loading-result\" style=\"display:none;\">\n\t<p align=\"center\"><img decoding=\"async\" src=\"https:\/\/exam.real4prep.com\/wp-content\/plugins\/watu\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading\" title=\"Loading\" \/><\/p>\n<\/div>\t\n<script type=\"text\/javascript\">\nvar exam_id=0;\nvar question_ids='';\nvar watuURL='';\njQuery(function($){\nquestion_ids = \"17353,17354,17355,17356,17357,17358,17359,17360,17361,17362,17363,17364,17365,17366,17367,17368,17369,17370,17371,17372,17373,17374,17375\";\nexam_id = 883;\nWatu.exam_id = exam_id;\nWatu.qArr = question_ids.split(',');\nWatu.post_id = 2226;\nWatu.singlePage = '1';\nWatu.hAppID = \"0.52108600 1790152119\";\nwatuURL = \"https:\/\/exam.real4prep.com\/wp-admin\/admin-ajax.php\";\nWatu.noAlertUnanswered = 0;\n});\n\nfunction showanswer1(e,q) {\n\tvar check = new Array();\n\tjQuery('.answer-' + e).each(function (i) {\n\t\tcheck.push(this.checked)\n\t})\n\tlet textval = jQuery('.watu-textarea-' + e).val()\n\tif (jQuery.inArray(true, check) >= 0 || textval !== '' && textval !== undefined) {\n\t\tjQuery(q).stop().fadeOut(300)\n\t\tjQuery('.php-answer-label.label-' + e).addClass(\n\t\t\t'correct-answer'\n\t\t)\n\t\tjQuery('.answer-' + e).each(function (i) {\n\t\t\tif (this.checked && this.className.match(\/js\\-answer\/)) {\n\t\t\t\tvar number = this.id.toString().replace(\/\\D\/g, '')\n\t\t\t\tif (number) {\n\t\t\t\t\tjQuery('#answer-label-' + number).addClass('user-answer')\n\t\t\t\t}\n\t\t\t}\n\t\t})\n\t\tjQuery(q).siblings('.show-question-feedback').stop().fadeIn(300)\n\t\ttextval = ''\n\t} else if (textval == '' || textval == undefined){\n\t\t\/\/jQuery(\".hint\").stop().fadeIn(300)\n\t\talert('Please first answer the question');\n\t}\n}\nvar btnisshow = jQuery(\".php-answer-label\").length\nif (btnisshow > 0) {\n\tjQuery('.showchecked').show()\n} else {\n\tjQuery('.showchecked').hide()\n}\n<\/script>\n<p>CompTIA Linux+ certification is a valuable credential for IT professionals who work with Linux-based systems. It demonstrates their proficiency in managing Linux systems, such as installing and configuring software, managing users and groups, managing file systems and storage, and securing Linux systems. CompTIA Linux+ Certification Exam certification is also recognized by major IT companies, such as Dell, HP, IBM, and Lenovo. The XK0-005 certification exam is designed to test the candidate&#8217;s knowledge and skills in Linux administration, from basic to advanced levels. It is suitable for IT professionals who are new to Linux, as well as those who have some experience with Linux and want to validate their skills.<\/p>\n<p>&nbsp;<\/p>\n<p><strong>XK0-005 Exam Dumps, XK0-005 Practice Test Questions: <a href=\"https:\/\/www.real4prep.com\/XK0-005-exam.html\" target=\"_blank\">https:\/\/www.real4prep.com\/XK0-005-exam.html<\/a><\/strong><\/p>\n\n","protected":false},"excerpt":{"rendered":"<p>[Mar 12, 2026] XK0-005 Exam Dumps, XK0-005 Practice Test Questions Free XK0-005 Study Guides Exam Questions and Answer CompTIA Linux+ certification is vendor-neutral, which means that it&#8230; <\/p>\n","protected":false},"author":1,"featured_media":2227,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"rank_math_lock_modified_date":false,"footnotes":""},"categories":[116,6151],"tags":[6145,6147,6150,6146,6148,6149],"class_list":["post-2226","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comptia","category-xk0-005","tag-xk0-005-latest-exam-camp-sheet","tag-xk0-005-new-study-questions-book","tag-xk0-005-reliable-braindumps-ppt","tag-xk0-005-reliable-study-guide-ebook","tag-xk0-005-trustworthy-dumps","tag-xk0-005-valid-practice-materials"],"_links":{"self":[{"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/posts\/2226","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/comments?post=2226"}],"version-history":[{"count":1,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/posts\/2226\/revisions"}],"predecessor-version":[{"id":2252,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/posts\/2226\/revisions\/2252"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/media\/2227"}],"wp:attachment":[{"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/media?parent=2226"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/categories?post=2226"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/exam.real4prep.com\/ja\/wp-json\/wp\/v2\/tags?post=2226"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}