Master the XK0-004 CompTIA Linux+ Certification Exam content and be ready for exam day success quickly with this Certleader XK0-004 torrent. We guarantee it!We make it a reality and give you real XK0-004 questions in our CompTIA XK0-004 braindumps.Latest 100% VALID CompTIA XK0-004 Exam Questions Dumps at below page. You can use our CompTIA XK0-004 braindumps and pass your exam.
Online CompTIA XK0-004 free dumps demo Below:
NEW QUESTION 1
An engineer is working on a production application deployment that requires changing a web application property file called server.property that is managed by the Git version control system. A cloned copy of the remote repository in which the server.property file exists is on the local desktop computer. The engineer makes appropriate changes to the files, saves it as server.property, and executes git commit –m “changed the property file” server.property. Which of the following commands did the engineer fail to perform?
- A. git init server.property
- B. git merge server.property
- C. git add server.property
- D. git push server.property
Answer: D
NEW QUESTION 2
Which of the following server roles would assign a host IP address?
- A. DHCP
- B. NTP
- C. DNS
- D. SSH
Answer: A
NEW QUESTION 3
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 4
A Linux administrator wants to obtain a list of files and subdirectories in the /etc directory that contain the word “services”. Once the files and subdirectories are discovered, they should be listed alphabetically in the /var/tmp/foundservices file. Which of the following shell scripts will accomplish this task?
- A. #/bin/bashfind /etc –name services | sort > /var/tmp/foundservices
- B. #/bin/bashlocate /etc –sort –name services > /var/tmp/foundservices
- C. #/bin/bashfind –name services –sort </var/tmp/foundservices
- D. #/bin/bashfind /etc –name services –sort > /var/tmp/foundservices
Answer: B
NEW QUESTION 5
As a Systems Administrator, to reduce disk space, you were tasked to create a shell script that does the following:
Add relevant content to /tmp/script.sh, so that it finds and compresses rotated files in /var/log without recursion.
INSTRUCTIONS
Fill the blanks to build a script that performs the actual compression of rotated log files.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation: 
NEW QUESTION 6
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.
- A. Mastered
- B. Not Mastered
Answer: A
Explanation: 
NEW QUESTION 7
A Linux server needs to be accessed, but the root password is not available.
Which of the following would BEST allow an administrator to regain access and set a new known password at the same time?
- A. Boot into a single-user mode and reset the password via the passwd command.
- B. Boot into a single-user mode and reset the password by editing the /etc/passwd file.
- C. Boot into a single-user mode and reset the password by editing the /etc/shadow file.
- D. Boot into a single-user mode and reset the password via the chage command.
Answer: A
NEW QUESTION 8
A Linux administrator needs to take stock of USB devices attached to the system. Which of the following commands would be BEST to complete this task?
- A. lspci
- B. lsusb
- C. cat /proc/USB
- D. modprobe -–usb
Answer: B
NEW QUESTION 9
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 10
An administrator is tasked with increasing the size of the volume /dev/vg/lv to 20GB. Which of the following BEST illustrates the steps the administrator should take?
- A. vgextend –L20G /dev/vg/lv; resizelv /dev/vg/lv
- B. parted –L20G /dev/vg/lv; remount /dev/vg/lv
- C. mkfs –L20G /dev/vg/lv; tune2fs /dev/vg/lv
- D. lvextend –L20G /dev/vg/lv; resize2fs /dev/vg/lv
Answer: D
NEW QUESTION 11
A systems administrator observes high latency values when reaching a remote web server. Which of the following commands will help determine and isolate issues on the network side?
- A. mtr
- B. dig
- C. netstat
- D. route
Answer: A
NEW QUESTION 12
A systems administrator is unable to reach other devices on the network and the Internet. The server is configured with the IP address 192.169.1.50/24 on eth0. The server’s router is 192.168.1.1. The administrator reviews the output of route –n:
Which of the following commands should the administrator run to correct the issue?
- A. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- B. route add –net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- C. route add 192.168.1.1 default 192.168.1.50 eth0
- D. route host gw 192.168.1.1 eth0
Answer: B
NEW QUESTION 13
A Linux administrator needs every new file created on a directory to maintain the group permissions of the same directory. Which of the following commands would satisfy this requirement?
- A. chmod o+s <directory>
- B. chmod u+s <directory>
- C. chmod +s <directory>
- D. chmod g+s <directory>
Answer: D
NEW QUESTION 14
A systems administrator needs to retrieve specific fields from a csv file. Which of the following tools would accomplish this task?
- A. awk
- B. sort
- C. print
- D. echo
Answer: A
NEW QUESTION 15
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 –jcvf applicationfiles.tar.bz2 /var/log/app/*
- C. tar –cvf applicationfiles.tar.bz2 /var/log/app/*
- D. tar –xvf applicationfiles.tar.bz2 /var/log/app/*
Answer: C
NEW QUESTION 16
A company wants to ensure that all newly created files can be modified only by their owners and that all new directory content can be changed only by the creator of the directory. Which of the following commands will help achieve this task?
- A. umask 0022
- B. umask 0012
- C. chmod –R 0644 /
- D. chmod –R 0755 /
Answer: A
NEW QUESTION 17
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 2021 production
-rw-r--r-- production production 4096 Jun 14 2021 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. chgrp root production_docs/days to change the group ownership of the production_docs/ days file
- C. chmod g+S production to set the GUID on the production_docs directory
- D. chown production to change the ownership of the production_docs directory
Answer: D
NEW QUESTION 18
A junior Linux administrator needs to ensure a service will start on system boot. Which of the following commands should be used to accomplish this task?
- A. chkconfig <service> on
- B. systemctl <service> bootup
- C. service <service> enable
- D. crontab install <service>
Answer: A
NEW QUESTION 19
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 20
A system administrator has deployed a Linux server based on an Anaconda process with all packages and custom configurations necessary to install a web server role.
Which of the following could be used to install more Linux servers with the same characteristics?
- A. /etc/sysconfig/anaconda/cfg
- B. /root/anaconda.auto
- C. /root/anaconda-ks.cfg
- D. /etc/sysconfig/installation.cfg
Answer: C
NEW QUESTION 21
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 22
Which of the following will provide a list of all flash, external, internal, and SSD drives?
- A. lspci
- B. lsmod
- C. lsblk
- D. lsusb
Answer: C
NEW QUESTION 23
An administrator needs to create a shared directory in which all users are able, write, and execute its content but none of the regular users are able to delete any content.
Which of the following permissions should be applied to this shared directory?
- A. rwxrwxrwt
- B. rwxrwxrws
- C. rwxrwxrwx
- D. rwxrwxrw*
Answer: C
NEW QUESTION 24
......
Recommend!! Get the Full XK0-004 dumps in VCE and PDF From prep-labs.com, Welcome to Download: https://www.prep-labs.com/dumps/XK0-004/ (New 115 Q&As Version)