Download XK0-004 Testing Bible 2021
We provide real XK0-004 exam questions and answers braindumps in two formats. Download PDF & Practice Tests. Pass CompTIA XK0-004 Exam quickly & easily. The XK0-004 PDF type is available for reading and printing. You can print more and practice many times. With the help of our CompTIA XK0-004 dumps pdf and vce product and material, you can easily pass the XK0-004 exam.
Free XK0-004 Demo Online For CompTIA Certifitcation:
NEW QUESTION 1
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 2
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 3
Which of the following commands would show the default printer on a Linux system?
- A. lpr
- B. lpq
- C. lpstat
- D. lspci
Answer: B
NEW QUESTION 4
A Linux administrator built a GitLab server. Later that day, a software engineer tried to access the server to upload the repository during the final step of installation. The software engineer could not access the website. Which of the following firewall rules would allow access to this site?
- A. iptables –A INPUT –p tcp –m multiport --dports 80,443 –m conntrack –cstate NEW, ESTABLISHED –j ACCEPT
- B. iptables –A INPUT –p tcp –m multiport --dports 80,443 –m conntrack –cstate ESTABLISHED –j ACCEPT
- C. iptables –A INPUT –p tcp –m multiport --dports 80,443 –m conntrack –cstate RELATED, ESTABLISHED –j ACCEPT
- D. iptables –A INPUT –p tcp –m multiport --dports 80,443 –m conntrack –cstate NEW, ESTABLISHED –j REJECT
Answer: C
NEW QUESTION 5
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. mkdir –p /mnt/test
- C. mdadm –p /mnt/test
- D. mkfs /mnt/test
- E. touch /mnt/test
Answer: B
NEW QUESTION 6
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: C
NEW QUESTION 7
Which of the following BEST describes the purpose of the X11 system?
- A. X11 provides graphical display capabilities
- B. X11 provides command line capabilities
- C. X11 provides networking capabilities
- D. X11 provides telephony capabilities.
Answer: A
NEW QUESTION 8
Which of the following is the template for the grub.cfg file?
- A. /etc/default/grub
- B. /etc/grub2.cfg
- C. /etc/sysct1.conf
- D. /boot/efi
Answer: A
NEW QUESTION 9
Which of the following is the purpose of the monitoring server role?
- A. To aggregate web traffic to watch which websites employees are visiting
- B. To collect status and performance information about the servers in an environment
- C. To provide user authentication services to a network
- D. To provide real-time analysis of potential threats to the organization
Answer: B
NEW QUESTION 10
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 11
Find the file named core and remove it from the system. INSTRUCTIONS
Type “help” to display a list of available commands.
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 12
A junior systems is configuring localization option environment variables. The administrator is given a checklist of tasks with the following requirements:
View current settings of the LC_ALL environment variable only. Modify the LANG environment variable to US English Unicode.
Given this scenario, which of the following should be performed to meet these requirements? (Choose two.)
- A. echo $LC_ALL
- B. locale
- C. cat $LC_ALL
- D. export LANG = en_US.UTF-8
- E. export $LANG = en_US.UTF
- F. stty
Answer: BD
NEW QUESTION 13
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 14
A Linux administrator opens a ticket to have an external hard drive mounted. As a security policy, external storage kernel modules are disabled.
Which of the following is the BEST command for adding the proper kernel module to enable external storage modules?
- A. rmmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- B. modinfo /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- C. depmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
- D. insmod /lib/modules/3.6.12-100-generic/kernel/drivers/usb/storage/usb-storage.ko
Answer: D
NEW QUESTION 15
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 16
While creating a file on a volume, the Linux administrator receives the following message: No space left on device. Running the df –m command, the administrator notes there is still 50% of usage left. Which of the following is the NEXT step the administrator should take to analyze the issue without losing data?
- A. Run the df –i command and notice the inode exhaustion
- B. Run the df –h command and notice the space exhaustion
- C. Run the df –B command and notice the block size
- D. Run the df –k command and notice the storage exhaustion
Answer: A
NEW QUESTION 17
A networked has been crashing intermittently. A Linux administrator would like to write a shell script that will attempt to ping the server and email an alert if the server fails to respond. The script will later be scheduled via cron job.
Which of the following scripts would BEST accomplish this task?

- A. Option A
- B. Option B
- C. Option C
- D. Option D
Answer: D
NEW QUESTION 18
Which of the following would be the BEST solution for a systems administrator to access the graphical user environment of a Linux machine remotely?
- A. VNC
- B. KDE
- C. X11
- D. RPC
Answer: A
NEW QUESTION 19
After starting a long-running script, a systems administrator needs to verify the frequency of what is filling up the /var partition and kill it because it is consuming too much space.
Which of the following is the correct sequence given only a terminal is available?
- A. 1. CTRL-C2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-Z
- B. 1. CTRL-C2. fg3. watch df /var4. CTRL-Z5. bg6. CTRL-Z
- C. 1. CTRL-Z2. bg3. watch df /var4. CTRL-C5. fg6. CTRL-C
- D. 1. CTRL-Z2. bg3. watch df /var4. CTRL-Z5. fg6. CTRL-C
Answer: D
NEW QUESTION 20
A user has connected a Bluetooth mouse to a computer, but it is not working properly. Which of the following commands should the systems administrator use to fix the issue?
- A. lsmod –i bluetooth
- B. insmod bluetooth
- C. modprobe –r bluetooth
- D. depmod –i bluetooth
Answer: C
NEW QUESTION 21
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 22
A junior Linux administrator is setting up system-wide configuration settings. The goal is to ensure the PATH environment variable includes the following locations for all users who log into a Linux system.
The administrator issues the following commands at the terminal:
Respectively, the output of these commands is as follows:
Given this output, which of the following would be the BEST action for the administrator to perform to address this issue?
- A. Update the /etc/profile.d file using a text editor, navigate to the PATH element add the missing locations, and run the bash_completion.sh script to update the changes.
- B. Update the /etc/profile file using a text editor, navigate to the PATH element, add the missing locations and run the . /etc/profile command to update the changes.
- C. Update the /etc/profile.d file using a text editor, navigate to the PATH element, add the missing locations, and reboot to update the changes.
- D. Update the /etc/profile file using a text editor navigate to the PATH element, add the missing locations, and restart the bash process to update the changes.
Answer: B
NEW QUESTION 23
Which of the following server roles would assign a host IP address?
- A. DHCP
- B. NTP
- C. DNS
- D. SSH
Answer: A
NEW QUESTION 24
A Linux system is running normally when the systems administrator receives an alert that one application spawned many processes. The application is consuming a lot of memory, and it will soon cause the machine to become unresponsive. Which of the following commands will stop each application process?
- A. kill ‘pidof application’
- B. killall application
- C. kill -9 ‘ps –aux | grep application’
- D. pkill -9 application
Answer: B
NEW QUESTION 25
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. df –k /home/User/files.txt
- B. du –a /home/User3/*
- C. du –sh /home/User/
- D. find . –name /home/User3 -print
Answer: C
NEW QUESTION 26
......
Recommend!! Get the Full XK0-004 dumps in VCE and PDF From Certleader, Welcome to Download: https://www.certleader.com/XK0-004-dumps.html (New 115 Q&As Version)