The Secret Of CompTIA XK0-004 Testing Software

Act now and download your CompTIA XK0-004 test today! Do not waste time for the worthless CompTIA XK0-004 tutorials. Download Down to date CompTIA CompTIA Linux+ Certification Exam exam with real questions and answers and begin to learn CompTIA XK0-004 with a classic professional.

Check XK0-004 free dumps before getting the full version:

NEW QUESTION 1
Which of the following is the template for the grub.cfg file?

  • A. /etc/default/grub
  • B. /etc/grub2.cfg
  • C. /etc/sysct1.conf
  • D. /boot/efi

Answer: A

NEW QUESTION 2
A systems administrator needs to install a new piece of hardware that requires a new driver. The driver should be manually installed. Which of the following describes the order of commands required to obtain module information, install the module, and check the log for any errors during module installation?

  • A. lsmod, modprobe, modinfo
  • B. modinfo, insmod, modprobe
  • C. modinfo, insmod, dmesg
  • D. lsmod, insmod, dmesg

Answer: A

NEW QUESTION 3
A Linux administrator needs to remotely update the contents of the www.comptia.org/contacts URL.
Which of the following commands would allow the administrator to download the current contents of the URL before updating?

  • A. curl www.comptia.org/contacts
  • B. dig www.comptia.org/contacts
  • C. apt-get www.comptia.org/contacts
  • D. yum list www.comptia.org/contacts

Answer: A

NEW QUESTION 4
A junior Linux administrator needs to access production servers using a secure SSH protocol. Which of the following files should contain the public key to gain remote access to the server?

  • A. ~/ssh/authorized-keys
  • B. /etc/authorized_keys
  • C. /etc/sshd/ssh.conf
  • D. ~/.ssh/authorized_keys

Answer: D

NEW QUESTION 5
Which of the following is a difference between YAML and JSON?

  • A. Users can comment in YAML but not in JSON
  • B. JSON only curly brackets, while YAML only uses square brackets
  • C. JSON is used in web development, while YAML is used solely in back-end systems.
  • D. YAML has been deprecated for JSON.

Answer: A

NEW QUESTION 6
In order to comply with new security policies, an administrator needs to prevent the SSH server from using insecure algorithms.
Which of the following files should be edited to accomplish this?

  • A. /etc/ssh/sshd_config
  • B. /etc/ssh/ssh_config
  • C. ~/.ssh/ssh_config
  • D. /etc/ssh/known_hosts

Answer: A

NEW QUESTION 7
A user, jsmith, needs access to database files located on a server. Which of the following will add jsmith to the “dba” group and preserve existing group memberships?

  • A. usermod –a –G dba jsmith
  • B. usermod –g dba jsmith
  • C. useradd –g dba jsmith
  • D. groupmod dba –u jsmith

Answer: AC

Explanation:
According to the reference given below. Both AC is correct.

NEW QUESTION 8
A Linux administrator retrieved a repository of files from a Git server using git clone. The administrator wants to see if a configuration file was added to the repository. Which of the following Git arguments should be used to see the recent modifications?

  • A. fetch
  • B. log
  • C. init
  • D. pull

Answer: D

NEW QUESTION 9
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. # usermod –aG wheel tech
  • C. # sudo –I tech
  • D. # groupadd –u tech –g root

Answer: C

NEW QUESTION 10
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/skel
  • C. /etc/passwd
  • D. /etc/pw

Answer: C

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

Answer: D

NEW QUESTION 12
Two specific users need access to a directory owned by root where backups are located. Which of the following commands would BEST ensure the specified users can access the backup files?

  • A. umask
  • B. chcon
  • C. chmod
  • D. setfacl

Answer: D

NEW QUESTION 13
A systems administrator needs to append output of ls –lha /opt command to the contents of a test.txt file. Which of the following commands will accomplish this?

  • A. ls –lha /opt > test.txt
  • B. ls –lha /opt < test.txt
  • C. ls –lha /opt >> test.txt
  • D. ls –lha /opt << test.txt

Answer: C

NEW QUESTION 14
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 –cv domain.tar.gz /usr/domain
  • B. tar –cvf /usr/domain domain.tar.gz
  • C. tar –czvf domain.tar.gz /usr/domain
  • D. tar –cxzv /usr/domain domain.tar.gz

Answer: C

NEW QUESTION 15
An administrator has modified the configuration file for a service. The service is still running but is not using the new configured values. Which of the following will BEST remediate this issue?

  • A. kill -HUP
  • B. init 0
  • C. service start
  • D. renice -10

Answer: A

NEW QUESTION 16
......

Thanks for reading the newest XK0-004 exam dumps! We recommend you to try the PREMIUM Certleader XK0-004 dumps in VCE and PDF here: https://www.certleader.com/XK0-004-dumps.html (267 Q&As Dumps)