LPIC-1 System Administrator Exam 102, Part 2 of 2,
Last exam update: Nov 16 ,2024
Page 1 out of 13. Viewing questions 1-15 out of 194
Question 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?
Which of the following commands lists all queued print jobs?
A.
lpd
B.
lpr
C.
lp
D.
lsq
E.
lpq
Answer:
E
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 3
What is the top-level directory which contains the configuration files for CUPS? (Specify the full path to the directory.)
Answer:
/etc/cups/ cups-files.conf
Discussions
0/ 1000
Question 4
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.
D. fsync
E.
flood
Answer:
A
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 5
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.
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.
Answer:
C,D,E
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 6
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.)
Answer:
journalctl
User Votes:
Discussions
0/ 1000
Question 7
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”
Answer:
B
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 8
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
B.
Minute
C.
Username
D.
Effective group ID
E.
Command
Answer:
B,D
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 9
Which of the following statements is true regarding systemd timer units?
A.
Timer units can only be defined within a service unit’s file.
B.
The command executed by the timer is specified in the timer unit’s [Cmd] section.
C.
A dedicated system service, systemd-cron, handles the execution of timer units.
D.
Timer units only exist in the system scope and are not available for users.
E.
Each systemd timer unit controls a specific systemd service unit.
Answer:
E
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 10
What can be specified with useradd? (Choose two.)
A.
Commands the user can run using sudo.
B.
The absolute path to the user’s home directory.
C.
Which printers are available for the new user.
D.
The SSH keys used to login to the new account.
E.
The numeric user ID (UID) of the user.
Answer:
B,E
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 11
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.)
Answer:
crontab
User Votes:
Discussions
0/ 1000
Question 12
Which of the following tasks can the date command accomplish? (Choose two.)
A.
Set the system’s date and time.
B.
Set the system’s date but not the time.
C.
Calculate the time span between two dates.
D.
Print a calendar for a month or a year.
E.
Display time in a specific format.
Answer:
A,E
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 13
Which of the following commands shows all active systemd timers?
A.
systemctl-timer show
B.
timectl list
C.
systemctl –t
D.
systemctl list-timers
E.
timeq
Answer:
D
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 14
Which of the following information is stored in /etc/shadow for each user?
A.
The timestamp of the user’s last login
B.
The user’s private SSH keys
C.
The hashed password of the user
D.
The numerical user ID (UID)
E.
The path to the user’s home directory
Answer:
C
User Votes:
A
50%
B
50%
C
50%
D
50%
E
50%
Discussions
0/ 1000
Question 15
Which of the following statements is true if the UID of a regular user is identical to the GID of a group?
A.
UID have precedence over GIDs, therefore the user is available while the group doesn’t.
B.
The user as well as the group are not available to avoid ambiguity due to the ID conflict.
C.
UIDs and GIDs are independent of each other, therefore the user as well as the group are still available.
D.
The user is the only member of the group, even if the group configuration contains other members.
E.
GIDs have precedence over UIDs, therefore the group is available while the user isn’t.