Pre-Summer Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

XK0-005 CompTIA Linux+ Exam is now Stable and With Pass Result | Test Your Knowledge for Free

Exams4sure Dumps

XK0-005 Practice Questions

CompTIA Linux+ Exam

Last Update 7 hours ago
Total Questions : 487

Dive into our fully updated and stable XK0-005 practice test platform, featuring all the latest Linux+ exam questions added this week. Our preparation tool is more than just a CompTIA study aid; it's a strategic advantage.

Our free Linux+ practice questions crafted to reflect the domains and difficulty of the actual exam. The detailed rationales explain the 'why' behind each answer, reinforcing key concepts about XK0-005. Use this test to pinpoint which areas you need to focus your study on.

XK0-005 PDF

XK0-005 PDF (Printable)
$43.75
$124.99

XK0-005 Testing Engine

XK0-005 PDF (Printable)
$50.75
$144.99

XK0-005 PDF + Testing Engine

XK0-005 PDF (Printable)
$63.7
$181.99
Question # 31

A Linux administrator recently downloaded a software package that is currently in a compressed file. Which of the following commands will extract the files?

Options:

A.  

unzip -v

B.  

bzip2 -z

C.  

gzip

D.  

funzip

Discussion 0
Question # 32

A Linux administrator needs to check extended permissions applied to the directory test. Which of the following commands should the administrator use to help with this task?

Options:

A.  

getsebool test/

B.  

getenforce test/

C.  

getfacl test/

D.  

ls -al test/

Discussion 0
Question # 33

The journald entries have filled a Linux machine's /var volume. Which of the following is the best command for a systems administrator to use to free up the disk space occupied by these entries?

Options:

A.  

journalctl —rotatejournalctl --vacuum-time=ls

B.  

systemctl stop systemd-journaldsystemctl start systemd-journald

C.  

rm -rf /var/log/journalsystemctl restart systemd-journald

D.  

pkill -HUP systemd-journaldsystemctl restart systemd-journald

Discussion 0
Question # 34

A Linux administrator needs to expose port 9000 for a container to listen during runtime. The Linux administrator creates a Dockerfile with the following entries:

sql

FROM node:9-alpine

WORKDIR /usr/src/app

COPY package.json ./

RUN npm install

COPY . .

EXPOSE 9000

CMD ["npm", "start"]

Which of the following commands should the administrator use to accomplish this task? (Select two).

Options:

A.  

docker build -t Test-Container

B.  

docker tag Test-Container

C.  

docker inspect Test-Container

D.  

docker run -p 5000:80 Test-Container

E.  

docker push Test-Container

F.  

docker run -p 80:9000 Test-Container

Discussion 0
Question # 35

A Linux administrator created a virtual clone of a physical server and would like to remove any existing entries related to SSH keys from outside entities on the virtual clone. Which of the following files should the administrator remove? (Select two).

Options:

A.  

~/.ssh/authorized_keys

B.  

~/.ssh/known_hosts

C.  

/etc/ssh/ssh_config

D.  

~/.ssh/config

E.  

/etc/ssh/sshd_config

F.  

/etc/ssh/ssh_host_rsa_key.pub

Discussion 0
Question # 36

A Linux administrator needs to create a symlink for /usr/local/bin/app-a, which was installed in /usr/local/share/app-a. Which of the following commands should the administrator use?

Options:

A.  

In -s /usr/local/bin/app-a /usr/local/share/app-a

B.  

mv -f /usr/local/share/app-a /usr/local/bin/app-a

C.  

cp -f /usr/local/share/app-a /usr/local/bin/app-a

D.  

rsync -a /usr/local/share/app-a /usr/local/bin/app-a

Discussion 0
Question # 37

An administrator accidentally deleted the /boot/vmlinuz file and must resolve the issue before the server is rebooted. Which of the following commands should the administrator use to identify the correct

version of this file?

Options:

A.  

rpm -qa | grep kernel; uname -a

B.  

yum -y update; shutdown -r now

C.  

cat /etc/centos-release; rpm -Uvh --nodeps

D.  

telinit 1; restorecon -Rv /boot

Discussion 0
Question # 38

A Linux system is failing to start due to issues with several critical system processes. Which of the following options can be used to boot the system into the single user mode? (Choose two.)

Options:

A.  

Execute the following command from the GRUB rescue shell: mount -o remount, ro/sysroot.

B.  

Interrupt the boot process in the GRUB menu and add systemd.unit=single in the kernel line.

C.  

Interrupt the boot process in the GRUB menu and add systemd.unit=rescue.target in the kernel line.

D.  

Interrupt the boot process in the GRUB menu and add single=user in the kernel line.

E.  

Interrupt the boot process in the GRUB menu and add init=/bin/bash in the kernel line.

F.  

Interrupt the boot process in the GRUB menu and add systemd.unit=single.target in the kernel line.

Discussion 0
Question # 39

An administrator attempts to rename a file on a server but receives the following error.

The administrator then runs a few commands and obtains the following output:

Question # 39

Which of the following commands should the administrator run NEXT to allow the file to be renamed by any user?

Options:

A.  

chgrp reet files

B.  

chacl -R 644 files

C.  

chown users files

D.  

chmod -t files

Discussion 0
Question # 40

A systems administrator needs to validate that the dm_multipath driver was loaded in a Linux system. Which of the following commands should the administrator use?

Options:

A.  

lsmod | grep dm_multipath

B.  

modinfo | grep dm_multipath

C.  

insmod | grep dm_multipath

D.  

modprobe | grep dm_multipath

Discussion 0
Get XK0-005 dumps and pass your exam in 24 hours!

Free Exams Sample Questions