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

Free LPI 102-500 Practice Exam with Questions & Answers | Set: 7

Questions 61

Which environment variable should be set in order to change the time zone for the commands run from within the environment variable's scope? (Specify the variable name only.)

Options:
LPI 102-500 Premium Access
Questions 62

Which crontab entry could be used to set the system time at regular intervals?

Options:
A.

1 0 * * * date $d $t $24

B.

1 0 * * * ntpdate ntp1.digex.net

C.

1 0 * * * date ntp1.digex.net

D.

1 0 * * * runcron date ntp1.digex.net

E.

1 0 * * * settime $d $t $24

Questions 63

Which of the following commands can remove a user from a group?

Options:
A.

grouprm

B.

groupmod

C.

passwd

D.

usergroups

E.

usermod

Questions 64

Of the ways listed, which is the best way to temporarily suspend a single user's ability to interactively login?

Options:
A.

Add the user name to /etc/nologin.

B.

Change the user's password.

C.

Change the user name in /etc/passwd.

D.

Use change to expire the user account.

E.

Place the command logout in the user's profile.

Questions 65

How is the file format of /etc/crontab different from a normal crontab file? (Select TWO correct answers)

Options:
A.

The /etc/crontab file can specify a year field.

B.

A normal crontab file must be installed with the crontab command.

C.

A normal crontab file allows for environment variable substitution.

D.

The /etc/crontab file has a user field for commands.

Questions 66

Which of the following crontab entries will execute myscript at 30 minutes past every hour on Sundays?

Options:
A.

0 * * * 30 myscript

B.

30 * * * 6 myscript

C.

30 0 * * 0 myscript

D.

30 0-23 * * 0 myscript

E.

0 0-23 * * 30 myscript

Questions 67

Which command will set the local machine's timezone to UTC?

Options:
A.

cat UTC > /etc/timezone

B.

ln -s /usr/share/zoneinfo/UTC /etc/localtime

C.

date --timezone=UTC

D.

mv /usr/timezone/UTC /etc

Questions 68

Which of the following can the chage command NOT change?

Options:
A.

The number of days since January 1, 1970 after which the user's account will no longer be accessible.

B.

The number of days since January 1, 1970 after which the password can change.

C.

The number of days since January 1, 1970 since the password was last changed.

D.

The maximum number of days during which a password is valid.

E.

The number of days of inactivity after a password has expired before the account is locked.

Questions 69

What is the main difference between the batch and at commands?

Options:
A.

The batch command will run multiple times.The at command will only run once.

B.

The batch command will run when system load is low. The at command runs at a specific time.

C.

The at command reads commands from standard input. The batch command requires a command line argument.

D.

The at command e-mails results to the user. The batch command logs results to syslog.

Questions 70

Of the ways listed, which is the best method to temporarily suspend a user's ability to interactively login?

Options:
A.

Use passwd -d username to give the user an empty password.

B.

Use chage to expire the user account.

C.

Change the user's password.

D.

Add the command exit to the user's .login file.

Exam Code: 102-500
Certification Provider: LPI
Exam Name: LPIC-1 Exam 102, Part 2 of 2, version 5.0
Last Update: Mar 27, 2025
Questions: 235