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

Good News !!! XK0-005 CompTIA Linux+ Exam is now Stable and With Pass Result

XK0-005 Practice Exam Questions and Answers

CompTIA Linux+ Exam

Last Update 6 days ago
Total Questions : 396

CompTIA Linux+ Exam is stable now with all latest exam questions are added 6 days ago. Incorporating XK0-005 practice exam questions into your study plan is more than just a preparation strategy.

XK0-005 exam questions often include scenarios and problem-solving exercises that mirror real-world challenges. Working through XK0-005 dumps allows you to practice pacing yourself, ensuring that you can complete all CompTIA Linux+ Exam practice test within the allotted time frame.

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 # 1

Joe, a user, is unable to log in to the system. The Linux administrator checks the /etc/passwd file and reviews the following output:

Joe:x:1002:1002::/home/Joe:/sbin/nologin

Which of the following should the administrator do to fix this issue?

Options:

A.  

Remove the x entry in the /etc/passwd file for Joe

B.  

Change the /sbin/nologin entry to /bin/sh for Joe

C.  

Issue the usermod -l Joe command

D.  

Ensure that a corresponding entry is in the /etc/shadow file for Joe

Discussion 0
Question # 2

An administrator runs ping comptia.org. The result of the command is:

ping: comptia.org: Name or service not known

Which of the following files should the administrator verify?

Options:

A.  

/etc/ethers

B.  

/etc/services

C.  

/etc/resolv.conf

D.  

/etc/sysctl.conf

Discussion 0
Question # 3

A Linux administrator is configuring crontab and needs to schedule a task to run only on Saturday and Sunday at 9:00 a.m. every week of the year. Which of the following should the administrator use?

Options:

A.  

0 9 * * 1-5 root /root/script.sh

B.  

0 9 1 */3 * root /root/script.sh

C.  

0 9 * * 6,0 root /root/script.sh

D.  

0 9 1 * * root /root/script.sh

Discussion 0
Question # 4

A Linux systems administrator is working to obtain the installed kernel version of several hundred systems. Which of the following utilities should the administrator use for this task?

Options:

A.  

Ansible

B.  

Git

C.  

Docker

D.  

Bash

Discussion 0
Question # 5

A file called testfile has both uppercase and lowercase letters:

$ cat testfile

ABCDEfgH

IJKLmnoPQ

abcdefgH

ijklLMNopq

A Linux administrator is tasked with converting testfile into all uppercase and writing it to a new file with the name uppercase. Which of the following commands will achieve

this task?

Options:

A.  

tr '(A-Z}' '{a-z}' < testfile > uppercase

B.  

echo testfile | tr "[Z-A]" "[z-a]" < testfile > uppercase

C.  

cat testfile | tr '{z-a)' '{Z-A}' < testfile > uppercase

D.  

tr '[a-z]' '[A-Z]' < testfile > uppercase

Discussion 0
Question # 6

An administrator wants to execute a long-running script in the terminal while troubleshooting another issue. Which of the following options will achieve this goal?

Options:

A.  

bash script.sh &

B.  

source script.sh

C.  

sh script.sh | jobs

D.  

nice -10 ./script.sh

Discussion 0
Question # 7

A systems administrator needs to remove a disk from a Linux server. The disk size is 500G, and it is the only one that size on that machine. Which of the following commands can the

administrator use to find the corresponding device name?

Options:

A.  

fdisk -V

B.  

partprobe -a

C.  

lsusb -t

D.  

lsscsi -s

Discussion 0
Question # 8

A Linux administrator generated a list of users who have root-level command-line access to the Linux server to meet an audit requirement. The administrator analyzes the following /etc/passwd and /etc/sudoers files:

$ cat /etc/passwd

root:x: 0:0: :/home/root: /bin/bash

lee: x: 500: 500: :/home/lee:/bin/tcsh

mallory:x: 501:501: :/root:/bin/bash

eve:x: 502: 502: /home/eve:/bin/nologin

carl:x:0:503: :/home/carl:/bin/sh

bob:x: 504: 504: : /home/bob:/bin/ksh

alice:x: 505:505: :/home/alice:/bin/rsh

$ cat /etc/sudoers

Cmnd_Alias SHELLS = /bin/tcsh, /bin/sh, /bin/bash

Cmnd_Alias SYSADMIN = /usr/sbin/tcpdump

ALL = (ALL) ALL

ALL = NOPASSWD: SYSADMIN

Which of the following users, in addition to the root user, should be listed in the audit report as having root-level command-line access? (Select two).

Options:

A.  

Carl

B.  

Lee

C.  

Mallory

D.  

Eve

E.  

Bob

F.  

Alice

Discussion 0
Question # 9

NO: 22:

An organization’s business office needs to collaborate on quarterly reports and asks the systems administrator to create a finance group. The administrator creates the following directory:

drwxrwxr-x Business Business 4096 Oct 15 16:40 Q1

Which of the following commands will allow all members of the finance group to have group ownership of all files created in the Q1 directory while ensuring that members of the business group preserve access? (Select two).

Options:

A.  

chgrp Finance Q1/

B.  

chmod g+s Q1/

C.  

chmod u+s Q1/

D.  

chmod a+x Q1/

E.  

chown Finance Q1/

F.  

chmod g+x Q1/

Discussion 0
Question # 10

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
Get XK0-005 dumps and pass your exam in 24 hours!

Free Exams Sample Questions