Labour Day - Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dpm65

Note! The XK0-004 Exam is no longer available. Get in touch with our Live Chat or email us for more information about the XK0-005 Exam.

XK0-004 CompTIA Linux+ Certification Exam Questions and Answers

Questions 4

A Linux amdinisrator is adding a user’s local Linux account to the accounting group. The user is also a member of the finance group. Which of the following is the BEST way to add the user to the accounting group while still maintaining the user’s existing group members ships?

Options:

A.

Usermod –G accounting user1

B.

Usermod –G accounting, finance user1

C.

Usermod –G accounting user1

D.

Usermod –aG accounting user1

Buy Now
Questions 5

A security team informs the Linux administrator that a specific sever is acting as a n pen relay. To which of the following is the security team referring?

Options:

A.

The server it running the SSH service and is open to the internet allowing outside sources to log in to the server without source IP address filtering.

B.

The server is acting as an unmanaged router, open to the internal and is allowing outside internet traffic into the network with on filtering.

C.

The server is acting as a web proxy and allowing outside unauthenticated sources to connect to the server, effectively hiding tie source's IP address for malicious activities.

D.

The server has an email service configured to allow outside sources to send email to other external parties on the internet without validation.

Buy Now
Questions 6

A systems administrator wants to increase the existing drive space on a Linux server with a software RAID. After physically adding the new drive to the system, and then adding the drive to the RAID array,

the administrator notices the available drive space has not increased. A status of the array shows the new drive and the original storage space:

md0 : active Raid sdd1[3]S sdc1[2] sdb1[1] sda1[0]

954585654 blocks level5 64K chunk algorithm 2 [3/3] [UUU]

Which of the following should the administrator do to make all storage space available on the RAID array?

Options:

A.

Run hdparm to alert the kernel to a new drive.

B.

Convert the new drive to a hot spare.

C.

Set the RAID type to a RAID 1.

D.

Grow the array size to four members.

Buy Now
Questions 7

A systems administrator needs to write a script that performs unattended package upgrades. Which of the folowing flags should be used with either yum or apt to meet this goal?

Options:

A.

-u

B.

-q

C.

-y

D.

-d

Buy Now
Questions 8

A Linux systems administrator is troubleshooting an issue with the /home directory running out of space. The

administrator needs to determine which /home directories are using the most space. Which of the following

commands should be used?

Options:

A.

du

B.

lvs

C.

df

D.

fsck

Buy Now
Questions 9

A technician wants to configure a Unux server as a gateway firewall. The technician has implemented the proper ACLs and port address translation policies, but network traffic is not passing from the LAN to the WAN. Which of the followng should the technician configure to fa this issue?

Options:

A.

DenyHouse

B.

Squid-service

C.

Ip_forward

D.

/etc/service

Buy Now
Questions 10

A system administrator is investigating why user3 cannot log in using SSH to one of the servers.

An attempt to log in results in the following:

XK0-004 Question 10

Which of the following commands should the systems administrator execute to allow user3 log in to the server?

Options:

A.

Restorecon /bin/rssh

B.

Passwd/-u user3

C.

Usermod/ -s /bin/sh user3

D.

Setfac1/ bin/rssh

Buy Now
Questions 11

A systems administrator would like to back up all of the'. conf' files on a server The administrator runs the command:

Find / --name ‘’*conf’’ > backup,tar

After investigating the backup, tar file the administrator realizes that the contents of the configuration files were not backed up property. Which of the following would BEST accomplish this task?

Options:

A.

find / -name ''*conf'' | xargs -- verbose tar xvf backup,tar

B.

find/ -name ''*conf'' exec echo { } \; > backup.tar

C.

find / -name ''*conf'' | cpio -o --format=tar > backup.tar

D.

tar -jtf -<<$(find /-name ''*conf'')

Buy Now
Questions 12

Joe, a system administrator, realizes that the time zone on a system is different than his local time zone. Joe runs the command export Tz-America .Chicago to resolve this. However the next Joe logs in, Joe notices the issue has returned. Which of the following is the BEST way for Joe to fix this issue so the solution persists across logins?

Options:

A.

Run the export Tz=/etc/localtime command

B.

Set the correct the zone with the date command.

C.

Add the export Tz=America/Chicage command to the bash_profile file.

D.

Run the export LC ALL=America/Chicago command

Buy Now
Questions 13

A systems administrator copied the latest archive Of the corporate application, corpapp.tar.gz, to a new server. The backup software lists the following entry in the log file:

XK0-004 Question 13

Which of the following should the administrator run to verify the archive copied correctly without corruption?

XK0-004 Question 13

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 14

An administrator wants to add a user named comptia to the system administrators group. Which of the following commands will accomplish this task?

Options:

A.

Usermod –sG wheel comptia

B.

Useradd -sG wheel comptia

C.

visudo -sG wheel comptia

D.

sudo -sG wheel comptia

Buy Now
Questions 15

A Linux administrator mounts a directory to a Linux workstation by executing the command mount -t ext4 /dev/sdb /mnt /leg. After rebooting the workstation the mounted device is missing. Which of the following commands should it is mounted after reboot?

Options:

A.

echo "/dev/adb /ant/log ext4 defaults 0 0" » /etc/fstab

B.

fsck /dev/sdb

C.

Ivchange --activate /dev/aab

D.

mkfs.txt4 /dev/sdb

Buy Now
Questions 16

Users are reporting collaborate.company.com is inaccessible from the user VLAN, but there is no issue connecting to the system’s web page from the DMZ. Given the following outputs from commands run on the system:

XK0-004 Question 16

Which of the following explains why users are unable to access the system from the user VLAN, and how can the administrator remediate this issue?

Options:

A.

Users cannot access the system because the IP subnet mask is /24. The remediation for this issue is to set the IP subnet mask to /16.

B.

Users cannot access the system because the DNS server has the incorrect IP address. The remediation for this issue is to edit the DNS configuration to point to the correct IP.

C.

Users cannot access the system because the connectivity port is running on the incorrect IP. The remediation for this issue is to edit the configuration file to listen on all interfaces.

D.

Users cannot access the system because the default gateway has the wrong interface. The remediation for this issue is to set the default gateway to the proper interface.

Buy Now
Questions 17

Joe is no longer employed by a company, and Ann is taking over his projects. Several team members work out Of the directory, including Ann. The administrator needs to assign ownership Of all of Joe's files in the /projects directory to Ann. Which of the following should the administrator run to accomplish this task?

XK0-004 Question 17

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 18

A Linux administrator is tasked with implementing a solution that will centralize information and allow it to be searchable and available for reporting purposes. Which of the following server roles should the administrator implement?

Options:

A.

SSH

B.

DNS

C.

Logging

D.

Proxy

E.

NTP

Buy Now
Questions 19

A technician reviews me following output:

XK0-004 Question 19

Which of the following commands should the technician execute to ensure the system has the appropriate paging? (Select TWO).

Options:

A.

dd if-/dev/sda5 of-/otp bs-512

B.

swapon./dev/sda5

C.

mksvap /dev/sda5

D.

mkfs.ext3 /dev/sda5

E.

iostat/dev/sda5

F.

free -m /dev/sda

Buy Now
Questions 20

A user does not want Bluetooth to start up event time the system starts. Which of the following commands should the user execute to accomplish this task?

Options:

A.

systemctl disabled bluetcc-h.service

B.

systemctl disable bluetccth.service

C.

systemctl stop bluetooth.service

D.

systemctl stepped bluetccth.service

Buy Now
Questions 21

A systems administrator scheduled a new kernel module to replace an existing module while the system is running. Which of the ktoung wi accompfctfi ths task?

A)

XK0-004 Question 21

B)

XK0-004 Question 21

C)

XK0-004 Question 21

D)

XK0-004 Question 21

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 22

A Linux administrator wants to load the KVM module into the kernel. Which of the following commands should the administrator use?

Options:

A.

modporbe kvm

B.

rmmod kvm

C.

insmod kvm

D.

depmod kvm

Buy Now
Questions 23

After running an Nmap scan on a local area network, a penetration tester notices several older Linux servers have port 23 open Which of the following should the systems administrator do as a secunty best practice?

Options:

A.

Use a non-standard port for Telnet

B.

Disable and umnstall the Telnet service

C.

Ensure the kernels are up to date with the latest patches

D.

Configure the firewall to allow Telnet access only from trusted networks

Buy Now
Questions 24

An administrator uses a tool to perform roiling deployments when the production application needs to be updated. The tool temporarily removes 10% of the systems from the load balancer at a time and it pushes the newest version of the application to each system. If there are errors the tool rolls back the changes. Which of the following does this scenario BEST describe?

Options:

A.

infrastructure as code

B.

Infrastructure automation

C.

Agent-based architecture

D.

Buid automation

E.

inventory management

Buy Now
Questions 25

An administrator schedules downtime on a system to find out why it takes so long to boot. Which of the following commands will help the administrator determine the issue with this system?

Options:

A.

systemd-analyze blame

B.

syated-analyze time

C.

systemct1 status unit-files

D.

systemct1 mask start

Buy Now
Questions 26

An administrator needs to allow additional specific users and groups to have access to a foWer without removing the original owner or group. Which of the following commands should the administrator use to complete this task?

Options:

A.

sentenforce

B.

setfac1

C.

chmod

D.

chown

Buy Now
Questions 27

A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring paramters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in...

should exist in the /var/log directory. Which of the following should be added to he /etc/ logrotate.conf file to meet this objectives?

A)

XK0-004 Question 27

B)

XK0-004 Question 27

C)

XK0-004 Question 27

D)

XK0-004 Question 27

Options:

A.

Option

B.

Option

C.

Option

D.

Option

Buy Now
Questions 28

An administrator tries to log m to a Linux host with the root account but receives the following error: permission denied. A colleague confirms the password being used is correct. Which of the following is the MOST likely cause..

Options:

A.

The administrator must first run ssh-copy-id

B.

The Linux host cannot connect to the LDAP server

C.

The root account is locked out from too many failed password attempts

D.

PermitRootLogin IS Set to no in /etc/sah/sshd/config

E.

The root account was removed from the system for security purposes

Buy Now
Questions 29

A new packages repository named repo10 has been installed on mirror site. A Linux administrator wants to use this new repository for local package installations. In which of the following locations should the administrator store the configuration information for the repo10 repository?

Options:

A.

/etc/yum.reps.d/repo10.Repo

B.

/etc/yum_repo.d/repo10

C.

/etc/yum.reps.d/repo10

D.

/etc/yum.conf

Buy Now
Questions 30

A technician reviews the following output:

XK0-004 Question 30

Which of the following commands should the technical execute to ensure the system has the appropriate paging? (Select TWO.)

Options:

A.

dd if=dev/sda5 of=/tmp bs=512

B.

swapon /dev/sda5

C.

Mkswap/dev/sda5

D.

Mkfs,ext3 /dev/sda5

E.

Lostat/dev/sda 5

F.

Free –m/dev/sda

Buy Now
Questions 31

A systems administrator a retting an HTTPO server on a Lnux server and configuring as a proxy server The administrator runs the following commands to venfy that the service is running:

XK0-004 Question 31

However, the arjminrstraior is getting a 503 error when browsing to portal.company. internal. After reviewing the logs, the following error information is discovered:

XK0-004 Question 31

Which of the following commands BEST resolves the issue?

Options:

A.

sentforce 0

B.

susearch -m USER_LOGIN -sv no

C.

grep http /var/log/audit/audit,log| audit2why

D.

setsebool -p httpd_can_network_connect 1

Buy Now
Questions 32

Which of the following are Linux desktop environments? (Select TWO).

Options:

A.

X11

B.

Wayland

C.

SPICE

D.

VNC

E.

MATE

F.

KDE

Buy Now
Questions 33

A newly deployed application is not able to reach the database that is running on a Linux server. The connection should occur at port 1521/tcp from appsrv 192.168.1.11 to dbsrv

192.168.1.12.

A server administrator runs a few diagnostic commands with following results:

XK0-004 Question 33

The same command when run from the application server gives the following result:

XK0-004 Question 33

Both machines are in the same IP subnet, so no external network device is causing the issue.

Which of the following commands BEST solves the connectivity issue at the dbsrv machine? (Select TWO).

XK0-004 Question 33

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

F.

Option F

Buy Now
Questions 34

Which of the following can be used to check the status of wireless devices that are connected to the system?

Options:

A.

lsusb

B.

iwconfig

C.

netstat

D.

ifconfig

Buy Now
Questions 35

A technician suspects a company's border firewall is down, thus blocking Internet access. The technician executes the following commands:

#ping -c 1 firewall.company.com

64 bytes from firewall.company.com (192.168.1.1): icmp_seq=1 ttl=64 time=0.061ms

#ping -c 16 www.comptia.com

16 packets transmitted, 0 received, 100% packet loss, time 14999ms

Which of the following commands should the technician use to BEST determine the source of this outage?

Options:

A.

tcpdump

B.

nmap

C.

dig

D.

traceroute

Buy Now
Questions 36

An administrator needs to copy files from a Samba share where the server name is accounting. local, the share is reports, and the username is admin. Assuming local directories exist, which of the following commands would connect to the share?

XK0-004 Question 36

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

E.

Option E

Buy Now
Questions 37

A Linux administrator executed 1vextend to expand disk space to a partition from 8GB to 40GB However, the filesystem is not showing the additional space The administrator runs several commands and rectyes the following output:

XK0-004 Question 37

Which of the following commands should the administrator run to resolve the issue?

Options:

A.

mXfs.extt /dev/mapper/VolQroup00-LogVo100

B.

mkfa_growffa /dev/mapper/Vci;r=.:p00-LogVo100

C.

reaize2ffa /dev/mapper/VolGroup00-LogVo100

D.

parted -a opt /dev/mapper/VolGroup00-LogVo100

Buy Now
Questions 38

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?

Options:

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

Buy Now
Questions 39

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?

Options:

A.

Use curl to copy each user’s public key file to the respective system

B.

Use cp to copy each user’s public key file to the respective system

C.

Use ssh-copy-id 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

Buy Now
Questions 40

A Linux administrator must identify a user with high disk usage. The administrator runs the # du –s /home/* command and gets the following output:

XK0-004 Question 40

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?

Options:

A.

df –k /home/User/files.txt

B.

du –a /home/User3/*

C.

du –sh /home/User/

D.

find . –name /home/User3 -print

Buy Now
Questions 41

A Linux administrator wants to fetch a Git repository from a remote Git server.

Which of the following is the BEST command to perform this task?

Options:

A.

git checkout

B.

git clone

C.

git merge

D.

git config

Buy Now
Questions 42

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?

Options:

A.

ls –lha /opt > test.txt

B.

ls –lha /opt < test.txt

C.

ls –lha /opt >> test.txt

D.

ls –lha /opt << test.txt

Buy Now
Questions 43

A junior administrator of a physical server receives log messages indicating the out-of-memory killer has been active. All memory slots are in use on the motherboard, but additional disk space is available. Space has been allocated for a swap file.

Which of the following should the administrator use to reduce the output of memory messages?

Options:

A.

free : swapoff / swapfile ; swapon -a

B.

mkswap /swapfile; swapon –a

C.

fallocate –l 2G /swapfile && swapon –a

D.

echo “1” > /proc/meninfo ; swapon / swapfile

Buy Now
Questions 44

An analyst is trying to determine which public IP addresses are managed by Company A, but the script is not working correctly.

XK0-004 Question 44

Which of the following explains what is wrong with the script?

Options:

A.

$(cat ip-list.txt) should be changed to `cat ip-list.txt` in the for statement.

B.

The for should be changed to while in the loop.

C.

The > should be changed to 2> in the do statement.

D.

The -ne flag should be changed to -eq in the if statement.

Buy Now
Questions 45

A Linux administration is using a Linux system as a router. During the tests, the administrator discovers that IP packets are not being sent between the configured interfaces.

Which of the following commands enables this feature for IPv4 networks?

Options:

A.

cat /proc/sys/net/ipv4/ip_route > 1

B.

echo “1” > /proc/sys/net/ipv4/ip_forward

C.

echo “1” > /proc/sys/net/ipv4/ip_route

D.

echo “1” > /proc/sys/net/ipv4/ip_net

Buy Now
Questions 46

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?

Options:

A.

renice

B.

kill

C.

bg

D.

nohup

Buy Now
Questions 47

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?

Options:

A.

ethtool

B.

route

C.

netstat

D.

portmap

Buy Now
Questions 48

A Linux storage administrator wants to create a logical volume group. Which of the following commands is required to start the process?

Options:

A.

pvcreate

B.

vgcreate

C.

lvcreate

D.

mkfs.xfs

Buy Now
Questions 49

Joe, a user, reports that he is no longer able to write files to his home directory. Upon inspection, the Linux

administrator discovers that attempting to create a new file gives the following error: No space left on device. However, the disk and partition are not full. Which of the following commands would be BEST for the administrator to use to continue troubleshooting this problem?

Options:

A.

rm -Rf ~/.*

B.

fsck -y /dev/sda1

C.

df -i

D.

fdisk /dev/sda

Buy Now
Questions 50

A junior Linux administrator is installing patches using YUM. The administrator issues the following command:

yum list installed

The output of the command is as follows:

XK0-004 Question 50

Given this scenario and the output, which of the following should the administrator do to address this issue?

Options:

A.

renice –n 9 –p 5180

B.

killall yum

C.

ps –ef | grep yum

D.

top | grep yum

Buy Now
Questions 51

A systems administrator has finished building a new feature for the monitoring software in a separate Git branch.

Which of the following is the BEST method for adding the new feature to the software’s master branch?

Options:

A.

Merge the changes from the feature branch to the master branch.

B.

Save the changes to the master branch automatically with each Git commit.

C.

Clone the feature branch into the master branch.

D.

Pull the changes from the feature branch into the master branch.

Buy Now
Questions 52

A directory called /employee is shared with many employees in a company. New hardware was acquired, and the systems administrator needs to back up all files in /employee before the server is replaced.

Which of the following commands should be used to back up all the files and compress them to use little space in the filesystem?

Options:

A.

tar -zcvf backup.tar.gz /employee

B.

tar -zxvf backup.tar.gz /employee

C.

tar -Cvf backup.tar.gz /employee

D.

tar -Tpf backup.tar.gz /employee

Buy Now
Questions 53

A systems administrator is reviewing the following partial output:

XK0-004 Question 53

Which of the following should the administrator use to find contact information for the connections?

Options:

A.

tcpdump -Invi eth0 host 180.20.210.98 and pore 80

B.

whois $(dig -x 180.20.210.98 +short)

C.

nslookup -query MX 180.20.210.98

D.

tracert, -d 180.20.210.98

E.

host 180.20.210.98 I sendmail

Buy Now
Questions 54

A user is unable to write data to an NFS datastore at /mnt/storage. A df command indicates 50% free

inodes.

Which of the following commands should the user attempt NEXT to diagnose the situation?

Options:

A.

df -h /mnt/storage

B.

du -sh /mnt

C.

fdisk -l /mnt/storage

D.

df -i /mnt/storage

Buy Now
Questions 55

Using which of the following control mode commands is the correct way to substitute all occurrences of /dev/

sdc with /dev/sdd while editing a file in vi?

Options:

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

Buy Now
Questions 56

A systems administrator wants to verify the DNS information of a system that is in production.

Which of the following will provide this information?

Options:

A.

nmap -R 10.10.20.21 10.10.1.10

B.

whois -r -h 10.10.1.10 10.10.20.21

C.

dig -x 10.10.20.21 @10.10.1.10

D.

route 10.10.20.21 gw 10.10.1.10

Buy Now
Questions 57

A systems administrator notices a large number of autoloaded device modules are no longer needed and decides to do a cleanup of them. Which of the following commands will accomplish this task?

Options:

A.

rmmod -c

B.

depmod -r

C.

insmod -c

D.

modprobe -r

Buy Now
Questions 58

A Linux user uses a VPN to securely access the company's systems from a laptop.

Which of the following protocols are MOST likely used to secure the VPN connection? (Choose two.)

Options:

A.

IPSec

B.

HTTP

C.

SFTP

D.

VNC

E.

SSL/TLS

F.

SELinux

Buy Now
Questions 59

An administrator is adding an existing user named ‘’buddy’’ to the Apache group. Which of the following should the administrator perform to accomplish this task?

Options:

A.

sseradd –g apache buddy

B.

ssermod –g apche buddy

C.

sudo useradd –g apache buddy

D.

sudo usermod –g apachebuddy

Buy Now
Questions 60

A systems administrator wants to disable the Linux Kernel WatchDog Timer Driver for security purposes.

Which of the following will accomplish this task?

Options:

A.

Add blacklist watchdog to the /etc/modprobe.d/blacklist file.

B.

Rename the /etc/modprobe.d/watchdog file to watchdog.off instead.

C.

Remove the watchdog=1 from the /usr/modules/watchdog.conf file.

D.

Add watchdog=0 to the /etc/modprobe.conf file.

Buy Now
Questions 61

A systems administrator is implementing disk quotas on /home. During the process, the administrator receives

the following error:

Cannot find filesystem to check or filesystem not mounted with user quota option.

Which of the following is the correct order of steps the administrator should follow to resolve this error?

Options:

A.

1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.

2. Remount /home.

3. Create the quota database files and generate the disk usage table.

4. Assign user quota policies.

B.

1. Create the quota database files and generate the disk usage table.

2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.

3. Remount /home.

4. Assign user quota policies.

C.

1. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.

2. Create the quota database files and generate the disk usage table.

3. Remount /home.

4. Assign user quota policies.

D.

1. Assign user quota policies.

2. Verify if /home has quotas enabled in /etc/fstab and, if not, enable it.

3. Create the quota database files and generate the disk usage table.

4. Remount /home.

Buy Now
Questions 62

A Linux administrator is checking connectivity between two servers in separate subnets:

Server A: 10.1.2.20 (source)

Server B: 10.2.1.10 (destination on port 8080)

The administrator tried to run the curl 10.2.1.10:8080 command on server A and received the following output:

curl: (7) Failed to connect to 10.2.1.10 port 8080: Connection refused.

The administrator checked on server B and confirmed nothing is listening on port 8080.

Which of the following commands, when run on server B, would have allowed the administrator to test the connection successfully?

Options:

A.

tcpdump ‘tcp port 8080’

B.

ss -l -p dport=8080 dst 10.2.1.10

C.

nc -l -p 8080 10.2.1.10

D.

nmap -v -p 8080 10.2.1.10

Buy Now
Questions 63

An administrator is installing a new kernel but is getting an error indicating the filesystem is out of space. A disk

usage check shows / has plenty of space.

Which of the following BEST represents where the administrator should check next?

Options:

A.

/var

B.

/proc

C.

/boot

D.

/etc

Buy Now
Questions 64

In which of the following directories is the vmlinuz file located?

Options:

A.

/boot

B.

/etc

C.

/bin

D.

/proc

Buy Now
Questions 65

A systems administrator needs to allow the Linux server to receive HTTP connections from Internet hosts. By default, the port for HTTP connections is blocked. Which of the following rules should be added in the firewall to allow this type of connection?

Options:

A.

firewall-cmd --zone=public --add-port=443/tcp --permanent

B.

firewall-cmd --zone=internal --add-port=80/tcp --permanent

C.

firewall-cmd --zone=public --add-port=80/tcp --permanent

D.

firewall-cmd --zone=internal --add-port=443/tcp --permanent

Buy Now
Questions 66

Users in the payroll department are not configured to use DNS due to security concerns. The users ask the

junior Linux administrator to configure their workstations to access the payroll server at 192.168.204.11 by the

name “Payroll”. Which of the following commands should the administrator issue to meet this request?

Options:

A.

echo “nameserver 192.168.204.11 #Payroll” >> /etc/resolv.conf

B.

echo “net.ipv4.ip_dynaddr=192.168.204.11 Payroll” >> /etc/sysctl.conf

C.

echo “192.168.204.11 Payroll” >> /etc/hosts

D.

echo ‘IPADDR=”192.168.204.11” #Payroll’ >> /etc/network/interface

Buy Now
Questions 67

A Linux administrator receives a call from the network operations team that one of the database applications is down on a Linux server. The Linux server is configured with RAID 1 for redundancy, and the array /dev/md0 consists of two devices called /dev/sda1 and /dev/sdb1. After looking at the status of the RAID 1 array in the /proc/mdstat file, the administrator discovers the RAID 1 array is degraded and the disk /dev/sdb1 on which the database application was installed appears to have failed.

XK0-004 Question 67

Which of the following steps should the administrator take to remove the device /dev/sdb1 from the RAID array md0? (Choose two.)

Options:

A.

mdadm /dev/md0 --remove /dev/sdb1

B.

mdadm /dev/sdb1 --fail /dev/md0

C.

mdadm /dev/md0 --fail /dev/sdb1

D.

mdadm /dev/sdb1 --remove /dev/md0

E.

racadm --remove /dev/sdb1

F.

racadm --fail /dev/sdb1

Buy Now
Questions 68

An administrator is reviewing updates in the master online Git repository and notices a file named .htaccess.

The file contains passwords and should only be in the administrator’s local repository, not the online one.

Which of the following would prevent this file from appearing online in the future?

Options:

A.

git commit -m "File Update" -x .htaccess

B.

sed -i 's/#Preserve Hidden=True/Preserve Hidden=True/g' .git/config

C.

chown nobody:nodoby .htaccess

D.

echo ".htaccess" >> .gitignore

Buy Now
Questions 69

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?

Options:

A.

usermod –a –G dba jsmith

B.

usermod –g dba jsmith

C.

useradd –g dba jsmith

D.

groupmod dba –u jsmith

Buy Now
Questions 70

An administrator is analyzing a Linux server which was recently hacked.

Which of the following will the administrator use to find all unsuccessful login attempts?

Options:

A.

nsswitch

B.

faillock

C.

pam_tally2

D.

passwd

Buy Now
Questions 71

A junior administrator needs to unload an older video kernel module.

Which of the following commands would BEST accomplish this task?

Options:

A.

modprobe

B.

insmod

C.

rmmod

D.

chmod

Buy Now
Questions 72

A junior Linux administrator is installing a new application with CPU architecture requirements that have the following specifications:

x64 bit

3.0GHz speed

Minimum quad core

The administrator wants to leverage existing equipment but is unsure whether the requirements of these systems are adequate. The administrator issues the following command cat/proc/cpuinfo. The output of the command is as follows:

XK0-004 Question 72

Which of the following is the recommended course of action the administrator should take based on this output?

Options:

A.

Install the application, as the system meets the application requirements

B.

Procure new equipment that matches the recommended specifications

C.

Recompile the Linux kernel to support the installation.

D.

Reconfigure lib modules to support the new application.

Buy Now
Exam Code: XK0-004
Exam Name: CompTIA Linux+ Certification Exam
Last Update: Nov 29, 2023
Questions: 483
dumpsmate guaranteed to pass
24/7 Customer Support

DumpsMate's team of experts is always available to respond your queries on exam preparation. Get professional answers on any topic of the certification syllabus. Our experts will thoroughly satisfy you.

Site Secure

mcafee secure

TESTED 26 Apr 2024