The latest updated CompTIA XK0-004 exam dumps and free XK0-004 exam practice questions and answers! Latest updates from leads4pass CompTIA XK0-004 Dumps PDF and XK0-004 Dumps VCE, leads4pass XK0-004 exam questions updated and answers corrected!
Get the full CompTIA XK0-004 dumps from https://www.leads4pass.com/xk0-004.html (VCE&PDF)

Latest XK0-004 PDF for free

Share the CompTIA XK0-004 Dumps PDF for free From leads4pass XK0-004 Dumps part of the distraction collected on Google Drive shared by leads4pass
https://drive.google.com/file/d/1E-9sKUqQMzo4JNDrEfBkb7PzFuUE7oZU/

Latest leads4pass XK0-004 Youtube

Share the latest CompTIA XK0-004 exam practice questions and answers for free from Led4Pass Dumps viewed online by Youtube Videos

https://youtube.com/watch?v=cLNKqYyrjyg

The latest updated CompTIA XK0-004 Exam Practice Questions and Answers Online Practice Test is free to share from leads4pass (Q1-Q13)

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:[2021.1] leads4pass xk0-004 practice test q10

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


Fulldumps shares the latest updated CompTIA XK0-004 exam exercise questions, XK0-004 dumps pdf, and Youtube video learning for free.
All exam questions and answers come from the leads4pass exam dumps shared part! leads4pass updates throughout the year and shares a portion of your exam questions for free to help you understand the exam content and enhance your exam experience!
Get the full CompTIA XK0-004 exam dumps questions at https://www.leads4pass.com/xk0-004.html (pdf&vce)

ps.
Get free CompTIA XK0-004 dumps PDF online: https://drive.google.com/file/d/1E-9sKUqQMzo4JNDrEfBkb7PzFuUE7oZU/

Author