ExamGecko
Home Home / LPI / 102-500

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

Question list
Search
Search

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

A.
0 * * * 30 myscript
A.
0 * * * 30 myscript
Answers
B.
30 * * * 6 myscript
B.
30 * * * 6 myscript
Answers
C.
30 0 * * 0 myscript
C.
30 0 * * 0 myscript
Answers
D.
30 0-23 * * 0 myscript
D.
30 0-23 * * 0 myscript
Answers
E.
0 0-23 * * 30 myscript
E.
0 0-23 * * 30 myscript
Answers
Suggested answer: D

Which of the following files assigns a user to its primary group?

A.
/etc/pgroup
A.
/etc/pgroup
Answers
B.
/etc/shadow
B.
/etc/shadow
Answers
C.
/etc/group
C.
/etc/group
Answers
D.
/etc/passwd
D.
/etc/passwd
Answers
E.
/etc/gshadow
E.
/etc/gshadow
Answers
Suggested answer: D

Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?

A.
export LANGUAGE="pt"
A.
export LANGUAGE="pt"
Answers
B.
export MESSAGE="pt"
B.
export MESSAGE="pt"
Answers
C.
export UI_MESSAGES="pt"
C.
export UI_MESSAGES="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: D

In which file, if present, must all users be listed that are allowed to use the cron scheduling system?

(Specify the full name of the file, including path.)

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

Which commands can be used 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

Which command is used to add an empty group to the system? (Specify ONLY the command without any path or parameters.)

A.
groupadd,/usr/sbin/groupadd
A.
groupadd,/usr/sbin/groupadd
Answers
Suggested answer: A

What is NOT contained in the locale setting of the operating system?

A.
currency symbol
A.
currency symbol
Answers
B.
language
B.
language
Answers
C.
timezone
C.
timezone
Answers
D.
thousands separator
D.
thousands separator
Answers
Suggested answer: C

What is true about the file /etc/localtime?

A.
It is a plain text file containing a string such as Europe/Berlin
A.
It is a plain text file containing a string such as Europe/Berlin
Answers
B.
It is created and maintained by the NTP service based on the location of the system's IP address.
B.
It is created and maintained by the NTP service based on the location of the system's IP address.
Answers
C.
It is a symlink to /sys/device/clock/ltime and always contains the current local time.
C.
It is a symlink to /sys/device/clock/ltime and always contains the current local time.
Answers
D.
After changing this file, newtzconfig has to be run to make the changes effective.
D.
After changing this file, newtzconfig has to be run to make the changes effective.
Answers
E.
It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
E.
It is either a symlink to or a copy of a timezone information file such as /usr/share/zoneinfo/Europe/Berlin.
Answers
Suggested answer: E

What is true regarding the command userdel --force --remove bob? (Choose TWO correct answers.)

A.
The user bob is removed from the system's user database.
A.
The user bob is removed from the system's user database.
Answers
B.
The user bob's home directory is removed.
B.
The user bob's home directory is removed.
Answers
C.
The locate database is updated to drop files owned by bob.
C.
The locate database is updated to drop files owned by bob.
Answers
D.
All files owned by bob are remove from all mounted filesystems.
D.
All files owned by bob are remove from all mounted filesystems.
Answers
E.
In case bob was the last member of a group, that group is deleted.
E.
In case bob was the last member of a group, that group is deleted.
Answers
Suggested answer: A, B

Which of the following fields can be found in the /etc/group file? (Choose THREE correct answers.)

A.
The list of users that belong to the group.
A.
The list of users that belong to the group.
Answers
B.
The home directory of the group.
B.
The home directory of the group.
Answers
C.
The name of the group.
C.
The name of the group.
Answers
D.
The description of the group.
D.
The description of the group.
Answers
E.
The password of the group.
E.
The password of the group.
Answers
Suggested answer: A, C, E
Total 194 questions
Go to page: of 20