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 181:

    A technician wants to archive and compress all files and folders contained within the /home/user directory. Which of the following commands should the technician execute?

    A. tar xvfz /home/user user.tar.z
    B. tar cvfz ./user.tar.gz /home/user
    C. tar cvfx user.tar.zip /home/user
    D. tar xfvZ user.tar.Z ./home/user

  • Question 182:

    A systems administrator is creating a new volume opt _ app in a volume group app_vg. The new volume should utilize all the available disk space from the newly added disk device /dev/ sdb. Which of the following will achieve the task, assuming the app_vg volume group does not exist yet and the disk device was added but not configured?

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

  • Question 183:

    A systems engineer was configuring a small, single-board device running Linux when the device lost power during an outage. The device was running an SSH server and was set up to obtain an IP address via DHCP. The engineer does not know the hostname of the device but does know the manufacturer and the network it is on.

    Which of the following would output the MOST useful results when attempting to find the device's IP address?

    A. arp
    B. whois
    C. nmap
    D. ping
    E. netcat

  • Question 184:

    Which of the following default files are typically used to contain a list of public keys from other computers? (Choose two.)

    A. ~/.ssh/authorized_keys
    B. ~/.ssh/config
    C. ~/.ssh/id_dsa.pub
    D. ~/.ssh/known_hosts
    E. ~/.ssh/id_rsa
    F. ~/.ssh/id_rsa.pub

  • Question 185:

    A Linux administrator wants to load the KVM module into the kernel. Which of the following commands should the administrator use?

    A. modporbe kvm
    B. rmmod kvm
    C. insmod kvm
    D. depmod kvm

  • Question 186:

    The following represents a partial listing of a user's .bashrc file:

    HISTSIZE=800 HISTFILESIZE=1000 umask 2002 HISTCONTROL=ignoreboth

    When the user opens a terminal, an error message appears:

    Octal number out of range

    Which of the following lines in the partial .bashrc should be modified to prevent the error from occurring?

    A. HISTSIZE=800
    B. HISTFILESIZE=1000
    C. umask 2002
    D. HISTCONTROL=ignoreboth

  • Question 187:

    A server, which is used to collect data about the network and datacenter environment via SNMP, is running out of space. Which of the following should the server administrator implement to reduce disk utilization?

    A. journald
    B. Snapshots
    C. logrotate
    D. tar -cvf

  • Question 188:

    An administrator wants to be able to access a remote server.

    After creating an SSH key pair, which of the following describes where the public key should be placed to allow for key-based authentication?

    A. ~/.ssh/authorized_keys
    B. ~/.ssh/id_rsa.pub
    C. ~/.ssh/known_hosts
    D. ~/.ssh/config

  • Question 189:

    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

  • Question 190:

    Ann, a junior systems administrator, is required to add a line to the /etc/yum.conf file. However, she receives the following error message when she tries to add the line:

    Ann performs some diagnostics to attempt to find the root cause:

    Which of the following commands should Ann execute to write content to /etc/yum?

    A. chmod 755 /etc/yum.conf
    B. setfacl -m m:rw /etc/yum.conf
    C. chattr -i /etc/yum.conf
    D. setenforce 0

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.