[Nov-2021] Download Real CompTIA XK0-004 Exam Dumps Test Engine Exam Questions
New XK0-004 exam dumps Use Updated CompTIA Exam
NEW QUESTION 105
Using which of the following control mode commands is the correct way to substitute all occurrences of /dev/ sdcwith /dev/sddwhile editing a file in vi?
- A. :s//dev/sdc//dev/sdd
- B. :s/\/dev\/sdc/\/dev\/sdd/g
- C. :s/\/dev\/sdc/\/dev\/sdd
- D. :%s/\/dev\/sdc/\/dev\/sdd
Answer: A
Explanation:
Explanation
NEW QUESTION 106
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 add 192.168.1.1 default 192.168.1.50 eth0
- B. route add -net 192.168.10.0 netmask 255.255.255.0 gw 192.168.2.1 eth0
- C. route del default gw 192.168.2.1 eth0; route add default gw 192.168.1.1 eth0
- D. route host gw 192.168.1.1 eth0
Answer: B
NEW QUESTION 107
A Linux administrator installed a new network adapter and temporarily disabled the network service from starting on boot. The partial output of chkconfig is as follows:
Which of the following commands BEST describes how the administrator should re-enable the network service?
- A. chkconfig --level 6 network on
- B. chkconfig --level 0-6 network on
- C. chkconfig --level 345 network on
- D. chkconfig --level 0 network on
- E. chkconfig --level 12 network on
Answer: C
Explanation:
Reference:
https://www.thegeekdiary.com/how-to-enable-or-disable-service-on-boot-with-chkconfig/
NEW QUESTION 108
An administrator needs to mount the shared NFS file system testhost:/testvolume to mount point /mnt/testvol and make the mount persistent after reboot.
Which of the following BEST demonstrates the commands necessary to accomplish this task?
- A. B.
- B. A
- C. C
Answer: C
NEW QUESTION 109
Which of the following can be used to boot a DVD from a remote device to initialize a Linux system setup on bare metal hardware as if it is a local DVD?
- A. PXE
- B. NFS
- C. GRUB
- D. UEFI
Answer: D
Explanation:
Explanation/Reference: https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/installation_guide/ ch-boot-x86
NEW QUESTION 110
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. AJAX
- B. YAML
- C. SOAP
- D. JSON
Answer: D
NEW QUESTION 111
A systems administrator is receiving errors while trying to install a popular virtualization software. The software specifications state the processor needs to support virtualization with Intel instructions. Additional requirements state the processor must accelerate encryption/decryption and use hyperthreading. Given the following output about the processor:
fpu ume depse tsu msr pae mce cx8 apic sep mtrr pae mca cmov pat pse36 cflusm mmx fxsr sse sse2 ht syscall nx rdtscp lm constant_tsc rep_good nopl xtopology nonstop_tsc pni pclmulqdq ssse3 cx16 pcid sse4_1 sse4_2 x2apic popcnt aes xsave avx rdrand hypervisor lahf_lm fsgsbase Which of the following is the MOST likely reason for the errors?
- A. The processor does not support hyperthreading.
- B. The processor supports AMD instructions rather than Intel.
- C. The processor is running inside a virtual machine.
- D. The processor cannot accelerate decryption.
Answer: A
NEW QUESTION 112
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. useradd -g dba jsmith
- B. usermod -a -G dba jsmith
- C. groupmod dba -u jsmith
- D. usermod -g dba jsmith
Answer: A,B
Explanation:
According to the reference given below. Both AC is correct.
Reference:
https://www.cyberciti.biz/faq/howto-linux-add-user-to-group/
NEW QUESTION 113
An administrator needs to kill the oldest Bash shell running in the system. Which of the following commands should be issued to accomplish this task?
- A. killall -15 -o bash
- B. ps axjf | grep bash to obtain PID
kill -9 PID - C. ps -eo pid,etime,cmd | grep bash (to obtain PID)
kill -9 PID - D. ps -eo pid,etime| grep bash (to obtain PID)
killall -9 PID
Answer: A
NEW QUESTION 114
You have been asked to parse a log file of logins to determine various information about who is logging in and when.
INSTRUCTIONS
Open and inspect the Login log file.
Drag and drop the correct commands onto the output that was generated from that command.
Tokens can be used only once and not all will be used.
If at any time you would like to bring back the initial state of the simulation, please click the Reset All button.
Answer:
Explanation:
NEW QUESTION 115
A Linux administrator implemented a new HTTP server using the default configuration. None of the users on the network can access the server. If there is no problem on the network or with the users' workstations, which of the following steps will BEST analyze and resolve the issue?
- A. Run netstat to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
- B. Run netcat to ensure the port is correctly bound, and configure a static route to the web to allow access on ports 80 and 443
- C. Run route to ensure the port is correctly bound, and configure SELinux to allow access on ports 80 and 443
- D. Run route to ensure the port is correctly bound, and configure the firewall to allow access on ports 80 and 443
Answer: B
Explanation:
Reference:
https://www.varonis.com/blog/netcat-commands/
NEW QUESTION 116
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
NEW QUESTION 117
A new HTTPS web service is being deployed on a server. Which of the following commands should the Linux administrator use to ensure traffic is able to flow through the system firewall to the new service?
- A. iptables -A OUTPUT -p tcp --dport 443 -j ACCEPT
- B. iptables -I OUTPUT -p tcp --sport 443 -j ACCEPT
- C. iptables -A INPUT -p tcp --dport 443 -j ACCEPT
- D. iptables -I INPUT --dport 443 -j ACCEPT
Answer: D
Explanation:
Explanation/Reference: https://www.linode.com/docs/security/firewalls/control-network-traffic-with-iptables/
NEW QUESTION 118
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. mdadm -p /mnt/test
- B. mkdir -p /mnt/test
- C. mkfs /mnt/test
- D. touch /mnt/test
- E. mount -a /mnt/test
Answer: B
NEW QUESTION 119
A junior systems administrator is upgrading a package that was installed on a Red Hat-based system. The administrator is tasked with the following:
Update and install the new package.
Verify the new package version is installed.
Which of the following should be done to BEST accomplish these task? (Choose two.)
- A. yum upgrade
- B. rpm -qa
- C. rpm -e <package name>
- D. yum install <package name>
- E. apt-get upgrade
- F. apt-get <package name>
Answer: B,D
Explanation:
Reference:
https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/ch-yum
NEW QUESTION 120
Which of the following commands will let a Linux user know the PCI devices that are installed in the system?
- A. lspci
- B. cat /proc/devices/pci
- C. cat /proc/sys/dev
- D. lsdev
Answer: A
Explanation:
Reference:
https://opensource.com/article/19/9/linux-commands-hardware-information
NEW QUESTION 121
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. portmap
- B. route
- C. netstat
- D. ethtool
Answer: C
Explanation:
Reference:
https://www.tecmint.com/find-open-ports-in-linux/
NEW QUESTION 122
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?
- A. sestatus 0
- B. setenforce 0
- C. echo SELINUX=PERMISSIVE >> /etc/sysconfig/selinux
- D. chcon httpd_sys_content_t /var/
Answer: B
NEW QUESTION 123
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 124
A systems administrator manually added a new library to the server. The administrator wants to rebuild the library cache for immediate use.
Which of the following commands should the systems administrator run to achieve this goal?
- A. ldd
- B. make install
- C. make
- D. ldconfig
Answer: D
NEW QUESTION 125
......
Pass Your XK0-004 Dumps as PDF Updated on 2021 With 266 Questions: https://actualtests.testbraindump.com/XK0-004-exam-prep.html
