Click Here to take the test. (You need an account. It's free)

 

1. Which of the following best describes the relationship between UIDs and GIDs on a Linux system?

  • The UID and GID are the same across the system for a given user.
  • Each user has a UID and GID that are the same and are created when the user is created.
  • The UID represents the user whereas the GID is a globally unique user ID.
  • There is no direct relationship between UID and GID.

2. Which argument to the locale command displays currently available locales for a given system?

  • -c
  • -a
  • -p
  • -s

3. Which command displays a list of jobs currently scheduled with at?

  • atlist
  • atq
  • atl
  • at -jobs

4. Which file stores group information on a Linux server?

  • /etc/groupinfo
  • /etc/groups
  • /etc/roles
  • /etc/group

5. Which command on a Debian-based system can be used to change the time zone using the package-based tools?

  • dpkg-reconfigure time
  • dpkg-reconfigure tzdata
  • apt-select tzdata
  • apt-config timezone

6. Which command is recommended for configuration of slapd for OpenLDAP versions 2.3 and later?

  • slapd-conf
  • config-slapd
  • openldap-config
  • slapd-config

7. When working with systemd timer units, which option to systemcti displays the active timers?

  • list-timerunits
  • show-timers
  • list-timers
  • list-activetimers

8. 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?

  • /etc/crontabs
  • /etc/cron.conf
  • /etc/cron.d/
  • /etc/sked

9. 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?

  • /etc/groupinfo
  • /etc/login.defs
  • /etc/login.info
  • /etc/loginlist

10. Within which directory will you find files related to the time zone for various regions?

  • /etc/timezoneinfo
  • /etc/zoneinfo
  • /var/zoneinfo
  • /usr/share/zoneinfo

11. Which shortcut to the OnCalendar systemd timer function indicates that the timer unit should run once a week?

  • OnceAWeek
  • weekly
  • everyweek
  • oneperweek

12. Which of the following encoding provides a multibyte representation of characters?

  • ISO-8859
  • UTF-8
  • ISO-L
  • UFTMulti

13. Which debug level for slapd is used to provide debugging of configuration file processing?

  • 1
  • 64
  • 8
  • O

14. Within which directory would you find a list of files corresponding to the users who have current cron jobs on the system?

  • /var/spool/cron/crontabs
  • /var/spool/jobs
  • /etc/cron
  • /etc/cron.users

15. Which file contains a list of users who are not allowed to create cron scheduled tasks?

  • /etc/cron.users
  • /etc/cron.deny
  • /etc/cron.denyusers
  • /etc/cron.userlist

16. Which option to useradd will add groups for a user?

  • -g
  • -x
  • -l
  • -G

17. Which abbreviation is another name for information like the user’s full name, telephone number, and other contact information found in /etc/passwd?

  • USERINFO
  • GECOS
  • HOMEINFO
  • CDATA

18. Which option to getent enumerates the password database for a given system?

  • password
  • listpass
  • passwd
  • showpassdb

19. Which shortcut can be used to indicate that a cron job should be executed on restart?

  • @restart
  • @startup
  • @reboot
  • @onboot

20. 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?

  • /etc/skel
  • /etc/homedir
  • /home/usertemplate
  • /etc/template

21. Which command deletes an at job with an ID of 3?

  • atdt
  • at -l
  • atrm 3
  • rmat 3

22. Which file extension is used for systemd timer units?

  • .conf
  • .timer
  • .timerd
  • .timeevent

23. Which of the following commands is used to add entries to the OpenLDAP database?

  • ldapd
  • adduser
  • addldap
  • ldapadd

24. Which command will list the cron entries for a given user as denoted by <username>?

  • crontab -l -u <username>
  • crontab -u <username>
  • cron -u <username>
  • cronent -u <username>

25. Which of the following is used as a systemwide cron file?

  • /etc/cron.d
  • /etc/cron.sys
  • /etc/crontab
  • /etc/cron.tab

26. Which option to the crontab command removes the current crontab?

  • -r
  • -l
  • -g
  • -f

27. Which of the following commands produces a report listing the last password change date for all users on the system?

  • passwd -a
  • passwd -S
  • passwd -a -S
  • passwd -all

28. Which of the following best describes the use of the groupdei command?

  • You may force group deletion with the -f option.
  • If a user’s primary group is to be deleted, that user must be deleted first or have their primary group changed.
  • groupdel can be run at any time, regardless of group membership.
  • The -r option for groupdel will recursively change user’s GIDs after group deletion.

29. Which file provides a list of users who are not allowed to create at jobs?

  • /etc/at.allow
  • /etc/at.deny
  • /etc/at.denyusers
  • /etc/at.conf.deny

30. If you need to temporarily reconfigure all locale variables and settings for a given session, which environment variable can be used?

  • LC_LIST
  • LC_GLOBAL
  • LC_ALL
  • ALL_LOCALE

31. Which of the following commands will set the systemwide time zone to America/Los_Angeles?

  • In -sf /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
  • In -sf America/Los_Angeles ; /etc/localtime
  • ln -sd /etc/localtime /usr/share/timezone/America/Los_Angeles
  • ln -sf /etc/localtime /usr/share/zoneinfo/America/Los_Angeles

32. Which environment variable controls the format of dates and times, such as a 12-hour or 24-hour formatted clock?

  • LOCALE_DATE
  • DATE_FORMAT
  • LC_TIME
  • LC_DATE

33. 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?

  • getuser
  • getent
  • usermod
  • userlist

34. Which option within a systemd timer unit will start a timer 90 minutes after boot?

  • OnBootSec=90min
  • OnBoot=90min
  • OnBootHour=1.5
  • StartOnBoot=90min

35. Which of the following commands provides the current date and time in a format of seconds since the epoch?

  • date +%seconds
  • date +%s
  • date -seconds
  • date -now

36. Which of the following lines added to . profiie in a user’s home directory will set their time zone to Central time?

  • TZ=/Central ; export TZ
  • TIMEZONE='America/Chicago' ; export TIMEZONE
  • set TZ=/Central
  • TZ='America/Chicago'; export TZ

37. Which option to useradd creates a system user rather than a normal user?

  • -r
  • -s
  • -a
  • -n

38. Which of the following commands changes a group called DomainAdmins to DomainUsers?

  • groupmod -n DomainAdmins DomainUsers
  • groupchg DomainAdmins DomainUsers
  • chgroup DomainAdmins DomainUsers
  • group -N DomainAdmins DomainUsers

39. Which option to the file command displays information on the MIME type of the file being interrogated?

  • -i
  • -m
  • -l
  • -a

40. Which of the following values for the LANG variable will configure the system to bypass locale translations where possible?

  • LANG=COMPAT
  • LANG=NONE
  • LANG=C
  • LANG=END

41. On which port does the slapd LDAP daemon listen for connections?

  • 389
  • 3389
  • 3306
  • 110

42. Which of the following commands locks out password-based login for a user but does not prevent other forms of login?

  • usermod -L
  • userdel -r
  • useradd -h
  • userlock

43. Which of the following commands displays the UID, primary group, and supplemental groups for a given user?

  • id
  • getid
  • passwd
  • chage

44. On which port does LDAP over SSL listen for connections?

  • 389
  • 443
  • 636
  • 3128

45. Which command is used to change a user’s home directory to /srv/data/username and move the contents at the same time?

  • usermod -md /srv/data/username <username>
  • homedir -m /srv/data/username <username>
  • userex -m /srv/data/username <username>
  • userchg /m /srv/data/username -d <username>

46. Which of the following will execute a job through cron at 12:15 a.m. and 12:15 p.m. every day?

  • 0,12 15 * * *
  • 15 0,12 * * *
  • 15 * * * 0/12
  • */12 * * * 15

47. What will be logged with the loglevel set to 0x10 in a siapd. conf configuration file?

  • No debugging
  • Trace debugging
  • Stats logging
  • Packets sent and received

48. Which shortcut within cron enables running of a task every day at midnight?

  • @daily
  • @daybegin
  • @topday
  • @beginday

49. You need to delete a user from the system, including their home directory. Which of the following commands accomplishes this task?

  • userdel
  • userdel -r
  • userdel -R
  • deluser

50. Which of the following files is used by anacron for reading configuration information related to jobs?

  • /etc/anacron.d
  • /etc/anacrontab
  • /etc/anacron.config
  • /etc/anacron.conf

51. Which option to the iconv command shows the available character sets on a given system?

  • -showchar
  • -show
  • -list
  • -all

52. When importing entries into the LDAP database using ldapadd -f <filename>, in which format should the file be?

  • LDAP
  • TXT
  • CSV
  • LDIF

53. Which file contains user information such as username and real name and is readable by all users of the system?

  • /etc/pass
  • /etc/shadow
  • /etc/passwd
  • /etc/userinfo

54. Which option to timedatectl sets the system clock?

  • -adjust-system-clock
  • -s
  • -c
  • -a

55. 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?

  • chage -f
  • chage -W
  • chage -l
  • chage -d

56. Which file provides a list of users who are allowed to create at jobs?

  • /etc/at.users
  • /etc/at.scheduler
  • /etc/at.conf
  • /etc/at.allow

57. Which of the following commands can be used to help with recovery of a corrupted OpenLDAP database?

  • openldap-recover
  • oreco
  • slapd-recover
  • slapd_db_recover

58. 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?

  • tzd
  • /etc/locale
  • tzdata
  • tzselect

59. Which file contains a list of usernames, UIDs, and encrypted passwords?

  • /etc/passwd
  • /etc/shadow
  • /etc/encpass
  • /etc/grouppass

60. Which option to systemd-run adds a timed event?

  • -timed
  • -add-timer
  • -on-calendar
  • -on-time

61. Which directory contains the jobs scheduled with at?

  • /var/spool/cron/atjobs
  • /var/spool/at
  • /var/spool/cron/at
  • /var/spool/atjobs

62. Which of the following commands is used to re-create indexes based on existing slapd databases?

  • ldapind
  • Idapindex
  • slapindex
  • indexldap

63. 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?

  • The system uses forward password aging.
  • The system uses shadow passwords.
  • The system has been compromised.
  • Users have a * for their passwords.

64. Which scheduler can be used to schedule a command to run once at a certain time?

  • at
  • cron
  • job
  • jobctl

65. Which command can be used to create an LDIF file from the current LDAP database?

  • slapdump
  • ldapdump
  • slapcat
  • catldap

66. When running useradd, which option needs to be specified in order for the user’s home directory to be created?

  • -h
  • -m
  • -x
  • -a

67. Which variable in /etc/login.defs Controls the minimum group ID to use on the system?

  • GIDMIN
  • GROUPID_MIN
  • GID_MIN
  • MIN_GID

68. Which option to the groupadd command specifies the GID for the group?

  • -g
  • -a
  • -h
  • -k

69. Which environment variable is used for localization related to measurement units such as metric?

  • LC_METRIC
  • LC_MEASURE
  • LC_MEASUREMENT
  • LC_MEASUREUNITS

70. Which of the following commands removes an expiration from an account?

  • sudo chage -l username
  • sudo chage -E -1 username
  • sudo chage -E now username
  • sudo chage -noexpire username

71. Which variable in /etc/login.defs contains the location of a user’s email directory for use by programs such as userdel?

  • EMAILDIR
  • DIR_EMAIL
  • MAILDIR
  • MAIL_DIR

72. Which of the following will run a command called /usr/local/bin/changehome. sh as the www-data user when placed in /etc/crontab?

  • 1 1 * * * www-data /usr/local/bin/changehome.sh
  • www-data changehome.sh
  • */1 www-data changehome.sh
  • * * */www-data /usr/local/bin/changehome.sh

73. Which environment variable is used to set the paper size?

  • LC_PAPERSIZE
  • LC_PAPER
  • LC_PRINTERQ
  • LC_PRINTSIZE

74. 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?

  • find -id 1501
  • grep 1501 *
  • grep -u 1501 *
  • find / -uid 1501

75. Which of the following commands schedules a series of commands to execute 1 hour from now?

  • atq +1hr
  • at now + 1 hour
  • atq
  • at -1

76. Which option to groupadd specifies that the group will be a system group?

  • -r
  • -m
  • -j
  • -b

77. When listing systemd timer units, which option to list-timers shows both active and inactive units?

  • -all
  • -active-and-inactive
  • -inactive
  • All are shown by default.

78. Within which directory are databases stored for OpenLDAP?

  • /var/lib/ldap
  • /var/cache/openldap
  • /var/share/ldap
  • /usr/share/openldap

79. Which file contains encrypted password information for groups?

  • /etc/group
  • /etc/gshadow
  • /etc/gsecure
  • /etc/group.conf

80. Within which directory will you find scripts that are scheduled to run through cron every 24 hours?

  • /etc/cron.daily
  • /etc/cron.weekly
  • /etc/cron.hourly24
  • /etc/crontab

81. You need to enable the web server (running as the www-data user and group) to write into a directory called /home/web. Which commands will accomplish this task in the most secure manner?

  • chgrp www-data /home/web ; chmod 775 /home/web
  • chmod 777 /home/web
  • chgrp www-data /home/web ; chmod 711 /home/web
  • chmod 707 /home/web

82. Which job scheduler should you use if the computer on which you need to schedule the job is powered down at various times?

  • cron.d
  • cron.hourly
  • anacron
  • at

83. Which file is used to provide a list of users who can add and delete cron jobs?

  • /etc/cron.job
  • /etc/cron.allow
  • /etc/cron.users
  • /etc/crontab

84. Which option to the usermod command is used to change a given user’s real name?

  • -R
  • -n
  • -d
  • -c

85. 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?

  • -l
  • -f
  • -q
  • -j

86. Which locale-related variable is used for currency-related localization?

  • LC_MONEY
  • LC_CURRENCY
  • LC_MONETARY
  • LC_CURR

87. Which file is used to indicate the local time zone on a Linux server?

  • /etc/timez
  • /etc/timezoneconfig
  • /etc/localtime
  • /etc/localtz

88. Which variable in /etc/default/useradd controls the location of the skeleton home directory?

  • SKELETON
  • SKEL
  • SKELDIR
  • SKELLOC

 

{jssocials}