[Sep-2021] Valid Way To Pass CompTIA Exam Dumps with XK0-004 Exam Study Guide [Q28-Q43]

Share

[Sep-2021] Valid Way To Pass CompTIA Exam Dumps with XK0-004 Exam Study Guide

All XK0-004 Dumps and CompTIA Linux+ Certification Exam Training Courses Help candidates to study and pass the Exams hassle-free!

NEW QUESTION 28
A junior Linux administrator is optimizing a system in which an application needs to take priority 0 when running the process. The administrator runs the ps command and receives the following output:

Given this scenario, which of the following steps will address this issue?

  • A. Issue the command renice -p 0 ~n 8481
  • B. Issue the command ronice -n 0 -p 8481
  • C. Issue the command renice -p 8481
  • D. Issue the command renice -n 8481

Answer: D

 

NEW QUESTION 29
A Linux administrator needs the "tech" account to have the option to run elevated commands as root.
Which of the following commands would BEST meet this goal?

  • A. $ su - tech -c "/bin/bash"
  • B. # sudo -i tech
  • C. # usermod -aG wheel tech
  • D. # groupadd -u tech -g root

Answer: C

 

NEW QUESTION 30
An administrator needs to change the IP address on a server remotely. After updating the configuration files, a network restart is needed. However, the administrator fears that when the network connection drops, the network restart script will be killed before the new IP address has been set.
Which of the following commands would prevent the script from being killed?
nohup service network restart

  • A. echo "service network restart" | at now
  • B.
  • C. service network restart &
  • D. dg service network restart

Answer: C

 

NEW QUESTION 31
An administrator needs to see a list of the system user's encrypted passwords. Which of the following Linux files does the administrator need to read?

  • A. /etc/shadow
  • B. /etc/pw
  • C. /etc/skel
  • D. /etc/passwd

Answer: D

 

NEW QUESTION 32
Which of the following is modified to reconfigure the boot environment?

  • A. grub2-mkconfig
  • B. grub.cfg
  • C. update-grub
  • D. grub-mkconfig

Answer: C

 

NEW QUESTION 33
An administrator is logged into a server remotely and wants to determine if the system is a VM. Which of the following commands would assist with this?

  • A. ps
  • B. dmesg
  • C. top
  • D. vmstat

Answer: D

Explanation:
Reference:
https://ostechnix.com/check-linux-system-physical-virtual-machine/

 

NEW QUESTION 34
A junior administrator is migrating a virtual machine from a Type 1 hypervisor to a Type 2 hypervisor. To ensure portability, which of the following formats should the administrator export from the Type 1 hypervisor to ensure compatibility?

  • A. VDI
  • B. OVA
  • C. OWASP
  • D. VMDK

Answer: B

Explanation:
Reference:
https://docs.vmware.com/en/VMware-Fusion/11/com.vmware.fusion.using.doc/GUID-16E390B1-829D-4289-8442-270A474C106A.html

 

NEW QUESTION 35
A junior Linux administrator needs to ensure a service will start on system boot. Which of the following commands should be used to accomplish this task?

  • A. service <service> enable
  • B. crontab install <service>
  • C. systemctl <service> bootup
  • D. chkconfig <service> on

Answer: D

 

NEW QUESTION 36
Which of the following Linux server roles should be installed to monitor and log local web traffic?

  • A. HTTP server
  • B. SSH server
  • C. Proxy server
  • D. AAA server
  • E. Name server

Answer: C

 

NEW QUESTION 37
A systems administrator received a request to change the hostname to a new name. Which of the following file configurations should be changed to fix the hostname in the server?

  • A. /etc/sysconfig/nsswitch.conf
  • B. /etc/hosts
  • C. /etc/sysconfig/network
  • D. /etc/resolv.conf

Answer: B

Explanation:
Reference https://www.tecmint.com/set-hostname-permanently-in-linux/

 

NEW QUESTION 38
A Linux user wants to give read-only permissions to a directory and its contents. Which of the following commands will allow the user to accomplish this task?

  • A. chmod -R 600 /new_directory/
  • B. chmod -R 400 /new_directory/
  • C. chmod 600 /new_directory/
  • D. chmod 400 /new_directory/

Answer: C

Explanation:
Explanation/Reference: https://www.linode.com/docs/guides/modify-file-permissions-with-chmod/

 

NEW QUESTION 39
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?

  • A. vgcreate
  • B. mkfs.xfs
  • C. pvcreate
  • D. lvcreate

Answer: A

Explanation:
Explanation/Reference: https://www.thegeekstuff.com/2010/08/how-to-create-lvm/

 

NEW QUESTION 40
A systems administrator is configuring options on a newly installed Linux VM that will be deployed to the Pacific time zone. Which of the following sets of commands should the administrator execute to accurately configure the correct time settings?

  • A. cd /etcln -s /usr/share/zoneinfo/US/Pacific localtime
  • B. cd /etc/localln -s /usr/share/zoneinfo/US/Pacific localtime
  • C. cd /usr/share/localln -s /usr/share/zoneinfo/US/Pacific localectl
  • D. cd /usr/localln -s /usr/share/zoneinfo/US/Pacific zoneinfo

Answer: A

 

NEW QUESTION 41
A system administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.
Which of the following could be used to install more Linux servers with the same characteristics?

  • A. /etc/sysconfig/anaconda/cfg
  • B. /etc/sysconfig/installation.cfg
  • C. /root/anaconda-ks.cfg
  • D. /root/anaconda.auto

Answer: C

Explanation:
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/sn-automating-installation

 

NEW QUESTION 42
A systems administrator installs a simple package, but the Linux system returns the following error: rpmdb open fails. To verify if there is a problem in the RPM database, the systems administrator runs the following command:

Which of the following commands should the systems administrator run NEXT to resolve this issue?

  • A. cd/var/lib/rpm; rm -f _db*; rpm --rebuilddb; yum clean all
  • B. cd/var/lib/rpm; rpm -qd; rpm --rebuilddb; yum clean all
  • C. cd/var/lib/rpm; rpm -qa; rm -f _db*; yum clean all
  • D. cd/var/lib/rpm; rpm --rebuilddb ; rm -f _db*; yum clean all

Answer: C

 

NEW QUESTION 43
......

Real Exam Questions & Answers - CompTIA XK0-004 Dump is Ready: https://drive.google.com/open?id=13NOGe-VCA6pgpfSCnwTeZCpKUdNFjDAI

Get Latest [Sep-2021] Conduct effective penetration tests using  Pass4sureCert XK0-004