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

Linux+ Changed XK0-004 Questions

Page: 7 / 18
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 25

An administrator is writing a Bash script to audit SSH logins. Which of the following logs would the administrator parse to find the needed information?

Options:

A.

/var/log/secure/

B.

/var/log/messages

C.

/var/log/firewalld

D.

/var/log/sssd

Question 26

A Linux systems administrator wants to see the current processes that are being run by each individual user who is logged on to the server. Which of the following is the BEST way to gather this information?

Options:

A.

wall

B.

who

C.

which

D.

watch

E.

w

Question 27

Some Bash scripts arc being versioned and stored in a Git repository Which of the following commands should the Linux administrator use to exclude tmp Wes from being added to the repository during any code adds and commits?

Options:

A.

export GIT_IGNORE=,tmp

B.

alias git=git commit --ignore=, tmp

C.

echo .gitignore >> * tmp

D.

git config -- blacklist = tmp

Question 28

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

Page: 7 / 18
Total 483 questions