Newly shared CompTIA XK0-004 exam learning preparation program! Get the latest XK0-004 exam exercise questions and exam dumps pdf for free! 100% pass the exam to select
the full CompTIA XK0-004 dumps: https://www.leads4pass.com/xk0-004.html the link to get VCE or PDF. All exam questions are updated!
leads4pass offers the latest CompTIA XK0-004 PDF Google Drive
[Latest updates] Free CompTIA XK0-004 dumps pdf download from Google Drive: https://drive.google.com/file/d/1E-9sKUqQMzo4JNDrEfBkb7PzFuUE7oZU/
Certificationdemo Exam Table of Contents:
- CompTIA XK0-004 Practice testing questions from Youtube
- latest updated CompTIA XK0-004 exam questions and answers
- leads4pass CompTIA Discount code 2021
- About leads4pass
CompTIA XK0-004 Practice testing questions from Youtube
latest updated CompTIA XK0-004 exam questions and answers
QUESTION 1
A Linux administrator attempts to install the package newprogram.x86_64.rpm using a package manager.
The administrator receives a warning indicating the command that was run was using a deprecated package manager.
Which of the following commands should the administrator use to avoid the warning and install the
newprogram.x86_64.rpm program?
A. # dnf install newprogram.x86_64.rpm
B. # rpm -e newprogram.x86_64.rpm
C. # dpkg -i newprogram.x86_64.rpm
D. # apt-get install newprogram.x86_64.rpm
Correct Answer: B
QUESTION 2
A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator
suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the
following would allow the administrator to accomplish this?
A. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
B. setenforce 0
C. sestatus 0
D. chcon httpd_sys_content_t /var/
Correct Answer: B
QUESTION 3
A member of the production group issues the following command: echo “Monday through Friday” >
/production_docs/days The command fails to execute, so the user obtains the following output: drwxr–r– root production
0 Jun 16 2018 production -rw-r–r– production production 4096 Jun 14 2018 days
Which of the following commands should the user execute to BEST fix the issue?
A. chmod g+w production to change the permissions of the days file
B. chgrp root production_docs/days to change the group ownership of the production_docs/ days file
C. chmod g+S production to set the GUID on the production_docs directory
D. chown production to change the ownership of the production_docs directory
Correct Answer: D
QUESTION 4
An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network
restart is needed. However, the administrator fears that when the network connection drops, the network restart script
will
be killed before the new IP address has been set.
Which of the following commands would prevent the script from being killed?
A. nohup service network restart
B. service network restart and
C. echo “service network restart” | at now
D. dg service network restart
Correct Answer: A
QUESTION 5
A systems administrator needs to retrieve specific fields from a csv file. Which of the following tools would accomplish
this task?
A. awk
B. sort
C. print
D. echo
Correct Answer: A
Reference: https://stackoverflow.com/questions/19602181/how-to-extract-one-column-of-a-csv-file
QUESTION 6
An administrator needs to see a list of the system user\\’s encrypted passwords. Which of the following Linux files Does the administrator needs to read?
A. /etc/shadow
B. /etc/skel
C. /etc/passwd
D. /etc/pw
Correct Answer: C
Reference: https://www.cyberciti.biz/faq/where-are-the-passwords-of-the-users-located-in-linux/
QUESTION 7
During the final step of staging new Linux hardware, GRUB2 is installed to the system drive. Which of the following
BEST describes the role of GRUB2 in a new Linux installation?
A. It provides a menu for creating administrator task shortcuts.
B. It provides a menu for running special shell scripts.
C. It provides a method to partition a hard drive.
D. It provides a method to pass parameters to the Linux kernel on startup.
Correct Answer: B
Reference:
https://docs.fedoraproject.org/en-US/fedora/rawhide/system-administrators-guide/kernelmoduledriverconfiguration/Working_with_the_GRUB_2_Boot_Loader/
QUESTION 8
A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL. Which of the
following commands would allow the administrator to download the current contents of the URL before updating?
A. curl www.comptia.org/contacts
B. dig www.comptia.org/contacts
C. apt-get www.comptia.org/contacts
D. yum list www.comptia.org/contacts
Correct Answer: A
Reference: https://www.thegeekstuff.com/2012/04/curl-examples/
QUESTION 9
A user has been locked out of an account due to too many failed password attempts. Which of the following commands
will unlock the user\\’s account?
A. pam_tally2 –user=user –reset
B. passwd -u user -G root
C. usermod -u user -G root
D. chage -1 user=user –reset
Correct Answer: A
Reference: https://www.tecmint.com/use-pam_tally2-to-lock-and-unlock-ssh-failed-login-attempts/
QUESTION 10
An administrator has written the following Bash script:
All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the
following error is received: No such file or directory
Which of the following is the MOST likely cause of the error?
A. The shebang points to the wrong path.
B. The script is not executable.
C. The formatting of the file is incorrect.
D. Nslookup is not installed.
Correct Answer: A
QUESTION 11
A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default,
the port for HTTP connections is blocked. Which of the following rules should be added to the firewall to allow this type
of connection?
A. firewall-cmd –zone=public –add-port=443/tcp –permanent
B. firewall-cmd –zone=internal –add-port=80/tcp –permanent
C. firewall-cmd –zone=public –add-port=80/tcp –permanent
D. firewall-cmd –zone=internal –add-port=443/tcp –permanent
Correct Answer: C
QUESTION 12
A Linux system is running normally when the systems administrator receives an alert that one application spawned
many processes. The application is consuming a lot of memory, and it will soon cause the machine to become
unresponsive. Which of the following commands will stop each application process?
A. kill `pidof application\\’
B. killall application
C. kill -9 `ps -aux | grep application\\’
D. pkill -9 application
Correct Answer: B
Reference: https://www.tecmint.com/how-to-kill-a-process-in-linux/
QUESTION 13
An operator finds a user is having issues with opening certain files. Which of the following commands would allow the
security administrator to list and check the SELinux context?
A. ls –D
B. ls –a
C. ls –Z
D. ls -1
Correct Answer: C
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/security- enhanced_linux/sect-securityenhanced_linux-working_with_selinux-selinux_contexts_labeling_files
leads4pass CompTIA Discount code 2021
leads4pass shares the latest CompTIA exam Discount code “CompTIA“. Enter the Discount code to get a 15% Discount!
About leads4pass
leads4pass has 8 years of exam experience! A number of professional CompTIA exam experts! Update exam questions throughout the year! The most complete exam questions and answers! The safest buying experience! The greatest free sharing of exam practice questions and answers!
Our goal is to help more people pass the CompTIA exam! Exams are a part of life, but they are important!
In the study you need to sum up the study! Trust leads4pass to help you pass the exam 100%!
Summarize:
Certificationdemo free to share CompTIA XK0-004 exam exercise questions, XK0-004 pdf, XK0-004 exam video! leads4pass updated exam questions and answers throughout the year!
Make sure you pass the exam successfully. Select lead4Pass XK0-004 to pass CompTIA XK0-004 exam “CompTIA Linux+ Certification Exam certification dumps“.
ps.
Latest update leads4pass XK0-004 exam dumps: https://www.leads4pass.com/xk0-004.html (223 Q&As)
[Latest updates] Free CompTIA XK0-004 Dumps pdf download from Google Drive: https://drive.google.com/file/d/1E-9sKUqQMzo4JNDrEfBkb7PzFuUE7oZU/