ExamGecko
Home Home / LPI / 102-500

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

Question list
Search
Search

Which of the following information is stored in /etc/shadow for each user?

A.
The timestamp of the user's last login
A.
The timestamp of the user's last login
Answers
B.
The user's private SSH keys
B.
The user's private SSH keys
Answers
C.
The hashed password of the user
C.
The hashed password of the user
Answers
D.
The numerical user ID (UID)
D.
The numerical user ID (UID)
Answers
E.
The path to the user's home directory
E.
The path to the user's home directory
Answers
Suggested answer: C

Which of the following commands shows all active systemd timers?

A.
systemctl-timer show
A.
systemctl-timer show
Answers
B.
timectl list
B.
timectl list
Answers
C.
systemctl -t
C.
systemctl -t
Answers
D.
systemctl list-timers
D.
systemctl list-timers
Answers
E.
timeq
E.
timeq
Answers
Suggested answer: D

Which of the following tasks can the date command accomplish? (Choose two.)

A.
Set the system's date and time.
A.
Set the system's date and time.
Answers
B.
Set the system's date but not the time.
B.
Set the system's date but not the time.
Answers
C.
Calculate the time span between two dates.
C.
Calculate the time span between two dates.
Answers
D.
Print a calendar for a month or a year.
D.
Print a calendar for a month or a year.
Answers
E.
Display time in a specific format.
E.
Display time in a specific format.
Answers
Suggested answer: A, E

Which file, if present, must contain all users that are allowed to use the cron scheduling system?

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

A.
crontab
A.
crontab
Answers
Suggested answer: A

What can be specified with useradd? (Choose two.)

A.
Commands the user can run using sudo.
A.
Commands the user can run using sudo.
Answers
B.
The absolute path to the user's home directory.
B.
The absolute path to the user's home directory.
Answers
C.
Which printers are available for the new user.
C.
Which printers are available for the new user.
Answers
D.
The SSH keys used to login to the new account.
D.
The SSH keys used to login to the new account.
Answers
E.
The numeric user ID (UID) of the user.
E.
The numeric user ID (UID) of the user.
Answers
Suggested answer: B, E

Which of the following statements is true regarding systemd timer units?

A.
Timer units can only be defined within a service unit's file.
A.
Timer units can only be defined within a service unit's file.
Answers
B.
The command executed by the timer is specified in the timer unit's [Cmd] section.
B.
The command executed by the timer is specified in the timer unit's [Cmd] section.
Answers
C.
A dedicated system service, systemd-cron, handles the execution of timer units.
C.
A dedicated system service, systemd-cron, handles the execution of timer units.
Answers
D.
Timer units only exist in the system scope and are not available for users.
D.
Timer units only exist in the system scope and are not available for users.
Answers
E.
Each systemd timer unit controls a specific systemd service unit.
E.
Each systemd timer unit controls a specific systemd service unit.
Answers
Suggested answer: E

Which of the following fields are available in the standard format of both the global /etc/crontab file as well as in user-specific crontab files? (Choose two.)

A.
Year
A.
Year
Answers
B.
Minute
B.
Minute
Answers
C.
Username
C.
Username
Answers
D.
Effective group ID
D.
Effective group ID
Answers
E.
Command
E.
Command
Answers
Suggested answer: B, D

Which of the following commands should be executed when starting a login shell 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 LC_MESSAGES="pt"
B.
export LC_MESSAGES="pt"
Answers
C.
export UI_MESSAGES="pt"
C.
export UI_MESSAGES="pt"
Answers
D.
export MESSAGE="pt"
D.
export MESSAGE="pt"
Answers
E.
export ALL_MESSAGES="pt"
E.
export ALL_MESSAGES="pt"
Answers
Suggested answer: B

Which command included in systemd supports selecting messages from the systemd journal by criteria such as time or unit name? (Specify only the command without any path or parameters.)

A.
journalctl
A.
journalctl
Answers
Suggested answer: A

Which of the following statements about sytemd-journald are true? (Choose three.)

A.
It is incompatible with syslog and cannot be installed on a system using regular syslog.
A.
It is incompatible with syslog and cannot be installed on a system using regular syslog.
Answers
B.
It only processes messages of systemd and not messages of any other tools.
B.
It only processes messages of systemd and not messages of any other tools.
Answers
C.
It can pass log messages to syslog for further processing.
C.
It can pass log messages to syslog for further processing.
Answers
D.
It maintains metadata such as _UID or _PID for each message.
D.
It maintains metadata such as _UID or _PID for each message.
Answers
E.
It supports syslog facilities such as kern, user, and auth.
E.
It supports syslog facilities such as kern, user, and auth.
Answers
Suggested answer: C, D, E
Total 194 questions
Go to page: of 20