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

A systems administrator is compiling a report containing information about processes that are listening on the network ports of a Linux server. Which of the following commands will allow the administrator to obtain the needed information?

Options:

A.  

ss -pint

B.  

tcpdump -nL

C.  

netstat -pn

D.  

lsof -It

Discussion 0
Question # 72

A systems administrator pressed Ctrl+Z after starting a program using the command line, and the shell prompt was presented. In order to go back to the program, which of the following commands can the administrator use?

Options:

A.  

fg

B.  

su

C.  

bg

D.  

ed

Discussion 0
Question # 73

Which of the following commands is used to configure the default permissions for new files?

Options:

A.  

setenforce

B.  

sudo

C.  

umask

D.  

chmod

Discussion 0
Question # 74

Users are unable to create new files on the company's FTP server, and an administrator is troubleshooting the issue. The administrator runs the following commands:

Question # 74

Which of the following is the cause of the issue based on the output above?

Options:

A.  

The users do not have the correct permissions to create files on the FTP server.

B.  

The ftpusers filesystem does not have enough space.

C.  

The inodes is at full capacity and would affect file creation for users.

D.  

ftpusers is mounted as read only.

Discussion 0
Question # 75

The group named support is unable to make changes to the config file. An administrator is reviewing the permissions and sees the following:

S Is -1 config

-rw-rw----. 1 root app 4682 02-15 11:25 config

Which of the following should the administrator execute in order to give the support group access to modify the file while preserving the current ownership?

Options:

A.  

chown :support config

B.  

setfacl -m g:support:rw- config

C.  

chmod 664 config

D.  

chmod g+s config

Discussion 0
Question # 76

Which of the following describes how a user's public key is used during SSH authentication?

Options:

A.  

The user's public key is used to hash the password during SSH authentication.

B.  

The user's public key is verified against a list of authorized keys. If it is found, the user is allowed to log in.

C.  

The user's public key is used instead of a password to allow server access.

D.  

The user's public key is used to encrypt the communication between the client and the server.

Discussion 0
Question # 77

Users report that they cannot access some files located in the /opt/finapp directory after a power outage caused an unexpected server restart. A Linux administrator examines the following filesystem details and system logs:

# mount | grep finapp

/dev/mapper/rhel-opt_finapp on /opt/finapp type xfs (rw,relatime,seclabel,attr2,inode64,logbufs=8,logbsize=32k,noquota)

# lsblk

NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT

sda 8:0 0 931.5G 0 disk

├─sda1 8:1 0 1G 0 part /boot

└─sda2 8:2 0 930.5G 0 part

├─rhel-root 253:0 0 30.5G 0 lvm /

└─rhel-opt_finapp 253:1 0 900G 0 lvm /opt/finapp

# grep opt_finapp /var/log/messages

XFS (opt_finapp): Corruption detected in inode 3645, extent tree

Which of the following commands should the administrator run in an attempt to fix the filesystem?

Options:

A.  

fdisk /dev/mapper/rhel-opt_finapp

B.  

xfs_repair /dev/mapper/rhel-opt_finapp

C.  

lvcreate -L900G -n opt_finapp rhel

D.  

fsck.ext4 /dev/mapper/rhel-opt_finapp

Discussion 0
Question # 78

A systems administrator receives reports that several virtual machines in a host are responding slower than expected. Upon further investigation, the administrator obtains the following output from one of the affected systems:

Which of the following best explains the reported issue?

Options:

A.  

The physical host is running out of CPU resources, leading to insufficient CPU time being allocated to virtual machines.

B.  

The physical host has enough CPU cores, leading to users running more processes to compensate for the slower response times.

C.  

The virtual machine has enough CPU cycles, leading to the system use percentage being higher than expected.

D.  

The virtual machine is running out of CPU resources, leading to users experiencing longer response times.

Discussion 0
Question # 79

A systems administrator received a report about issues with a Linux system Given the following output:

Question # 79

Which of the following is the best command to use to fix this issue?

Options:

A.  

mkfs.xfs /var

B.  

rm -rf /var/*

C.  

lvextend -L +5G -r /dev/mapper/rootvg-varlv

D.  

lvresize -L +2G -r /dev/mapper/rootvg-rootlv

Discussion 0
Question # 80

An operations engineer is planning to start a container running a PostgreSQL database. The engineer wants the container to start automatically at system startup, mount the /home/db directory as /var/lib/postgresql inside the container, and expose port 5432 to the OS. Which of the following commands should the engineer run to achieve this task?

Options:

A.  

docker run -d --restart always -p 5432:5432 -v /home/db:/var/lib/postgresql postgresql:12

B.  

docker run -d --restart -p 5432:5432 --volume /var/lib/postgresql:/home/db postgresql:12

C.  

docker run -d --attach --platform 5432:5432 --volume /home/db:/var/lib/postgresql postgresql:12

D.  

docker run -d --init --restart --publish 5432:5432 --workdir /home/db:/var/lib/postgresql postgresql:12

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

Free Exams Sample Questions