LPIC 102-500
>>Administrative Tasks exam
Answers with explanation

 

  Take the test here (You need an account. It's free)

 

1.    You need to enable the web server (running as the www-data user and group) to write into a directory called /home/webfiles. Which commands will accomplish this task in the most secure manner?
A.    chgrp www-data /home/webfiles ; chmod 775 /home/webfiles
B.    chmod 777 /home/webfiles
C.    chgrp www-data /home/webfiles ; chmod 711 /home/webfiles
D.    chmod 707 /home/webfiles

 A. The best option among these choices is to change the group to www-data and change the permissions such that the group can write into the directory. Option B should never be used because it enables world-writing to the directory. The other options will not allow the web server group to write into the directory.


2.    Which of the following will execute a job through cron at 12:15 a.m. and 12:15 p.m. every day?
A.    0,12 15 * * *
B.    15 0,12 * * *
C.    15 * * * 0/12
D.    */12 * * * 15

 B. The format for cron is [minute hour day-of-month month-of- year day-of-week], thereby making option B the correct option for this question.


3.    Which file is used to indicate the local time zone on a Linux server?
A.    /etc/timez
B.    /etc/timezoneconfig
C.    /etc/localtime
D.    /etc/localtz

 C. The /etc/locaitime file, which can be an actual file or a symbolic link, is used to indicate the local time zone. The other files listed as options do not exist.


4.    When importing entries into the LDAP database using ldapadd -f <filename>, in which format should the file be?
A.    LDAP
B.    TXT
C.    CSV
D.    LDIF

 D. The LDAP Data Interchange Format (LDIF) is an open format, defined in Request for Comments (RFC) 2849, that enables import and export of LDAP entries. The file formats TXT and CSV are valid but not for the purpose described; there is no specific file format known as LDAP.


5.    Which of the following commands removes an expiration from an account?
A.    sudo chage -l username
B.    sudo chage -E -1 username
C.    sudo chage -E now username
D.    sudo chage -noexpire username

 B. The chage command will be used for this purpose, specifically with the -E option. When provided with a date, chage will expire the account on that date. When provided with -1, the expiration will be removed.


6.    Within which directory will you find files related to the time zone for various regions?
A.    /etc/timezoneinfo
B.    /etc/zoneinfo
C.    /var/zoneinfo
D.    /usr/share/zoneinfo

 D. Within the /usr/share/zoneinfo hierarchy, you will find information on the various regions and time zones available. The files within this hierarchy can be symlinked to /etc/localtime. The file /etc/timezone is also sometimes used by Linux systems and, notably, by Java in certain situations.


7.    Which of the following commands schedules a series of commands to execute 1 hour from now?
A.    atq +1hr
B.    at now + 1 hour
C.    atq
D.    at -1

 B. The at command is used to run a series of commands that you enter. Unlike with cron, you can schedule commands from the command line to be executed in the same order entered rather than having to create a specific script for the commands. The syntax shown in option B sets the time to be one hour from now.


8.    You need to delete a user from the system, including their home directory. Which of the following commands accomplishes this task?
A.    userdel
B.    userdel -r
C.    userdel -R
D.    deluser

 B. The userdel command is used for this purpose, and the -r option (lowercase) deletes both the home directory and mail spool files. The -R (uppercase) option tells the userdel command to use a chroot directory.


9.    Which file contains a list of usernames, UIDs, and encrypted passwords?
A.    /etc/passwd
B.    /etc/shadow
C.    /etc/encpass
D.    /etc/grouppass

 B. The /etc/shadow file contains usernames, UIDs, and encrypted  passwords and is not readable by any non-root user on the system due to the sensitive nature of the encrypted passwords. The /etc/passwd file contains usernames and UIDs but not encrypted passwords. The other two files listed for this question do not exist.


10.    Which job scheduler should you use if the computer on which you need to schedule the job is powered down at various times?
A.    cron.d
B.    cron.hourly
C.    anacron
D.    at

 C. Use anacron when you need to schedule a job on a computer that might be off when the job is scheduled. anacron will take care of running the job at its next available time.


11.    Which of the following commands provides the current date and time in a format of seconds since the epoch?
A.    date +%seconds
B.    date +%s
C.    date -seconds
D.    date -now

 B. The +%s option will format the date as seconds since January 1, 1970. This option is used frequently in scripting and elsewhere for obtaining a unique time stamp that can be parsed easily as an integer. The other options will not work.


12.    Which option to the iconv command shows the available character sets on a given system?
A.    -showchar
B.    -show
C.    -list
D.    -all

 C. The -list option shows the available character sets on the system. The other options given for this question do not exist.


13.    Which environment variable controls the format of dates and times, such as a 12-hour or 24-hour formatted clock?
A.    LOCALE_DATE
B.    DATE_FORMAT
C.    LC_TIME
D.    LC_DATE

 C. The LC_TIME environment variable is used to control the display and behavior of the date and time and can be changed to a different locale in order to achieve the desired display and behavior of date and time formatting. The other options shown for this question do not exist.


14.    Which command is recommended for configuration of slapd for OpenLDAP versions 2.3 and later?
A.    slapd-conf
B.    config-slapd
C.    openldap-config
D.    slapd-config

 D. Beginning with OpenLDAP version 2.3, slapd-config is used for configuration of OpenLDAP. The other commands are not valid.


15.    Which shortcut within cron enables running of a task every day at midnight?
A.    @daily
B.    @daybegin
C.    @topday
D.    @beginday

A. The @daily shortcut schedules a job to run at midnight every day. The other options shown do not exist.


 
16.    Which of the following encoding provides a multibyte representation of characters?
A.    ISO-8859
B.    UTF-8
C.    ISO-L
D.    UFTMulti

 B. UTF-8 provides multibyte character encoding and is generally accepted as the standard for encoding moving forward. ISO-8859 is single byte encoded. The other options are not valid.


17.    Which of the following commands changes a group called DomainAdmins to DomainUsers?
A.    groupmod -n DomainAdmins DomainUsers
B.    groupchg DomainAdmins DomainUsers
C.    chgroup DomainAdmins DomainUsers
D.    group -N DomainAdmins DomainUsers

 A. The groupmod command will be used for this purpose, and the - n option is used to change the group name. The other commands listed do not exist.


18.    Which file stores group information on a Linux server?
A.    /etc/groupinfo
B.    /etc/groups
C.    /etc/roles
D.    /etc/group

 D. The /etc/group file contains information on groups on a Linux system. The other files are not valid for the purpose described.


19.    Which command can be used to create an LDIF file from the current LDAP database?
A.    slapdump
B.    ldapdump
C.    slapcat
D.    catldap

 C. The slapcat command dumps the slapd database in LDIF format to STDOUT. The output can then be redirected into a file. The other commands are not valid.


20.    You are looking for a scheduled job that is not found in /etc/crontab, through systemd timers, or within /var/spool/cron. What is another location in which the scheduled job might be stored?
A.    /etc/crontabs
B.    /etc/cron.conf
C.    /etc/cron.d/
D.    /etc/sked

C. The /etc/cron.d/ directory can contain scripts that have scheduling information within them along with jobs to run. The  other locations given as options are not valid.


 
21.    You need to determine if LDAP integration is working correctly. In order to do so, you would like to obtain a list of users, as read by /etc/nsswitch.conf. Which command can be used for this purpose?
A.    getuser
B.    getent
C.    usermod
D.    userlist

 B. The getent command is used to display entries based on the /etc/nsswitch.conf file. One use case for getent is when integrating with Microsoft Active Directory or another LDAP service to check if the connection can be made to the LDAP server. The usermod command is valid but is not used for this purpose, and the other commands shown for this question are not valid.


22.    What is the name of the configuration file that contains information about group and user addition, such as the maximum and minimum user and group IDs, to be used when adding users and groups?
A.    /etc/groupinfo
B.    /etc/login.defs
C.    /etc/login.info
D.    /etc/loginlist

 B. The /etc/login.defs file contains various configuration items such as the minimum and maximum user and group IDs to be used on the system.


23.    Which environment variable is used for localization related to measurement units such as metric?
A.    LC_METRIC
B.    LC_MEASURE
C.    LC_MEASUREMENT
D.    LC_MEASUREUNITS

 C. The LC_MEASUREMENT environment variable is used to indicate the measurement units that should be used.


24.    Which of the following lines added to .profiie in a user’s home directory will set their time zone to Central time?
A.    TZ=/Central ; export TZ
B.    TIMEZONE='America/Chicago' ; export TIMEZONE
C.    set TZ=/Central
D.    TZ='America/Chicago'; export TZ

 D. The TZ environment variable is used for this purpose and the general format is as shown, making option D the correct answer.


25.    Within which directory will you find scripts that are scheduled to run through cron every 24 hours?
A.    /etc/cron.daily
B.    /etc/cron.weekly
C.    /etc/cron.hourly24
D.    /etc/crontab

 A. The /etc/cron.daily directory contains files such as scripts that are executed daily. There are corresponding cron.hourly, cron.weekly, and cron.monthly directories that run on their respective schedules, as indicated by the name of the directory.


26.    Which of the following values for the LANG variable will configure the system to bypass locale translations where possible?
A.    LANG=COMPAT
B.    LANG=NONE
C.    LANG=C
D.    LANG=END

 C. Setting LANG=C is an alias for Portable Operating System Interface (POSIX) compatibility and will cause programs to bypass locale translations. The other options shown for LANG are not valid.


27.    When running useradd, which option needs to be specified in order for the user’s home directory to be created?
A.    -h
B.    -m
C.    -x
D.    -a

 B. The -m option causes the user’s home directory to be created. By default, if this option isn’t specified and CREATE_HOME has not been set, the home directory won’t be created. The -h option displays help text, and the other options shown are not valid.


28.    Which of the following commands locks out password-based login for a user but does not prevent other forms of login?
A.    usermod -L
B.    userdel -r
C.    useradd -h
D.    userlock

 A. The usermod -L command locks an account by placing a ! in the encrypted password. If the user has another means to log in, such as with an SSH key, using usermod -L will not prevent their login.


29.    If you need to temporarily reconfigure all locale variables and settings for a given session, which environment variable can be used?
A.    LC_LIST
B.    LC_GLOBAL
C.    LC_ALL
D.    ALL_LOCALE

 C. The LC_ALL variable can be used to set environment variables to the current locale and will override others. This can be used when there is a need for a temporary change. The other variables listed here are not used for this purpose and are not created by default.


30.    Which of the following will run a command called /usr/local/bin/changehome.sh as the www-data user when placed in /etc/crontab?
A.    1 1 * * * www-data /usr/local/bin/changehome.sh
B.    www-data changehome.sh
C.    */1 www-data changehome.sh
D.    * * */www-data /usr/local/bin/changehome.sh

 A. The format when adding a username places the username between the schedule and the command to run, making option A correct. The other options shown for this question are invalid. In the case of option B, there is no schedule. In the case of options C  and D, the schedule is incorrectly formatted.


31.    Which of the following commands produces a report listing the last password change date for all users on the system?
A.    passwd -a
B.    passwd -S
C.    passwd -a -S
D.    passwd -all

     C. The passwd command will be used for this purpose. The -a option displays all users but requires the use of -s to indicate status. The -s option alone will not produce a report for all users, and the -all option is an alias for -a.


32.    Assume that passwords must be changed every 60 days. Which command will change the date of the user’s last password change without the user actually changing the account password?
A.    chage -f
B.    chage -W
C.    chage -l
D.    chage -d

 D. The chage command is used for this purpose. The -d option sets the days since the last password change and is measured in days since January 1, 1970. The -w option is the days of warning for changing a password, and the -l option displays a list of the various settings related to the account.


33.    Which of the following files is used by anacron for reading configuration information related to jobs?
A.    /etc/anacron.d
B.    /etc/anacrontab
C.    /etc/anacron.config
D.    /etc/anacron.conf

 B. The /etc/anacrontab file contains information about the jobs such as the job name and delay, among other information. The other files listed do not contain anacron-related information about jobs.


34.    Which of the following commands is used to add entries to the OpenLDAP database?
A.    ldapd
B.    adduser
C.    addldap
D.    ldapadd

     D. The ldapadd command is used to add entries to the OpenLDAP database.


35.    Which file contains a list of users who are not allowed to create cron scheduled tasks?
A.    /etc/cron.users
B.    /etc/cron.deny
C.    /etc/cron.denyusers
D.    /etc/cron.userlist

 B. The /etc/cron.deny file contains a list of users who cannot create cron scheduled tasks. The other files do not exist by default.


36.    You are viewing the /etc/passwd file and see a * where the password should be. What does the presence of a * indicate within the password file?
A.    The system uses forward password aging.
B.    The system uses shadow passwords.
C.    The system has been compromised.
D.    Users have a * for their passwords.

 B. The system uses shadow passwords if an asterisk shows up in the password field of the /etc/passwd entries. There is no indication that the system has been compromised, making option C incorrect, and there is no password scheme called “forward password aging,” making option A incorrect as well.


37.    Which of the following best describes the relationship between UIDs and GIDs on a Linux system?
A.    The UID and GID are the same across the system for a given user.
B.    Each user has a UID and GID that are the same and are created when the user is created.
C.    The UID represents the user whereas the GID is a globally unique user ID.
D.    There is no direct relationship between UID and GID.

 D. There is no direct relationship between the UIDs and GIDs on a system. UIDs represent users, whereas GIDs represent group IDs. On some systems, the UID and GID number will match for regular users, but this is not a requirement and is more of a coincidence.


38.    Which of the following commands is used to re-create indexes based on existing slapd databases?
A.    ldapind
B.    Idapindex
C.    slapindex
D.    indexldap

 C. The slapindex command generates indexes based on slapd databases. The other commands are not valid.


39.    Which command is used to change a user’s home directory to /srv/data/username and move the contents at the same time?
A.    usermod -md /srv/data/username <username>
B.    homedir -m /srv/data/username <username>
C.    userex -m /srv/data/username <username>
D.    userchg /m /srv/data/username -d <username>

 A. The usermod command is used for this purpose. The -d option changes the home directory, whereas -m moves the contents. The other commands shown for this question are not valid.


40.    Which option to useradd will add groups for a user?
A.    -g
B.    -x
C.    -l
D.    -G

 D. The -G option is a list of supplemental groups to which the user will be added. A lowercase -g option provides the primary GID. The -l option causes the user to not be added to the lastlog and faillog databases. There is no -x option.


41.    Which command will list the cron entries for a given user as denoted by <username>?
A.    crontab -l -u <username>
B.    crontab -u <username>
C.    cron -u <username>
D.    cronent -u <username>

 A. The crontab command can be used for this purpose, and the -l  option is used to list the crontab entries. The -u option is needed to specify a user other than the current user.


42.    Which option to useradd creates a system user rather than a normal user?
A.    -r
B.    -s
C.    -a
D.    -s

 A. The -r option creates a system user that will typically entail no expiration, no home directory, and a UID below 1000. The -s option defines the shell and is not typically used for this purpose. The -a and -s options do not exist.


43.    Which file contains encrypted password information for groups?
A.    /etc/group
B.    /etc/gshadow
C.    /etc/gsecure
D.    /etc/group.conf

 B. The /etc/gshadow file contains secure information such as an encrypted password for groups, where applicable. The /etc/group file contains general information on groups. The other two files listed as options do not exist.


44.    Which of the following commands can be used to help with recovery of a corrupted OpenLDAP database?
A.    openldap-recover
B.    oreco
C.    slapd-recover
D.    slapd_db_recover

 D. The slapd_db_recover command can be used to help recover an OpenLDAP database that has become corrupted or otherwise invalid. The remaining options for this question are not valid commands.


45.    Which of the following best describes the use of the groupdel command?
A.    You may force group deletion with the -f option.
B.    If a user’s primary group is to be deleted, that user must be deleted first or have their primary group changed.
C.    groupdel can be run at any time, regardless of group membership.
D.    The -r option for groupdel will recursively change user’s GIDs after group deletion.

 B. The groupdel command cannot delete groups unless there are no users who have the given group as their primary GID. There is no -f or -r option.


46.    Which of the following commands displays the UID, primary group, and supplemental groups for a given user?
A.    id
B.    getid
C.    passwd
D.    chage

 A. The id command shows the username, UID, primary group, and GID, along with supplemental groups. The passwd and chage commands are not used for this purpose. There is no getid command.


47.    Which option to the usermod command is used to change a given user’s real name?
A.    -R
B.    -n
C.    -d
D.    -c

 D. The -c option changes the comment field in /etc/passwd. The comment field is typically associated with the real name of the account. The -R option indicates a chroot directory, whereas -d indicates a change of home directory. There is no -n option.


48.    Assume that you have deleted a user account with UID 1501, including the -r option. Which command should you also run to look for other files that might have been owned by the user?
A.    find -id 1501
B.    grep 1501 *
C.    grep -u 1501 *
D.    find / -uid 1501

 D. The find command will be used for this purpose. The correct syntax is shown in option D. The group command will merely look in the specified files for the number 1501, and the -u option to grep includes byte offsets, which is not applicable for this question.


49.    On which port does the slapd LDAP daemon listen for connections?
A.    389
B.    3389
C.    3306
D.    110

 A. The standard port for unencrypted LDAP is 389, and that is the port on which slapd listens for connections. Port 3389 is RDP, whereas 3306 is MySQL. Finally, 110 is POP3.


50.    Which of the following commands will set the systemwide timezone to America/Los_Angeles?
A.    ln -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
B.    ln -sf America/Los_Angeles ; /etc/localtime
C.    ln -sd /etc/localtime /usr/share/timezone/America/Los_Angeles
D.    ln -sf /etc/localtime /usr/share/zoneinfo/America/Los_Angeles

 A. The ln command is used for this purpose, and the -s option creates a symbolic link, and -f forces or overwrites the destination. The other options or order of commands are not valid.


51.    Which locale-related variable is used for currency-related localization?
A.    LC_MONEY
B.    LC_CURRENCY
C.    LC_MONETARY
D.    LC_CURR

 C. The LC_MONETARY variable is used by certain programs to  determine the localization for currency.


52.    Which option to systemd-run adds a timed event?
A.    -timed
B.    -add-timer
C.    -on-calendar
D.    -on-time

 C. The -on-calendar option adds a timed event with systemd-run. The other options shown are not valid for use with systemd - run.


53.    Which file is used to provide a list of users who can add and delete cron jobs?
A.    /etc/cron.job
B.    /etc/cron.allow
C.    /etc/cron.users
D.    /etc/crontab

 B. The /etc/cron.allow file is a list of users who have permission to create and remove their own cron jobs. The /etc/crontab file is used to store cron jobs, and the other files do not exist.


54.    Which debug level for slapd is used to provide debugging of configuration file processing?
A.    1
B.    64
C.    8
D.    0

B. Debug level 64 provides configuration processing debug information. Debug level 1 traces function calls, whereas level 8 shows connection management. Debug level 0 is no debug.
 
55.  Which command deletes an at job with an ID of 3?
A.    atdt
B.    at -l
C.    atrm 3
D.    rmat 3

 C. The atrm command removes jobs given their IDs. The ID can be obtained with the atq command. The at -l command shown will list jobs but not delete them. The rmat command is not valid.


56.    Which command on a Debian-based system can be used to change the time zone using the package-based tools?
A.    dpkg-reconfigure time
B.    dpkg-reconfigure tzdata
C.    apt-select tzdata
D.    apt-config timezone

 B. The dpkg-reconfigure command is used to cause the configuration questions to be asked again. The tzdata package is the name of the package on Debian-based systems. The two apt - commands shown are not valid.


57.    What will be logged with the loglevel set to 0x10 in a siapd. conf configuration file?
A.    No debugging
B.    Trace debugging
C.    Stats logging
D.    Packets sent and received

 D. There are multiple ways to specify loglevels and debugging for siapd, including by keyword, by integer, or as shown in the question, by hex. All of the values shown are valid for loglevel. No debugging is 0, trace is 1, stats logging is 256 or 512 depending on type, and packets sent and received is integer 16, or hex 0x10.


58.    Within which directory should you place files in order for the files to be copied to a user’s home directory when the user is created?
A.    /etc/skel
B.    /etc/homedir
C.    /home/usertemplate
D.    /etc/template

 A. The /etc/skel directory contains files that are automatically copied to a user’s home directory when that user is created. The other directories listed for this question do not exist by default.


59.    Which command displays a list of jobs currently scheduled with at?
A.    atlist
B.    atq
C.    atl
D.    at -jobs

 B. The atq command shows a list of jobs that have been scheduled with the at command. The other commands don’t exist with the exception of option D, which shows the at command but with an invalid option, -jobs.


60.    On which port does LDAP over SSL listen for connections?
A.    389
B.    443
C.    636
D.    3128

 C. The port for LDAPS or LDAP over SSL is 636. Port 389 is standard, non-SSL, LDAP. Port 443 is used for HTTPS, and 3128 is used for Squid proxies.


61.    Which scheduler can be used to schedule a command to run once at a certain time?
A.    at
B.    cron
C.    job
D.    jobctl

 A. The at command runs a command at a specified time. While cron can be used to run a command, it will run the command repeatedly according to the schedule set for the command. The other commands are not valid.


62.    Which file provides a list of users who are allowed to create at jobs?
A.    /etc/at.users
B.    /etc/at.scheduler
C.    /etc/at.conf
D.    /etc/at.allow

 D. The /etc/at.allow file is used to specify users who can create at jobs. The other files are not valid.


63.    Which file extension is used for systemd timer units?
A.    .conf
B.    .timer
C.    .timerd
D.    .timeevent

 B. Systemd timer files have the extension .timer and are used for scheduling service unit files or events. The other file extensions are not used for systemd timer units.


64.    Within which directory would you find a list of files corresponding to the users who have current cron jobs on the system?
A.    /var/spool/cron/crontabs
B.    /var/spool/jobs
C.    /etc/cron
D.    /etc/cron.users

 A. The /var/spool/cron/crontabs directory contains a file for each user who currently has one or more cron jobs or entries. Note that the other files listed here are not valid for this purpose.


65.    When using slapadd for a large import, an error occurs at roughly 90 percent completion. Which option to slapadd enables specification of a line number from which the import will be restarted?
A.    -l
B.    -f
C.    -q
D.    -j

D. The -j option enables specification of a line from which the import will be started. It is useful in the scenario described where the import needs to be restarted due to error. The -f option specifies an alternate location for the siapd configuration file. The -q option is quick mode, with less checking, and -l specifies the input file.


66.    Which argument to the locale command displays currently available locales for a given system?
A.    -c
B.    -a
C.    -p
D.    -s

 B. The -a option shows all locales currently available on a system. The other options do not produce the output specified in this scenario.


67.    Which option to timedatectl sets the system clock?
A.    -adjust-system-clock
B.    -s
C.    -c
D.    -a

 A. The -adjust-system-clock option sets the system clock when used with set-iocai-rtc. The other options are not valid.


68.    Which option to the file command displays information on the MIME type of the file being interrogated?
A.    -i
B.    -m
C.    -l
D.    -a

 A. The -i option displays information that can help determine the character set such as ISO-8859, ASCII, or Unicode for the given file. The -m option specifies a list of magic files, -i shows a list of patterns, and -a is not a valid option with the file command.


69.    Which environment variable is used to set the paper size?
A.    LC_PAPERSIZE
B.    LC_PAPER
C.    LC_PRINTERQ
D.    LC_PRINTSIZE

 B. The LC_PAPER variable is used to set the paper size for printing. The other variables are not available by default.


70.    Which of the following is used as a systemwide cron file?
A.    /etc/cron.d
B.    /etc/cron.sys
C.    /etc/crontab
D.    /etc/cron.tab

 C. The /etc/crontab file is a plain-text file that is treated as a systemwide cron file. As such, the file is generally not associated with any single user and it’s not necessary to run a special command after editing this file.


71.    Which command can be used to view the available timezones on a system and obtain output that can be used in scripts for setting the time zone?
A.    tzd
B.    /etc/locale
C.    tzdata
D.    tzselect

 D. The tzselect command will, by default, display a step-by-step menu to select a time zone. The eventual output will include a region/time zone line, such as America/Chicago, as output.


72.    Which option within a systemd timer unit will start a timer 90 minutes after boot?
A.    OnBootSec=90min
B.    OnBoot=90min
C.    OnBootHour=1.5
D.    StartOnBoot=90min

 A. The OnBootSec option is used for this scenario and option A has the correct syntax. The other options shown do not exist.


73.    Which abbreviation is another name for information like the user’s full name, telephone number, and other contact information found in /etc/passwd?
A.    USERINFO
B.    GECOS
C.    HOMEINFO
D.    CDATA

 B. GECOS is the legacy name for information stored in /etc/passwd such as full name and other contact information.


74.    Which option to the groupadd command specifies the GID for the group?
A.    -g
B.    -a
C.    -h
D.    -k

 A. The -g option sets the group ID for the newly created group. The -h option is help, and neither -k nor -a exists as an option for groupadd.


75.    When working with systemd timer units, which option to systemcti displays the active timers?
A.    list-timerunits
B.    show-timers
C.    list-timers
D.    list-activetimers

 C. The list-timers option shows the currently active timers with systemd. The other options are not valid.


76.    Which shortcut to the OnCalendar systemd timer function indicates that the timer unit should run once a week?
A.    OnceAWeek
B.    weekly
C.    everyweek
D.    oneperweek

 B. The weekly shortcut means that systemd will execute the event once a week. The other shortcuts given as options are not valid.


77.    Which option to the crontab command removes the current crontab?
A.    -r
B.    -l
C.    -g
D.    -f

 A. The -r option removes the current crontab. The -l option can be added so that the user is prompted prior to removal.


78.    Which variable in /etc/default/useradd controls the location of the skeleton home directory?
A.    SKELETON
B.    SKEL
C.    SKELDIR
D.    SKELLOC

 B. The SKEL variable controls the location of the skeleton home directory, which is normally /etc/skel/ by default. The other options shown are not used for the purpose described.


79.    Which option to getent enumerates the password database for a given system?
A.    password
B.    listpass
C.    passwd
D.    showpassdb

 C. The passwd option is used to list the password database on a system. The other options do not exist.


80.    Which directory contains the jobs scheduled with at?
A.    /var/spool/cron/atjobs
B.    /var/spool/at
C.    /var/spool/cron/at
D.    /var/spool/atjobs

 A. The directory /var/spool/cron/atjobs contains the jobs. The other directories shown do not exist.


81.    Which variable in /etc/login. defs Controls the minimum group ID to use on the system?
A.    GIDMIN
B.    GROUPID_MIN
C.    GID_MIN
D.    MIN_GID

 C. The GID_MIN variable contains the minimum GID to use on the system. The other variables are not used for the purpose described.


82.    Which variable in /etc/login. defs contains the location of a user’s email directory for use by programs such as userdel?
A.    EMAILDIR
B.    DIR_EMAIL
C.    MAILDIR
D.    MAIL_DIR

 D. The MAI L_DIR variable contains the directory where a user’s mail spool is located. The other options shown are not valid variables for this purpose.


83.    Which file contains user information such as username and real name and is readable by all users of the system?
A.    /etc/pass
B.    /etc/shadow
C.    /etc/passwd
D.    /etc/userinfo

 C. The /etc/passwd file contains various information about users on a system such as username and real name, along with user ID (UID) and login shell. The file is world-readable.


84.    Which shortcut can be used to indicate that a cron job should be executed on restart?
A.    @restart
B.    @startup
C.    @reboot
D.    @onboot

 C. The @reboot shortcut indicates that the cron job will be executed when the system starts up.


85.    Which option to groupadd specifies that the group will be a system group?
A.    -r
B.    -m
C.    -j
D.    -b

A. The -r option specifies that the group being added will be a system group.
 
86.    Within which directory are databases stored for OpenLDAP?
A.    /var/lib/ldap
B.    /var/cache/openldap
C.    /var/share/ldap
D.    /usr/share/openldap

 A. The directory /var/lib/ldap stores database files related to the OpenLDAP deployment on a given server. The other directories shown are not valid for this purpose.


87.    When listing systemd timer units, which option to list-timers shows both active and inactive units?
A.    -all
B.    -active-and-inactive
C.    -inactive
D.    All are shown by default.

 A. Only active units are shown by default, so the -aii option displays all units.


88.    Which file provides a list of users who are not allowed to create at jobs?
A.    /etc/at.allow
B.    /etc/at.deny
C.    /etc/at.denyusers
D.    /etc/at.conf.deny

 B. The /etc/at.deny file contains a list of users who cannot create at jobs.