XK0-004 Exam Details

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

CompTIA XK0-004 Online Questions & Answers

  • Question 391:

    A technician reviews the following output:

    Which of the following commands should the technical execute to ensure the system has the appropriate paging? (Select TWO.)

    A. dd if=dev/sda5 of=/tmp bs=512
    B. swapon /dev/sda5
    C. Mkswap/dev/sda5
    D. Mkfs,ext3 /dev/sda5
    E. Lostat/dev/sda 5
    F. Free -m/dev/sda

  • Question 392:

    A systems administrator uses a remote execution engine to iterate through each IP address in a network and run a script on remote hosts. The script captures the remote system's hostname, IP address, OS distribution, and system uptime. The output of the script gets saved to the administrator's local workstation for future processing.

    Which of the following is this an example of?

    A. Performance monitoring
    B. Inventory
    C. Agentless
    D. Infrastructure as code
    E. Build automation

  • Question 393:

    Ann, a junior Linux administrator, needs to copy software from her local machine to assist in developing a software application on a remote machine with the IP address 192.168.3.22. The file needs to be placed on the /tmp directory. After downloading the RPM to the local machine, which of the following commands would be BEST to use to copy the software?

    A. scp ~/software.rpm [email protected]:/tmp
    B. scp ~/software.rpm [email protected]: /tmp
    C. wget [email protected]:/tmp -f ~/software.rpm
    D. scp [email protected] ~/software.rpm :/tmp

  • Question 394:

    Given that a company's policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?

    A. VNC
    B. NX
    C. RDP
    D. X11

  • Question 395:

    A user has connected a Bluetooth mouse to a computer, but it is not working properly. Which of the following commands should the systems administrator use to fix the issue?

    A. lsmod -i bluetooth
    B. insmod bluetooth
    C. modprobe -r bluetooth
    D. depmod -i bluetooth

  • Question 396:

    A systems administrator a retting an HTTPO server on a Lnux server and configuring as a proxy server The administrator runs the following commands to venfy that the service is running:

    However, the arjminrstraior is getting a 503 error when browsing to portal.company. internal. After reviewing the logs, the following error information is discovered:

    Which of the following commands BEST resolves the issue?

    A. sentforce 0
    B. susearch -m USER_LOGIN -sv no
    C. grep http /var/log/audit/audit,log| audit2why
    D. setsebool -p httpd_can_network_connect 1

  • Question 397:

    An administrator is attempting to block SSH connections to 192.168.10.24 using the Linux firewall. After implementing a rule, a connection refused error is displayed when attempting to SSH to 192.168.10.24. Which of the following rules was MOST likely implemented?

    A. iptables -A -p tcp -d 192.168.10.24 --dport 22 -j REJECT
    B. iptables -A -p tcp -d 192.168.10.24 --dport 22 -j DROP
    C. iptables -A -p tcp -d 192.168.10.24 --dport 22 -j FORWARD
    D. iptables -A -p tcp -d 192.168.10.24 --dport 22 -j REFUSE

  • Question 398:

    A lab virtual image is always named pc21.local and in variety of testing situation. The administrator wants to use the IP address pc21.local in a script but is concerned it may change from day to day, as the image is rebuilt fairly often. Which of the following should the administrator add to a script to ensure the IP address is always accurate?

    A. MYIP =$(dig pc21.local +short
    B. MYIP =$(dig pc21.local +norecurse +nocomments)
    C. MYIP =$(dig pc21.local + answer + mostatus
    D. MYIP =$(dig pc21.local +authority)

  • Question 399:

    Administrators needs to copy a local hard drive's contents, master boot record, and partition table onto a remote server securely. Which of he following BEST allows the administrator to do this?

    A. Option A
    B. Option B
    C. Option C
    D. Option D

  • Question 400:

    A Linux administrator needs to back up files from a user's home directory to a remote server. The administrator copied the files last week but must ensure any files created or modified since then are added.

    Which of the following is the BEST command for the administrator to use?

    A. scp -r /home/user99/* [email protected]:/backups/user99/
    B. rsync -r /home/user99 [email protected]:/backups
    C. cp -rf /home/user99/* /mnt/backups/user99/
    D. sftp -b /home/user99/* [email protected]:/backups

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.