Your success in CompTIA XK0-004 is our sole target and we develop all our XK0-004 braindumps in a way that facilitates the attainment of this target. Not only is our XK0-004 study material the best you can find, it is also the most detailed and the most updated. XK0-004 Practice Exams for CompTIA XK0-004 are written to the highest standards of technical accuracy.
CompTIA XK0-004 Free Dumps Questions Online, Read and Test Now.
NEW QUESTION 1
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. 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 2
Given the output below:
Which of the following commands can be used to remove MyPhoto.jpg from the current directory?
- A. unlink ./MyPhoto.jpg
- B. del Pictures/photo.jpg
- C. rm –rf ./Pictures
- D. rm –f MyPhoto.jpg
- E. ln –rm ./Pictures/photo.jpg
Answer: E
NEW QUESTION 3
Given that a company’s policy states that users cannot install third-party tools on Window servers, which of the following protocols will allow a Linux GUI to connect to a Windows server?
- A. VNC
- B. NX
- C. RDP
- D. X11
Answer: A
NEW QUESTION 4
A junior Linux administrator is updating local name resolution to support IPv6. The administrator issues the command cat /etc/hosts and receives the following output: 127.1.1.1 localhost
Which of the following actions should the administrator perform to accomplish this task?
- A. Modify the /etc/hosts file, and add the ipv6 localhost entry to the file.
- B. Modify the /etc/hosts file, and add the ::1 localhost entry to the file.
- C. Modify the /etc/hosts file, and add the ipv4 localhost entry to the file.
- D. Modify the /etc/hosts file, and add the 0.0.0.0 localhost entry to the file.
Answer: D
NEW QUESTION 5
Which of the following configuration files should be modified to disable Ctrl-Alt-Del in Linux?
- A. /etc/inittab
- B. ~/.bash_profile
- C. /etc/securetty
- D. /etc/security/limits.conf
Answer: A
NEW QUESTION 6
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 7
Which of the following are Linux desktop managers? (Choose two.)
- A. KDE
- B. GNOME
- C. GUI
- D. VNC
- E. X11
- F. SPICE
Answer: AB
NEW QUESTION 8
A Linux administrator has configured a Linux system to be used as a router. The administrator confirms that two network adapters are properly installed and functioning correctly. In addition, the output of the iptables –L command appears to contain a complete firewall configuration.
Which of the following commands does the administrator need to issue for the router to be fully functional?
- A. echo “1” > /proc/sys/net/ipv4/ip_forward
- B. echo “0” > /proc/sys/net/ipv4/tcp_abort_on_overflow
- C. echo “0” > /proc/sys/net/ipv4/max_connections
- D. echo “1” > /proc/sys/net/ipv4/ip_default_ttl
Answer: A
NEW QUESTION 9
A Linux administrator needs to schedule a cron job to run at 1:15 p.m. every Friday to report the amount of free disk space on the system and to send the output to a file named “freespace”. Which of the following would meet this requirement?
- A. 13 15 * * 5 df > /freespace
- B. 15 13 * * 5 df > /freespace
- C. 15 1 * * 6 df > /freespace
- D. 15 13 6 * * df > /freespace
Answer: A
NEW QUESTION 10
An administrator notices that a long-running script, /home/user/script.sh, is taking up a large number of system resources. The administrator does not know the script’s function. Which of the following commands should the administrator use to minimize the script’s impact on system resources?
- A. renice
- B. kill
- C. bg
- D. nohup
Answer: A
NEW QUESTION 11
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 B
- C. Option C
- D. Option D
Answer: D
NEW QUESTION 12
An administrator receives a warning about a file system filling up, and then identifies a large file located at /tmp/largelogfile. The administrator deletes the file, but no space is recovered on the file system.
Which of the following commands would BEST assists the administrator in identifying the problem?
- A. lsof | grep largelogfile
- B. pkill /tmp/largelogfile
- C. pgrep largelogfile
- D. ps –ef | grep largelogfile
Answer: A
NEW QUESTION 13
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. route
- B. host
- C. nslookup
- D. netstat
- E. ip
Answer: D
NEW QUESTION 14
A Linux systems administrator needs to provision multiple web servers into separate regional datacenters. The systems architect has instructed the administrator to define the server infrastructure using a specific tool that consumes a text-based file.
Which of the following is the BEST reason to do this?
- A. To document the infrastructure so it can be included in the system security plan
- B. To ensure the administrator follows the planning phase of the system development life cycle
- C. To define the infrastructure so it can be provisioned consistently with minimal manual tasks
- D. To validate user requirements have been met within each regional datacenter for compliance
Answer: B
NEW QUESTION 15
An administrator needs to see the type of CPU that a server is running. Which of the following files contains this information?
- A. /proc/cpuinfo
- B. /etc/devices/info.conf
- C. /dev/proc/cpu
- D. /sys/dev/cpuinfo
Answer: A
NEW QUESTION 16
Joe, a user, is unable to log in to the server and contracts the systems administrator to look into the issue. The administrator examines the /etc/passwd file and discovers the following entry:
joe:x:505:505::/home/joe:/bin/false
Which of the following commands should the administrator execute to resolve the problem?
- A. usermod –s /bin/bash joe
- B. passwd –u joe
- C. useradd –s /bin/bash joe
- D. chage –E -1 joe
Answer: B
NEW QUESTION 17
......
P.S. Allfreedumps.com now are offering 100% pass ensure XK0-004 dumps! All XK0-004 exam questions have been updated with correct answers: https://www.allfreedumps.com/XK0-004-dumps.html (267 New Questions)