Exam Details

  • Exam Code
    :XK0-004
  • Exam Name
    :CompTIA Linux+ Certification Exam
  • Certification
    :CompTIA Linux+
  • Vendor
    :CompTIA
  • Total Questions
    :516 Q&As
  • Last Updated
    :Aug 23, 2023

CompTIA CompTIA Linux+ XK0-004 Questions & Answers

  • Question 41:

    A systems administrator needs to conduct maintenance on a server.

    Which of the following commands will place the administrator in the appropriate runlevel?

    A. init 0

    B. telinit 1

    C. init 3

    D. telinit 6

  • Question 42:

    A systems administrator is receiving errors while trying to install a popular virtualization software. The software specifications state the processor needs to support virtualization with Intel instructions. Additional requirements state the processor must accelerate encryption/decryption and use hyperthreading. Given the following output about the processor:

    fpu ume depse tsu msr pae mce cx8 apic sep mtrr pae mca cmov pat pse36 cflusm mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm fsgsbase

    Which of the following is the MOST likely reason for the errors?

    A. The processor supports AMD instructions rather than Intel.

    B. The processor cannot accelerate decryption.

    C. The processor does not support hyperthreading.

    D. The processor is running inside a virtual machine.

  • Question 43:

    A junior systems administrator needs to make a packet capture file that will only capture HTTP protocol data to a file called test.pcap.

    Which of the following commands would allow the administrator to accomplish this task?

    A. netcat -p 80 -w test.pcap

    B. tshark -r test.pcap -o http

    C. tcpdump -i eth0 port 80 -r test.pcap

    D. tcpdump -i eth0 port 80 -w test.pcap

  • Question 44:

    A Linux administrator needs to add some files in a directory to the Git repository but must exclude some local .tmp files that are occasionally created by the scripts.

    Which of the following is the BEST way to accomplish this task?

    A. git rm .tmp

    B. git add -x .tmp *

    C. echo .tmp >> .gitignore

    D. rm -rf .tmp

  • Question 45:

    An administrator receives an alarm because the disk of one of the sewers is running out of space. Which of the following commands can be used to see the space that each partition is using?

    A. df -h

    B. du -scg /

    C. fdisk -l

    D. fsck /

  • Question 46:

    A Linux team is using Git to version a set of custom scripts. A team member has made an update to a script and published the changes to the repository.

    Which of the following is the BEST way to retrieve the latest changes to the administrator's local working copy?

    A. git fetch

    B. git merge

    C. git commit

    D. git pull

  • Question 47:

    When requesting SSH access to a remote system, a user accidentally emailed the id_rsa key to the administrator. Which of the following should the user do NEXT?

    A. Run the ssh-add command to add the remote system to known_hosts.

    B. Ask the administrator to run chmod 600 id_rsa on the remote system.

    C. Delete id_rsa key file and send the id_rsa.pub key file instead.

    D. Stop using that key and run ssh-keygen to generate a new key pair.

  • Question 48:

    A systems administrator needs to connect to a remote Linux machine to run system updates from within a graphical interface. Which of the following should the administrator use?

    A. MATE

    B. Wayland

    C. VNC

    D. Unity

  • Question 49:

    A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1 and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstat file, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1 on which the database application was installed appears to have failed.

    Which of the following steps should the administrator take to remove the device /dev/sdb1 from the RAID array md0? (Choose two.)

    A. mdadm /dev/md0 --remove /dev/sdb1

    B. mdadm /dev/sdb1 --fail /dev/md0

    C. mdadm /dev/md0 --fail /dev/sdb1

    D. mdadm /dev/sdb1 --remove /dev/md0

    E. racadm --remove /dev/sdb1

    F. racadm --fail /dev/sdb1

  • Question 50:

    A user receives an access_denied error when trying to modify a file, even though the file permissions are set to 777. Which of the following commands should be used to view additional file permissions?

    A. getsebool

    B. getenforce

    C. ls -z

    D. ps -z

Tips on How to Prepare for the Exams

Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only CompTIA exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your XK0-004 exam preparations and CompTIA certification application, do not hesitate to visit our Vcedump.com to find your solutions here.