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

XK0-004 Leak Questions

Page: 14 / 18
Total 483 questions

CompTIA Linux+ Certification Exam Questions and Answers

Question 53

A system administrator has discovered a drive is malfunctioning and needs to be replaced in a server. The administrator lists properties of the exiting storage before attempting the replacement:

After replacing the malfunctioning drive, which of the following is the BEST way to create the proper partition table on the new drive?

Options:

A.

Parted –a optimal /dev/sdb primary 0% 2000MB

B.

Fdis.dev/sdb< echo p; echo d; eacho w)

C.

Mkpart primary 1MB 2000MB /dev/sdb

D.

Sfdisk –dev/sda| sfdisk/dev/sdb

Question 54

A Linux administrator created a new log file in /var/log/newlog to monitor a newly installed application. The administrator is now configuring parameters of the file so it will be rotated on a weekly basis or when it becomes larger than 1MB in size. In addition, five rotations of the file should exist in the /var/log directory.

Which of the following should be added to the /etc/logrotate.conf file to meet this objective?

Options:

A.

C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

B.

C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

C.

C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

D.

C:\Users\Admin\Desktop\Data\Odt data\Untitled.jpg

Question 55

A user has been locked out of an account due to too many failed password attempts. Which of the following commands will unlock the user’s account?

Options:

A.

pam_tally2 --user=user --reset

B.

passwd -u user -G root

C.

usermod -u user -G root

D.

chage -1 user=user --reset

Question 56

A Linux administrator looks at the /etc/timezone file and determines the need to change the time zone from California to New York temporarily. Which of the following commands will accomplish this?

Options:

A.

sed -f TZ=America/New_York

B.

cat TZ=America/New_York

C.

export TZ=America/New_York

D.

printf TZ=America/New_York

Page: 14 / 18
Total 483 questions