Special Summer Sale 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: save70

PDF XK0-005 Study Guide

Page: 16 / 30
Total 401 questions

CompTIA Linux+ Exam Questions and Answers

Question 61

A Linux engineer receives the following notification from a system:

cp: cannot create regular file '/app/appdata.tar*': No space left on device

The engineer obtains the following output:

[root@host ~]# df -i /app

Filesystem Inodes IUsed IFree Mounted on

/dev/vdb 2048 2048 0 /app

bash

CopyEdit

[root@host ~]# df -h /app

Filesystem Size Used Avail Use% Mounted on

/dev/vdb 2.0G 6.1M 1.9G 1% /app

Which of the following describes the state of the filesystem based on this output?

Options:

A.

The filesystem was mounted in read-only mode.

B.

The filesystem has depleted the available inodes.

C.

The filesystem is not mounted in the correct location.

D.

The filesystem has consumed the available space.

Question 62

A user is cleaning up a directory because it has more than 100,000 files that were generated from an experiment. When the user tries to remove the unneeded experiment files, the user receives an error:

arduino

cannot execute [Argument list too long]

Which of the following should the user execute to remove these files?

Options:

A.

find . -name "experiment*.txt" -exec rm "{}" ;

B.

rm -rf experiment*.txt

C.

rm --force experiment*.txt

D.

for i in experiment*.txt; do find . -name $i -exec rmdir "{}" ; done

Question 63

A developer is unable to access a Linux server via SSH. Given the following output:

SSH server configuration (/etc/ssh/sshd_config):

PermitRootLogin no

PubkeyAuthentication yes

PasswordAuthentication yes

GSSAPIAuthentication yes

X11Forwarding no

User Information (/etc/passwd):

developer:x:1000:1000:comptia:/home/developer:/bin/bash

User Shadow File (/etc/shadow):

developer:!!::0:99999:7:::

Which of the following explains why the developer is unable to log in to the server?

Options:

A.

The developer’s private key has been deleted from the server.

B.

The developer's account has been locked out.

C.

The developer's public key is in the wrong location.

D.

SSH has been disabled for user log-in.

Question 64

A user (userA) has reported issues while logging in to the system. The following output has been provided:

bash

Could not chdir to home directory /home/userA: Permission denied

-bash: /home/userA/.bash_profile: Permission denied

# cat /etc/passwd | grep userA

userA:x:1234:3400:userA account:/home/userA/:/bin/bash

# passwd -S userA

userA PS 2022-10-17 1 99999 0 (Password set. SHA512 crypt.)

# groups userA

admin dev usergrp

# ls -lth /home/

drwx------ 7 root admin 9 Jan 17 2019 userA

drwxr-xr-x 4 userC app 9 Jan 23 2020 userC

Which of the following describes the issue userA is having?

Options:

A.

The password for userA is not set

B.

The group for userA is not assigned correctly

C.

The account password for userA has expired

D.

The assigned home directory is not owned by userA

Page: 16 / 30
Total 401 questions