102-500: LPI Level 1 Part 3
Question #: 21
Topic #: 1
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”
B. export LC_MESSAGES=”pt”
C. export UI_MESSAGES=”pt”
D. export MESSAGE=”pt”
E. export ALL_MESSAGES=”pt”
Question #: 22
Topic #: 1
Which of the following files assigns a user to its primary group?
A. /etc/pgroup
B. /etc/shadow
C. /etc/passwd
D. /etc/group
E. /etc/gshadow
Question #: 23
Topic #: 1
Which of the following steps prevents a user from obtaining an interactive login session?
A. Setting the UID for the user to 0.
B. Running the command chsh -s /bin/false with the user name.
C. Removing the user from the group staff.
D. Adding the user to /etc/noaccess.
E. Creating a .nologin file in the user’s home directory.
Question #: 24
Topic #: 1
Which of the following statements about systemd-journald are true? (Choose three.)
A. It is incompatible with syslog and cannot be installed on a system using regular syslog.
B. It only processes messages of systemd and not messages of any other tools.
C. It can pass log messages to syslog for further processing.
D. It maintains metadata such as _UID or _PID for each message.
E. It supports syslog facilities such as kern, user, and auth.
Question #: 25
Topic #: 1
Which option in the chrony configuration file changes the initial interval of polls to a NTP server in order to speed up the initial synchronization?
A. iburst
B. quickstart
C. fast
D. fsync
E. flood
Question #: 26
Topic #: 1
Which of the following commands is used to rotate, compress, and mail system logs?
A. logrotate
B. striplog
C. syslogd –rotate
D. rotatelog
E. logger
Question #: 27
Topic #: 1
Why is the correct configuration of a system’s time zone important?
A. Because the timezone is included in checksum calculations and timezone changes invalidate existing checksums.
B. Because the time zone is saved as part of the modification times of files and cannot be changed after a file is created.
C. Because the environment variables LANG and LC_MESSAGES are, by default, set according to the time zone.
D. Because NTP chooses servers nearby based on the configured time zone.
E. Because the conversion of Unix timestamps to local time relies on the time zone configuration.
Selected Answer: E
Question #: 28
Topic #: 1
Which of the following commands lists all queued print jobs?
A. lpd
B. lpr
C. lp
D. lsq
E. lpq
Question #: 29
Topic #: 1
Which of the following entries in /etc/syslog.conf writes all mail related events to the file /var/log/maillog and sends all critical events to the remote server logger.example.com?
A. mail.* /var/log/maillog mail,crit @logger.example.org
B. mail.* /var/log/maillog mail.crit syslog://logger.example.org
C. mail /var/log/maillog mail.crit @logger.example.org
D. mail.* /var/log/maillog mail.crit @logger.example.org
E. mail * /var/log/maillog mail crit @logger.example.org
Question #: 30
Topic #: 1
Which of the following protocols is related to the term open relay?
A. SMTP
B. POP3
C. NTP
D. IMAP
E. LDAP