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

XK0-004 Premium Exam Questions

Page: 6 / 18
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 21

A Linux administrator needs to configure a user account to notify the user ten days before the password will expire. Which of the following commands would BEST accomplish this task?

Options:

A.

chage

B.

vipw

C.

password

D.

usermod

Question 22

A Linux administrator is creating a new local Linux user account for a web application The account has the following requirements:

• Use/var/www as the home directory

• Have the service_accounts group as its pnmary group

• Have the www user group as a secondary group

• Disable the account when the password expires

Which of the following BEST meets these requirements?

Options:

A.

useradd -D/var/www/-g service_accounts -G www -c 0

B.

useradd -d/var/www/-g service_accounts -f www -g 0

C.

useradd -D/var/www/-g service_accounts -g www -c 0

D.

useradd -d/var/www/-g service_accounts -G www -f 0

Question 23

A Linux administrator added storage to an XFS-formatted filesystem at /dev/mapper/vgslash-lvLog device using the LVM tools. However, the additional space does not show up when the administrator runs the df - h command. Which of the following commands should the administrator run to resolve this issue?

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question 24

A Linux administrator configured several network interfaces to be used for backup. The administrator entered the following commands:

After the last command, a new interlace appeared as connected and worked until the Linux system was rebooted. After the reboot, the Interface did not connect properly. Which of the following configuration changes are needed to ensure that the Interface connects automatically?

Options:

A.

The backup Interface should be reconfigured with a / 2 4 subnet mask.

B.

autoconnect yes should be added to the interface configuration.

C.

mcli conn up backup should be executed

D.

ip link set eth1 should be performed.

Page: 6 / 18
Total 483 questions