ExamGecko
Home Home / LPI / 102-500

LPI 102-500 Practice Test - Questions Answers, Page 9

Question list
Search
Search

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

A.
cat UTC > /etc/timezone
A.
cat UTC > /etc/timezone
Answers
B.
ln -s /usr/share/zoneinfo/UTC /etc/localtime
B.
ln -s /usr/share/zoneinfo/UTC /etc/localtime
Answers
C.
date --timezone=UTC
C.
date --timezone=UTC
Answers
D.
mv /usr/timezone/UTC /etc
D.
mv /usr/timezone/UTC /etc
Answers
Suggested answer: B

Which command should be added to /etc/bash_profile to change the language of messages from an internationalised program to Portuguese (pt)? (Select TWO correct answers)

A.
export LANGUAGE="pt"
A.
export LANGUAGE="pt"
Answers
B.
export MESSAGE="pt"
B.
export MESSAGE="pt"
Answers
C.
export LANG="pt"
C.
export LANG="pt"
Answers
D.
export LC_MESSAGES="pt"
D.
export LC_MESSAGES="pt"
Answers
E.
export ALL_MESSAGES="pt"
E.
export ALL_MESSAGES="pt"
Answers
Suggested answer: C, D

A user was not given permission to use the CRON scheduling system. What file needs to be modified to provide that access? (Please specify the full path to the file)

A.
/etc/cron.allow
A.
/etc/cron.allow
Answers
Suggested answer: A

Which commands can you use to change a user's account aging information? (Choose THREE correct answers.)

A.
usermod
A.
usermod
Answers
B.
passwd
B.
passwd
Answers
C.
chattr
C.
chattr
Answers
D.
chage
D.
chage
Answers
E.
chsh
E.
chsh
Answers
Suggested answer: A, B, D

Why is /etc/shadow not world readable if the passwords are stored in an encrypted fashion?

A.
The encrypted passwords are still subject to brute force attacks.
A.
The encrypted passwords are still subject to brute force attacks.
Answers
B.
This is just for historical reasons.
B.
This is just for historical reasons.
Answers
C.
There is other information in the file that needs to be kept secret.
C.
There is other information in the file that needs to be kept secret.
Answers
D.
The passwords can be decrypted by anyone with root access.
D.
The passwords can be decrypted by anyone with root access.
Answers
Suggested answer: A

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

A.
Add the user name to /etc/nologin.
A.
Add the user name to /etc/nologin.
Answers
B.
Change the user's password.
B.
Change the user's password.
Answers
C.
Change the user name in /etc/passwd.
C.
Change the user name in /etc/passwd.
Answers
D.
Use change to expire the user account.
D.
Use change to expire the user account.
Answers
E.
Place the command logout in the user's profile.
E.
Place the command logout in the user's profile.
Answers
Suggested answer: D

Which TWO statements about crontab are true?

A.
Every user may have their own crontab.
A.
Every user may have their own crontab.
Answers
B.
Changing a crontab requires a reload/restart of the cron daemon.
B.
Changing a crontab requires a reload/restart of the cron daemon.
Answers
C.
The cron daemon reloads crontab files automatically when necessary.
C.
The cron daemon reloads crontab files automatically when necessary.
Answers
D.
hourly is the same as "0 * * * *".
D.
hourly is the same as "0 * * * *".
Answers
E.
A cron daemon must run for each existing crontab.
E.
A cron daemon must run for each existing crontab.
Answers
Suggested answer: A, C

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

A.
1 0 * * * date $d $t $24
A.
1 0 * * * date $d $t $24
Answers
B.
1 0 * * * ntpdate ntp1.digex.net
B.
1 0 * * * ntpdate ntp1.digex.net
Answers
C.
1 0 * * * date ntp1.digex.net
C.
1 0 * * * date ntp1.digex.net
Answers
D.
1 0 * * * runcron date ntp1.digex.net
D.
1 0 * * * runcron date ntp1.digex.net
Answers
E.
1 0 * * * settime $d $t $24
E.
1 0 * * * settime $d $t $24
Answers
Suggested answer: B

Which of the following commands can be used to convert text files in one character encoding to another character encoding?

A.
cat
A.
cat
Answers
B.
convert
B.
convert
Answers
C.
dd
C.
dd
Answers
D.
iconv
D.
iconv
Answers
E.
utf2utf
E.
utf2utf
Answers
Suggested answer: D

Explanation:

Topic 4, Essential System Services

Which option in the /etc/ntp.conf file specifies an external NTP source to be queried for time information? (Specify ONLY the option without any values or parameters.)

A.
server
A.
server
Answers
Suggested answer: A
Total 194 questions
Go to page: of 20