[Q60-Q80] Get 100% Passing Success With True XK0-004 Exam! [Aug-2021]

Share

Get 100% Passing Success With True XK0-004 Exam! [Aug-2021] 

CompTIA XK0-004 PDF Questions - Exceptional Practice To CompTIA Linux+ Certification Exam

NEW QUESTION 60
Joe, a member of the accounting group on a Linux system, is unable to write a file called "taxes" in the accounting shared directory. The ownership and permissions on the directory and file are as follows:
accounting drwxrw-r-- user = ann, group = accounting
taxes -rw-r--r-- , user = ann, group = accounting
Which of the following commands would allow Joe to write to the file? (Choose two.)

  • A. chmod u+x accounting
  • B. chmod 774 accounting
  • C. chgrp taxes accounting
  • D. chmod 777 taxes
  • E. chmod g+x accounting
  • F. chgrp accounting taxes

Answer: A,E

 

NEW QUESTION 61
Which of the following BEST describes running on a Linux system?

  • A. Containers only need the cgroups functionality for running on a Linux system. Namespaces is not a Linux kernel functionality needed for creating and managing containers.
  • B. Containers use the cgroups and namespaces functionalities to isolate processes and assign hardware resources to each of those isolated processes.
  • C. Containers need a hypervisor to run a Linux system. Cgroups namespaces are functionalities used for the kernel but not for running containers.
  • D. Containers only need the namespaces functionally to run on a Linux system available since kernel 2.6.

Answer: B

 

NEW QUESTION 62
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. du -a /home/User3/*
  • B. du -sh /home/User/
  • C. find . -name /home/User3 -print
  • D. df -k /home/User/files.txt

Answer: B

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

 

NEW QUESTION 63
Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?

  • A. fdisk /dev/sda
  • B. rm -Rf ~/.*
  • C. df -i
  • D. fsck -y /dev/sda1

Answer: C

Explanation:
Explanation/Reference: https://www.linuxtechi.com/11-df-command-examples-in-linux/

 

NEW QUESTION 64
An administrator is logged into a server remotely and wants to determine if the system is a VM. Which of the following commands would assist with this?

  • A. ps
  • B. dmesg
  • C. top
  • D. vmstat

Answer: D

 

NEW QUESTION 65
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/known_hosts
  • C. ~/.ssh/ssh_config
  • D. /etc/ssh/ssh_config

Answer: A

 

NEW QUESTION 66
A systems administrator must clean up all application files in the directory /var/log/app. However, the company's security policy requires the files to be kept on the backup server for one year. The Linux server has only the tar and bzip2 packages installed.
Which of the following commands will package and compress the files?

  • A. tar -zcvf applicationfiles.tar.bz2 /var/log/app/*
  • B. tar -cvf applicationfiles.tar.bz2 /var/log/app/*
  • C. tar -xvf applicationfiles.tar.bz2 /var/log/app/*
  • D. tar -jcvf applicationfiles.tar.bz2 /var/log/app/*

Answer: B

 

NEW QUESTION 67
A user requested a USB serial device to be added to a desktop computer. The device has built-in kernel driver support. The administrator tested the device installation and access, but the user cannot access the serial port.
Each time the user attempts to access the device, an error log is created that shows the user does not have permission to use the serial port. Which of the following will add a user to the group that has serial port capabilities?

  • A. usermod -a -G serialport $USER
  • B. usermod -a -G modem $USER
  • C. usermod -a -G root $USER
  • D. usermod -a -G dialout $USER

Answer: D

 

NEW QUESTION 68
An administrator reviews the following configuration file provided by a DevOps engineer:

Which of the following would the application parsing this file MOST likely have to support?

  • A. YAML
  • B. AJAX
  • C. JSON
  • D. SOAP

Answer: C

 

NEW QUESTION 69
The lead Linux has added a disk, /dev/sdd, to a VM that is running out of disk space. Place the following steps in the correct order from first (1) to last (4) to add the disk to the existing LVM.

Answer:

Explanation:

 

NEW QUESTION 70
A user needs to modify the IP address of a laptop. Which of the following files can be used to configure the network interface named eth0?

  • A. /system/networking/ifconfig
  • B. /etc/sysconfig/network/interfaces.cnf
  • C. /etc/interfaces/eth0.conf
  • D. /etc/sysconfig/network-scripts/ifcfg-eth0
  • E. /system/config/interfaces

Answer: D

 

NEW QUESTION 71
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. dig www.comptia.org/contacts
  • B. apt-get www.comptia.org/contacts
  • C. curl www.comptia.org/contacts
  • D. yum list www.comptia.org/contacts

Answer: C

Explanation:
Reference:
https://www.thegeekstuff.com/2012/04/curl-examples/

 

NEW QUESTION 72
A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?

  • A. vgcreate
  • B. mkfs.xfs
  • C. pvcreate
  • D. lvcreate

Answer: A

 

NEW QUESTION 73
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. bg ping remotehost
  • B. fg ping remotehost
  • C. ping remotehost < results
  • D. ping remotehost &

Answer: C

 

NEW QUESTION 74
A member of the production group issues the following command:
echo "Monday through Friday" > /production_docs/days
The command fails to execute, so the user obtains the following output:
drwxr--r-- root production 0 Jun 16 2018 production
-rw-r--r-- production production 4096 Jun 14 2018 days
Which of the following commands should the user execute to BEST fix the issue?

  • A. chmod g+w production to change the permissions of the days file
  • B. chmod g+S production to set the GUID on the production_docs directory
  • C. chgrp root production_docs/days to change the group ownership of the production_docs/ days file
  • D. chown production to change the ownership of the production_docs directory

Answer: D

 

NEW QUESTION 75
A user wants to list the lines of a log, adding a correlative number at the beginning of each line separated by a set of dashes from the actual message. Which of the following scripts will complete this task?

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

Answer: B

 

NEW QUESTION 76
A Linux administrator tries to ping a hostname in a network but receives the message: hostname not found. The administrator is sure the name exists on the network and wants to verify if the DNS server is correctly configured on the client. Which of the following files should the administrator use to verify this information?

  • A. /etc/network
  • B. /etc/nsswitch.conf
  • C. /etc/named.conf
  • D. /etc/resolv.conf

Answer: D

Explanation:
Explanation/Reference: https://www.hostgator.com/help/article/error-your-hostname-could-not-be-resolved-to-an-ip-address

 

NEW QUESTION 77
A user wants to alias dir so it always returns the contents of the ls -la command. However, the user has to reset the alias with every login.
Which of the following is the BEST action the user can take to ensure the command is always available?

  • A. echo "alias dir=ls -la" > /etc/profile
  • B. echo "alias dir=ls -la" > ~/.bashrc
  • C. echo "alias dir=ls -la" >> ~/.profile
  • D. echo "alias dir=ls -la" >> /etc/skel

Answer: C

 

NEW QUESTION 78
Given the output below:

Which of the following commands can be used to remove MyPhoto.jpg from the current directory?

  • A. del Pictures/photo.jpg
  • B. rm -f MyPhoto.jpg
  • C. ln -rm ./Pictures/photo.jpg
  • D. rm -rf ./Pictures
  • E. unlink ./MyPhoto.jpg

Answer: C

 

NEW QUESTION 79
Which of the following is used in unattended server installation via PXE?

  • A. YAML
  • B. Cloud-init
  • C. Kickstart
  • D. Container image

Answer: C

 

NEW QUESTION 80
......

XK0-004 dumps - Test4Cram - 100% Passing Guarantee: https://www.test4cram.com/XK0-004_real-exam-dumps.html