XK0-004 PDF Exam Material 2022 Realistic XK0-004 Dumps Questions
Updated CompTIA XK0-004 Dumps – PDF & Online Engine
NEW QUESTION 30
A Linux systems administrator installed a new web server, which failed while attempting to start. The administrator suspects that SELinux is causing an issue and wants to temporarily put the system into permissive mode. Which of the following would allow the administrator to accomplish this?
echo SELINUX=PERMISSIVE >>
- A. sestatus 0
- B. setenforce 0
- C. chcon httpd_sys_content_t /var/
- D. /etc/sysconfig/selinux
Answer: B
NEW QUESTION 31
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. pvcreate
- C. lvcreate
- D. mkfs.xfs
Answer: A
NEW QUESTION 32
An administrator is uncomfortable allowing users to log in as root. Which of the following ensures that root logins are disallowed?
- A. usermod -B root
- B. usermod -L root
- C. usermod -U root
- D. usermod -G root
Answer: D
NEW QUESTION 33
A junior systems administrator created a new filesystem /dev/sda1 with mountpoint /data and added it to the
/etc/fstab for auto-mounting.
When the systems administrator tries to mount the file system, the system refuses. Given the output below:
Which of the following steps is necessary?
- A. Change the filesystem from /dev/sda1 to /dev/sda2 and reboot.
- B. Change the options to auto,dev,sync,rw,nosuid and run the mount -a command.
- C. Change the mount point to data and reboot.
- D. Change the dump column to 1 and run the mount -a command.
Answer: B
NEW QUESTION 34
Which of the following is the BEST reason for not storing database files in the /var directory?
- A. If log files fill up /var, it might corrupt the database.
- B. The /var filesystem is not fast enough for database files.
- C. Files in /var do not have strict file permissions.
- D. The number of files in /var is limited by the available inodes.
Answer: A
NEW QUESTION 35
A user attempts to use the mount -a command but gets the following error:
mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
- A. mount -a /mnt/test
- B. mdadm -p /mnt/test
- C. mkfs /mnt/test
- D. touch /mnt/test
- E. mkdir -p /mnt/test
Answer: E
NEW QUESTION 36
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 [email protected] ~/software.rpm :/tmp
- B. wget [email protected]:/tmp -f ~/software.rpm
- C. scp ~/software.rpm [email protected]:/tmp
- D. scp ~/software.rpm [email protected]: /tmp
Answer: B
NEW QUESTION 37
A user attempts to use the mount -a command but gets the following error:
mount: mount point /mnt/test does not exist
Which of the following commands best describes the action the Linux administrator should take NEXT?
- A. mount -a /mnt/test
- B. mdadm -p /mnt/test
- C. mkfs /mnt/test
- D. touch /mnt/test
- E. mkdir -p /mnt/test
Answer: E
Explanation:
Explanation/Reference:
Reference: https://serverfault.com/questions/751113/mount-point-does-not-exist-despite-creating-it
NEW QUESTION 38
An administrator needs to generate a list of services that are listening on TCP and/or UDP ports. Which of the following tools should the administrator use?
- A. route
- B. portmap
- C. netstat
- D. ethtool
Answer: C
Explanation:
Reference:
https://www.tecmint.com/find-open-ports-in-linux/
NEW QUESTION 39
A systems administrator needs to retrieve specific fields from a csv file. Which of the following tools would accomplish this task?
- A. echo
- B. sort
- C. awk
- D. print
Answer: C
NEW QUESTION 40
Which of the following is the template for the grub.cfg file?
- A. /boot/efi
- B. /etc/grub2.cfg
- C. /etc/sysct1.conf
- D. /etc/default/grub
Answer: D
Explanation:
Reference:
https://geek-university.com/linux/grub-version-2/
NEW QUESTION 41
A systems administrator is enabling quotas on the /home directory of a Linux server. The administrator makes the appropriate edits to the /etc/fstabfile and attempts to issue the commands to enable quotas on the desired directory. However, the administrator receives an error message stating the filesystem does not support quotas. Which of the following commands should the administrator perform to proceed?
- A. edquota /home
- B. quotacheck -cg
- C. quotaon /home
- D. mount -o remount /home
Answer: C
Explanation:
Explanation/Reference: https://www.tecmint.com/set-filesystem-disk-quotas-on-ubuntu/
NEW QUESTION 42
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 -g dba jsmith
- B. useradd -g dba jsmith
- C. usermod -a -G dba jsmith
- D. groupmod dba -u jsmith
Answer: B,C
Explanation:
Explanation
According to the reference given below. Both AC is correct.
NEW QUESTION 43
A Linux engineer is troubleshooting a newly added SCSI device for a Linux server that needed more disk space without rebooting. The engineer discovers that the new device is not visible by the Linux kernel in fdisk -l output. Which of the following commands should be used to rescan the entire SCSI bus?
- A. echo "scan" > /sys/class/scsi_host/host0/scan
- B. echo ' ' > /sys/class/scsi_host/host0/scan
- C. echo "- - -" > /sys/class/scsi_host/host0/scan
- D. echo "- - -" > /sys/scsi/scsi_host/host0/scan
Answer: C
NEW QUESTION 44
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. find . -name /home/User3 -print
- B. df -k /home/User/files.txt
- C. du -a /home/User3/*
- D. du -sh /home/User/
Answer: D
Explanation:
Reference:
https://unix.stackexchange.com/questions/37221/finding-files-that-use-the-most-disk-space
NEW QUESTION 45
An administrator has written the following Bash script:
All necessary files exist in the correct locations. However, when the administrator executes /home/user/test.sh the following error is received:
No such file or directory
Which of the following is the MOST likely cause of the error?
- A. The script is not executable.
- B. The shebang points to the wrong path.
- C. Nslookup is not installed.
- D. The formatting of the file is incorrect.
Answer: B
NEW QUESTION 46
Ann, a Linux administrator, wants to edit a configuration management file. When she opens the file to edit, her text editor reports that the file has been opened in read-only mode. She then tries to edit the file as root by elevating via sudo and is still unable to save any changes. The error message in her text editor says that the read-only option is set on the file. Ann checks the permissions on the file and sees the following:
-rw-rw-r-- 1 root wheel 30 Jun 13 15:38 infrastructure.yml
Which of the following commands is the BEST option to allow her to successfully modify the file?
- A. chattr -i infrastructure.yml
- B. chmod o+w infrastructure.yml
- C. chmod 600 infrastructure.yml
- D. chown root: infrastructure.yml
Answer: B
NEW QUESTION 47
A Linux server has multiple IPs. A Linux administrator needs to verify if the HTTP server port is bound to the correct IP.
Which of the following commands would BEST accomplish this task?
- A. nslookup
- B. host
- C. route
- D. ip
- E. netstat
Answer: E
NEW QUESTION 48
All users are reporting that they cannot connect to the SFTP server. The administrator runs a scan:
Which of the following would allow the administrator to fix the problem?
- A. Allow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
- B. Allow SFTP connections on port 1456 using /etc/sysconfig/iptables.
- C. Allow SFTP connections on port 22 using /etc/sysconfig/iptables.
- D. Allow SFTP connections on port 25 using /etc/sysconfig/iptables.
Answer: C
NEW QUESTION 49
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
Explanation:
Explanation/Reference: https://www.thegeekstuff.com/2012/04/curl-examples/
NEW QUESTION 50
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. /etc/sysconfig/network-scripts/ifcfg-eth0
- B. /system/networking/ifconfig
- C. /etc/sysconfig/network/interfaces.cnf
- D. /system/config/interfaces
- E. /etc/interfaces/eth0.conf
Answer: A
Explanation:
Explanation/Reference: https://opensource.com/life/16/6/how-configure-networking-linux
NEW QUESTION 51
A Linux systems administrator is setting up SSH access with PKI for several using their newly created RSA keys. Which of the following MOST securely achieves this task?
- A. Use ssh-copy-id to copy each user's public key file to the respective system
- B. Use curl to copy each user's public key file to the respective system
- C. Use cp to copy each user's public key file to the respective system
- D. Use ssh-copy-id to copy each user's private key file to the respective system
Answer: A
NEW QUESTION 52
An issue was discovered on a testing branch of a Git repository. A file was inadvertently modified and needs to be reverted to the master branch version. Which of the following is the BEST option to resolve the issue?
- A. git merge master testing
- B. git branch -b master file
- C. git checkout master -- file
- D. git stash branch master
Answer: C
Explanation:
Explanation/Reference:
Reference: https://www.git-scm.com/book/en/v2/Git-Basics-Undoing-Things
NEW QUESTION 53
A junior administrator needs to unload an older video kernel module.
Which of the following commands would BEST accomplish this task?
- A. chmod
- B. insmod
- C. rmmod
- D. modprobe
Answer: D
NEW QUESTION 54
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: A
Explanation:
Reference:
https://www.cyberciti.biz/faq/linux-append-text-to-end-of-file/
NEW QUESTION 55
......
The benefit in Obtaining the XK0-004 Exam Certification
- There are many companies like Microsoft, CompTIA, Novell, HP, etc. in their own certification tracks are require a CompTIA certification like A+.
- There are many companies and organizations have made CompTIA certifications compulsory for certain positions and several job advertisements list the certification as primary requirements. Certified professionals earn more than non-certified IT professionals in the same job roles.
- Many colleges and universities are giving college credit for students who get CompTIA certifications.
- The big advantage of CompTIA certifications is especially for those candidates who are new to the IT field and they want to increase their own personal confidence. After getting a certification they gain proof that will give them more credibility and determination to advance their career.
CompTIA XK0-004 Dumps PDF Are going to be The Best Score: https://www.actual4cert.com/XK0-004-real-questions.html
XK0-004.pdf - Questions Answers PDF Sample Questions Reliable: https://drive.google.com/open?id=10YVTdWqX5u02TOMuZ_NAmCG5TNpLBkdV