[2021] Use Valid XK0-004 Exam - Actual Exam Question & Answer [Q38-Q56]

Share

[2021] Use Valid XK0-004 Exam - Actual Exam Question & Answer

Test Engine to Practice XK0-004 Test Questions


Benefits of the CompTIA Linux+ Certification

Given that Linux is becoming one of the most developing areas in the IT field, the CompTIA Linux+ certification indicates that an individual has all the right qualifications in a specific field. Beyond that here are a few benefits of possessing the certificate:

  • It puts you ahead of others in the professional sphere. Particularly now that the job market in the IT industry requires one to have valuable skills, with Linux+, you are certain to have an edge over competitors for the position you seek.
  • CompTIA Linux+ is vendor-neutral, that is why the skills and knowledge gained in preparing for its test can be applied to different systems. In other words, you will be able to effectively work with other tools that have UNIX and macOS.
  • Few IT experts have Linux certification. A recent study indicated that major IT openings had less or no individuals with such accreditation during a job search. In view of this, with Linux+, your application will be among the first.

 

NEW QUESTION 38
A Linux administrator needs to back up the folder /usr/domain, and the output must be a gzip compressed tar. Which of the following commands should be used?

  • A. tar -czvf domain.tar.gz /usr/domain
  • B. tar -cvf /usr/domain domain.tar.gz
  • C. tar -cv domain.tar.gz /usr/domain
  • D. tar -cxzv /usr/domain domain.tar.gz

Answer: A

Explanation:
Reference:
https://help.ubuntu.com/community/BackupYourSystem/TAR

 

NEW QUESTION 39
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. OVA
  • B. VDI
  • C. OWASP
  • D. VMDK

Answer: A

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

 

NEW QUESTION 40
Users are unable to connect to a server using HTTPS. The administrator runs the following command on the remote system:

Then, the administrator runs the following command from a local workstation:

Which of the following steps should the administrator take to address the issue?

  • A. Start the application to run on port 443
  • B. Configure the application to run on an active port
  • C. Update the self-signed certificate
  • D. Allow port 443 through the firewall

Answer: D

 

NEW QUESTION 41
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 -Z
  • C. ls -a
  • D. ls -1

Answer: B

 

NEW QUESTION 42
A junior systems administrator is upgrading a package that was installed on a Red Hat-based system. The administrator is tasked with the following:
Update and install the new package.
Verify the new package version is installed.
Which of the following should be done to BEST accomplish these task? (Choose two.)

  • A. yum upgrade
  • B. rpm -qa
  • C. rpm -e <package name>
  • D. yum install <package name>
  • E. apt-get upgrade
  • F. apt-get <package name>

Answer: B,D

 

NEW QUESTION 43
A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?

  • A. find . -name /home/User3 -print
  • B. du -sh /home/User/
  • C. du -a /home/User3/*
  • D. df -k /home/User/files.txt

Answer: B

 

NEW QUESTION 44
A Linux administrator must identify a user with high disk usage. The administrator runs the # du -s /home/* command and gets the following output:

Based on the output, User3 has the largest amount of disk space used. To clean up the file space, the administrator needs to find out more information about the specific files that are using the most disk space.
Which of the following commands will accomplish this task?

  • A. find . -name /home/User3 -print
  • B. du -sh /home/User/
  • C. du -a /home/User3/*
  • D. df -k /home/User/files.txt

Answer: B

Explanation:
Explanation/Reference: https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space

 

NEW QUESTION 45
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. systemctl <service> bootup
  • B. service <service> enable
  • C. chkconfig <service> on
  • D. crontab install <service>

Answer: C

Explanation:
Explanation/Reference: https://geekflare.com/how-to-auto-start-services-on-boot-in-linux/

 

NEW QUESTION 46
A user is reporting unusual slowness when trying to transfer a large file to an NFS server from a workstation. The administrator runs tracepath and gets the following output:

Which of the following BEST describes the issue and a possible solution?

  • A. The path MTU is lower than the source MTU. Reduce the source MTU setting.
  • B. There are dropped packets at an intermediate router. Work with the network team to correct the issue.
  • C. There is latency on an intermediate router. Increase the path MTU to compensate.
  • D. There is latency at the storage device. Work with the storage team to correct the issue.

Answer: A

 

NEW QUESTION 47
A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstabfile and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?

  • A. quotaon /home
  • B. quotacheck -cg
  • C. mount -o remount /home
  • D. edquota /home

Answer: A

Explanation:
Explanation/Reference: https://www.tecmint.com/set-filesystem-disk-quotas-on-ubuntu/

 

NEW QUESTION 48
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/resolv.conf
  • B. /etc/hosts
  • C. /etc/sysconfig/nsswitch.conf
  • D. /etc/sysconfig/network

Answer: B

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

 

NEW QUESTION 49
Joe, a user, creates a short shell script, shortscript.sh, and saves it in his home directory with default permissions and paths. He then attempts to run the script by typing ./shortscript.sh, but the command fails to execute.
Which of the following commands would have allowed the script to run?

  • A. chgrp shortscript.sh Joe
  • B. chmod u+x shortscript.sh
  • C. chmod 155 ~/shortscript.sh
  • D. source ./shortscript.sh

Answer: B

 

NEW QUESTION 50
A systems administrator suspects a process with a PID of 2864 is consuming resources at an alarming rate.
The administrator uses the command renice -n -5 -p2864, but it does not solve the issue. Which of the following commands should the administrator execute to correct the issue?

  • A. nice -n 5 -p 2864
  • B. renice -n 10 -p 2864
  • C. renice -n -10 -p 2864
  • D. nice -n -5 -p 2864

Answer: C

Explanation:
Explanation/Reference:

 

NEW QUESTION 51
A Linux administrator is testing connectivity to a remote host on a shared terminal. The administrator wants to allow other users to access the terminal while the command is executing.
Which of the following commands should the administrator use?

  • A. ping remotehost < results
  • B. ping remotehost &
  • C. bg ping remotehost
  • D. fg ping remotehost

Answer: A

 

NEW QUESTION 52
Which of the following is the purpose of the vmlinuxfile on a Linux system?

  • A. To prevent a Linux kernel panic
  • B. To start a Linux virtual machine
  • C. To provide the executable kernel for the system
  • D. To enable resource access to the network

Answer: C

Explanation:
Explanation
Explanation/Reference: https://en.wikipedia.org/wiki/Vmlinux

 

NEW QUESTION 53
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system.

The administrator issues the following commands at the terminal:

Respectively, the output of these commands is as follows:

Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?

  • A. Update the /etc/profile.d file using a text editor, navigate to the PATH element add the missing locations, and run the bash_completion.sh script to update the changes.
  • B. Update the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes.
  • C. Update the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
  • D. Update the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.

Answer: B

 

NEW QUESTION 54
A new corporate policy states that Bluetooth should be disabled on all company laptops. Which of the following commands would disable the use of Bluetooth?

  • A. echo "blacklist bluetooth" > /etc/modprobe.d/blacklist-bluetooth
  • B. echo "kill bluetooth" > /etc/modprobe.d/kill-bluetooth
  • C. echo "rmod bluetooth" > /etc/modprobe.d/rmmod-bluetooth
  • D. echo "modprobe bluetooth" > /etc/modprobe.d/modprbe-bluetooth

Answer: D

 

NEW QUESTION 55
A junior systems is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
* View current settings of the LC_ALL environment variable only.
* Modify the LANGenvironment variable to US English Unicode.

  • A. export $LANG = en_US.UTF
  • B. export LANG = en_US.UTF-8
  • C. stty
  • D. cat $LC_ALL
  • E. Given this scenario, which of the following should be performed to meet these requirements? (Choose two.) echo $LC_ALL
  • F. locale

Answer: B,F

Explanation:
Explanation/Reference: https://www.tecmint.com/set-system-locales-in-linux/

 

NEW QUESTION 56
......


CompTIA XK0-004: Preparation Options

CompTIA is a popular certification vendor, which means that the candidates can find numerous preparation resources for the XK0-004 certification exam. The official platform has a plethora of training tools to help the learners ace this test at the first attempt. The official materials that are available for your exam preparation are highlighted below:

  • Virtual Labs

    The learners need to develop practical experience because the CompTIA XK0-004 exam contains performance-based questions, which are designed to evaluate the hands-on skills of the applicants. The interactive virtual labs help you train in practical lab environments. Using this official resource, you can virtually work in the role of an Administrator and complete the tasks that will prepare you for the test as well as the real-world work environment.

  • Instructor-Led Training

    CompTIA offers some of the best instructor-led training courses that will help you develop skills and competence in the exam topics. You can also explore the ones available in your region delivered by the authorized training partners.

  • Study Guides

    To help your self-paced study, you should explore the study guides available for this certification exam. They are available in the eBook and print format on the official website. These resources offer the engaging and highly informative content that focuses on the objectives of the test.

  • eLearning

    The candidates are not restricted by their location or work schedule when preparing for the certification exam. The eLearning resources from the CompTIA training platform can be accessed from anywhere in the world and at any time. The students can gain mastery of the exam objectives through the use of flashcards and videos. To evaluate their learning progress, these materials also include performance-based practice tests.

 

XK0-004 Actual Questions Answers PDF 100% Cover Real Exam Questions: https://www.fast2test.com/XK0-004-premium-file.html

Contact Us

If you have any question please leave me your email address, we will reply and send email to you in 12 hours.

Our Working Time: ( GMT 0:00-15:00 ) From Monday to Saturday

Support: Contact now 

日本語 Deutsch 繁体中文 한국어