CompTIA XK0-004 CompTIA Linux+ Certification Exam Online Training
CompTIA XK0-004 Online Training
The questions for XK0-004 were last updated at Nov 22,2024.
- Exam Code: XK0-004
- Exam Name: CompTIA Linux+ Certification Exam
- Certification Provider: CompTIA
- Latest update: Nov 22,2024
An administrator notices a directory on a web server named /var/www/html/old_reports that should no
longer be accessible on the web.
Which of the following commands will accomplish this task?
- A . chmod 000 /var/www/html/old_reports
- B . chgrp root /var/www/html/old_reports
- C . chown apache /var/www/html/old_reports
- D . setenforce apache /var/www/html/old_reports
A Linux administrator must identify a user with high disk usage.
The administrator runs the # du Cs /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 Ck /home/User/files.txt
- B . du Ca /home/User3/*
- C . du Csh /home/User/
- D . find . Cname /home/User3 -print
A systems administrator wants to deploy several applications to the same server quickly. Each application should be abstracted from the host with its own dependencies and libraries and utilize a minimal footprint.
Which of the following would be BEST in this scenario?
- A . Virtual machines
- B . Type 2 hypervisor
- C . Chroot jails
- D . Containers
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
A Linux administrator is adding a static IP address to a network interface on a Linux system.
The administrator modifies the ifcfg- eth0 configuration file with the following settings:
After the administrator restarts the Linux server, the system is not connected to the network.
Which of the following configuration settings needs to be changed?
- A . Set BOOTPROTO to BOOTP and USERCTL to yes.
- B . Set BOOTPROTO to NONE and ONBOOT to yes.
- C . Set USERCTL to yes and ONBOOT to no.
- D . Set NETMASK to 255.255.0.0 and ONBOOT to yes.
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 . UEFI
- B . PXE
- C . NFS
- D . GRUB
Which of the following will provide a list of all flash, external, internal, and SSD drives?
- A . lspci
- B . lsmod
- C . lsblk
- D . lsusb
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 Cm “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
A systems administrator wants to know the current status of a series of dd jobs that were started in the background three hours ago.
Which of the following commands will achieve this task?
- A . sudo killall CHUP dd
- B . sudo killall dd
- C . sudo killall CTERM dd
- D . sudo killall -USR1 dd
DRAG DROP
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.
No comment