[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"doc-seo-310862-105":3,"detail-sidebar-cat-0-en-105":81,"doc-detail-310862-en":130},{"code":4,"msg":5,"data":6},0,"ok",{"site_id":7,"language":8,"slug":9,"title":10,"keywords":11,"description":12,"schema_data":13,"social_meta":74,"head_meta":76,"extra_data":78,"updated_unix":80},105,"en","real-comptia-xk0-005-study-questions-by-maxwell-free-questions-part-1","real-comptia-xk0-005-study-questions-by-maxwell - Free Questions - Part 1","","Free XK0-005 practice questions for CompTIA Linux-focused exam preparation, presented as multiple-choice items with labeled options and direct answers. Covers scheduling tasks in crontab using day-of-week and time fields, creating directories and safely switching locations with proper shell chaining operators, copying log contents into a user directory, sending changes to a remote Git repository via push, restricting SSH access to key-based authentication through SSHD settings, configuring read/write and execute permissions using ACLs, and applying systemd configuration changes using the correct daemon-reload command.",{"@graph":14,"@context":73},[15,34,56],{"@type":16,"itemListElement":17},"BreadcrumbList",[18,23,27,31],{"item":19,"name":20,"@type":21,"position":22},"https://docshare.wps.com","Home","ListItem",1,{"item":24,"name":25,"@type":21,"position":26},"https://docshare.wps.com/document/","Document",2,{"item":28,"name":29,"@type":21,"position":30},"https://docshare.wps.com/document/exam/","Exam",3,{"item":32,"name":10,"@type":21,"position":33},"https://docshare.wps.com/document/real-comptia-xk0-005-study-questions-by-maxwell-free-questions-part-1/310862/",4,{"url":32,"name":10,"@type":35,"image":36,"author":41,"headline":10,"publisher":44,"fileFormat":47,"inLanguage":8,"description":12,"dateModified":48,"datePublished":49,"encodingFormat":47,"isAccessibleForFree":50,"interactionStatistic":51},"DigitalDocument",{"url":37,"@type":38,"width":39,"height":40},"https://docshare.wps.com/thumbnails/real-comptia-xk0-005-study-questions-by-maxwell-free-questions-part-1/310862.png","ImageObject",300,407,{"name":42,"@type":43},"Riley West","Person",{"url":19,"name":45,"@type":46},"DocShare","Organization","application/pdf","2026-11-06","2026-09-20",true,{"@type":52,"interactionType":53,"userInteractionCount":55},"InteractionCounter",{"@type":54},"ViewAction",8,{"@type":57,"mainEntity":58},"FAQPage",[59,65,69],{"name":60,"@type":61,"acceptedAnswer":62},"How should the administrator schedule a task to run only on Saturdays and Sundays at 9:00 a.m. every week?","Question",{"text":63,"@type":64},"Use the crontab day-of-week field with 6,0 and set the time to 9:00 a.m., i.e., the option corresponding to 09 6,0.","Answer",{"name":66,"@type":61,"acceptedAnswer":67},"Which command ensures a directory is created first and then the shell switches into it?",{"text":68,"@type":64},"Use a command chain with && so mkdir runs first and cd runs only if it succeeds, as in the option mkdir CompTIA_doc && cd CompTIA_doc.",{"name":70,"@type":61,"acceptedAnswer":71},"What command applies systemd configuration changes after editing files?",{"text":72,"@type":64},"Run systemctl daemon-reload to make systemd reread the updated configuration.","https://schema.org",{"og:url":32,"og:type":75,"og:title":10,"og:site_name":45,"og:description":12},"article",{"robots":77,"canonical":32},"index,follow",{"doc_id":79,"site_id":7},310862,1790430666,{"code":4,"msg":82,"data":83},"success",[84,88,92,95,100,105,110,114,119,122,126],{"id":22,"doc_module":4,"doc_module_name":25,"category_name":85,"show_sort_weight":86,"slug":87},"Story & Novel",90,"story-novel",{"id":26,"doc_module":4,"doc_module_name":25,"category_name":89,"show_sort_weight":90,"slug":91},"Literature",80,"literature",{"id":33,"doc_module":4,"doc_module_name":25,"category_name":29,"show_sort_weight":93,"slug":94},70,"exam",{"id":96,"doc_module":4,"doc_module_name":25,"category_name":97,"show_sort_weight":98,"slug":99},5,"Comic",60,"comic",{"id":101,"doc_module":4,"doc_module_name":25,"category_name":102,"show_sort_weight":103,"slug":104},6,"Technology",50,"technology",{"id":106,"doc_module":4,"doc_module_name":25,"category_name":107,"show_sort_weight":108,"slug":109},7,"Healthcare",40,"healthcare",{"id":55,"doc_module":4,"doc_module_name":25,"category_name":111,"show_sort_weight":112,"slug":113},"Research & Report",30,"research-report",{"id":115,"doc_module":4,"doc_module_name":25,"category_name":116,"show_sort_weight":117,"slug":118},9,"Religion & Spirituality",20,"religion-spirituality",{"id":117,"doc_module":4,"doc_module_name":25,"category_name":120,"show_sort_weight":117,"slug":121},"World Cup","world-cup",{"id":123,"doc_module":4,"doc_module_name":25,"category_name":124,"show_sort_weight":123,"slug":125},10,"Lifestyle","lifestyle",{"id":127,"doc_module":4,"doc_module_name":25,"category_name":128,"show_sort_weight":96,"slug":129},19,"General","general",{"code":4,"msg":82,"data":131},{"doc_id":79,"user_id":132,"nickname":42,"user_avatar":133,"doc_module":4,"category_id":33,"category_name":29,"doc_title":10,"doc_description":12,"doc_content":134,"file_id":135,"file_url":136,"file_type":137,"file_size":138,"view_count":55,"is_deleted":4,"is_public":22,"is_downloadable":22,"audit_status":22,"page_count":139,"language":140,"language_code":8,"site_id":7,"html_lang":8,"table_of_contents":141,"faqs":142,"seo_title":143,"seo_description":12,"update_tm":144,"read_time":145,"preview_page_count":4},1099523885074,"https://ap-avatar.wpscdn.com/davatar_9964176cb1d06d4a9deccf72a44ae3dc","# Free Questions for XK0-005\n\nShared by Maxwell on 13-05-2025  \nFor More Free Questions and Preparation ResourcesCheck the Links on Last Page  \n## Question 1                    \n\nQuestion Type:MultipleChoice                              \nA Linux administrator is configuring crontab and needs to schedule a task to run only on Saturdayand Sunday at 9:00 a.m.every week of the year.Which of the following should the administratoruse?  \n## Options:\n\nA-09**1-5 root /root/script.sh  \nB-091*/3*root /root/script.sh  \nC-09**6,0 root /root/script.sh  \nD-091**root /root/script.sh  \n## Answer:\n\nC  \n### Explanation:                            \n\nComprehensive and Detailed Step-by-Step  \n09**6,0 ensures execution at 9:00 AM on Saturdays(6)and Sundays(0).  \n1-5 would run the script Monday-Friday.  \n*/3 is incorrect because it runs every three days.  \n1**runs only on the 1st day of each month.  \n## Question 2                    \n\nQuestion Type:MultipleChoice                              \nA Linux administrator is creating a directory called CompTIA_doc and needs to switch to anotherlocation to perform some system-related tasks.Which of the following commands should theadministrator use for this task?  \nOptions:  \nA-mkdir CompTIA doc&cd CompTIA doc  \nB-mkdir CompTIA_doc>cd CompTIA_doc  \nC-mkdir CompTIA_doc ||cd CompTIA_doc  \nD-mkdir CompTIA_doc &&cd CompTIA_doc  \nAnswer:  \nD  \nExplanation:  \nComprehensive and Detailed Step-by-Step  \nmkdir CompTIA_doc &&cd CompTIA_doc ensures that the directory is created first,and only thendoes the command switch into it.  \nmkdir CompTIA doc is incorrect because it attempts to create two separate directories.  \nmkdir CompTIA_doc>cd CompTIA_doc uses incorrect syntax(>is used for output redirection).  \nmkdir CompTIA_doc ||cd CompTIA_doc is incorrect because |means 'execute the secondcommand only if the first one fails.'  \n## Question 3                   \n\nQuestion Type:MultipleChoice                              \nA newly hired junior administrator is studying the format of the /var/log/messages file.Which ofthe following commands should the administrator use to preserve the contents of the original filewhile also creating an identical file in the /home/admin directory?  \nOptions:                                \nA-touch /var/log/messages /home/admin  \nB-mv /var/log/messages /home/admin  \nC-cat /var/log/messages>/home/admin/messages  \nD-In -s /var/log/messages /home/admin  \nAnswer:  \nC  \nExplanation:                             \n### Comprehensive and Detailed Step-by-Step\n\ncat /var/log/messages >/home/admin/messages copies the file contents while preserving theoriginal file.  \ntouch only creates an empty file and does not copy contents.  \nmv moves the file instead of copying it.  \nIn -s creates a symbolic link but does not copy the contents.  \nQuestion 4                       \nQuestion Type:MultipleChoice                              \nWhich of the following Git commands would send committed changes to a remote repository?  \nOptions:                               \nA-git stash  \nB-git commit-a  \nC-git push origin master  \nD-git add.  \nAnswer:  \nC  \nExplanation:                             \nComprehensive and Detailed Step-by-Step  \ngit push origin master pushes committed changes to the remote repository.git stash temporarily saves changes but does not push them.  \ngit commit -a commits changes but does not send them to the remote repository.git add.stages changes but does not commit or push them.  \n## Question 5                    \n\nQuestion Type:MultipleChoice                               \nAn administrator needs to allow remote administrative access to a Linux server only toemployees who are using the authorized private key.Which of the following options should theadministrator set in the SSHD configuration file to achieve the goal?  \nOptions:  \nA-AuthorizedKeysCommand sudo  \nB-PermitRootLogin prohibit-password  \nC-AuthorizedKeysCommandUser root  \nD-PasswordAuthentication no  \nAnswer:  \nD  \nExplanation:  \nComprehensive","cbCaidyEWdWR2rVw","https://ap.wps.com/l/cbCaidyEWdWR2rVw","pdf",174472,13,"English","# Free Questions for XK0-005\n## Question 1\n## Question 2\n## Question 3\n## Question 4\n## Question 5\n## Question 6\n## Question 7","[{\"question\":\"How should the administrator schedule a task to run only on Saturdays and Sundays at 9:00 a.m. every week?\",\"answer\":\"Use the crontab day-of-week field with 6,0 and set the time to 9:00 a.m., i.e., the option corresponding to 09 6,0.\"},{\"question\":\"Which command ensures a directory is created first and then the shell switches into it?\",\"answer\":\"Use a command chain with \\u0026\\u0026 so mkdir runs first and cd runs only if it succeeds, as in the option mkdir CompTIA_doc \\u0026\\u0026 cd CompTIA_doc.\"},{\"question\":\"What command applies systemd configuration changes after editing files?\",\"answer\":\"Run systemctl daemon-reload to make systemd reread the updated configuration.\"}]","real-comptia-xk0-005-study-questions-by-maxwell - Free Questions - Part 1 | PDF",1789891044,33]