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

 

1. You are working with journalctl and need to see only messages that are at a debug priority. Which of the following options enables this scenario?

  • -pri debug
  • -prior debug
  • -d debug
  • -p debug

2. Which of the following commands views the contents of a message that exists in the Postfix queue?

  • postshow
  • postless
  • postmore
  • postcat

3. You need to create an email address to accept email for This email address is being protected from spambots. You need JavaScript enabled to view it.. However, you would like abuse reports sent to multiple email addresses within your organization. Which of the following will send email destined for the abuse account to This email address is being protected from spambots. You need JavaScript enabled to view it. and This email address is being protected from spambots. You need JavaScript enabled to view it.?

  • Create a .forward in the home directory for the abuse user and forward email accordingly.
  • Within /etc/aliases, add this: abuse: This email address is being protected from spambots. You need JavaScript enabled to view it., This email address is being protected from spambots. You need JavaScript enabled to view it.
  • Create a .forward file for root and forward email accordingly.
  • Within /etc/aliases, add this: abuse: This email address is being protected from spambots. You need JavaScript enabled to view it.\This email address is being protected from spambots. You need JavaScript enabled to view it.

4. Which of the following commands places a file into the print queue?

  • Ipr
  • Ipd
  • Ipq
  • Ipx

5. Which function of the hwclock command will set the hardware clock to the current system time?

  • -w
  • -s
  • -a
  • -m

6. Within which file will you find errors related to delivery of mail on a Postfix server?

  • /var/log/mail
  • /var/log/postfix.log
  • /var/log/mail.err
  • /var/log/postfix.err

7. A developer has created an application and wants to take advantage of syslog for logging to a custom log file. Which facility should be used for an application such as this?

  • syslog
  • kern
  • local#
  • user

8. Which option in a CUPS configuration file causes the daemon to listen on all interfaces on port 631?

  • Port 631
  • Listen All:631
  • Listen 127.0.0.1:631
  • Port All:631

9. When running ntpd, the server will not adjust or synchronize if the time is skewed from the NTP server by a significant amount of time. Which option to ntpd disables this and causes the synchronization process to continue even if there is a large skew?

  • ntpd -noskew
  • ntpd -skewcheck=off
  • ntpd -g 0
  • ntpd -s 0

10. Which system logging facility is used for messages from the kernel?

  • syslog
  • kernel
  • kern
  • system

11. Within which directory are system logs normally kept on a Linux system?

  • /etc/logs/
  • /var/logs/
  • /var/log/
  • /tmp/log/

12. Which of the following URLs can be used to view a list of completed print jobs in CUPS?

  • http://localhost:631/jobs?which jobs=completed
  • http://localhost:631?completed
  • http://localhost:631/?completed
  • http://cups/jobs=completed

13. When working with syslog - ng, which of the following is the correct path and filename for the primary configuration file?

  • /etc/syslog-ng/syslog-ng.conf
  • /etc/syslog/syslog-ng.conf
  • /etc/syslog-ng/ng.conf
  • /etc/syslog-ng/ngd.conf

14. When configuring email forwarding with Procmail, which of the following files is used as a user-based configuration file for Procmail?

  • /home/procmail.conf
  • ~/.procmailrc
  • /etc/procmail.conf
  • ~/procmail.conf

15. Which command is used to remove an email from the mail queue with Postfix?

  • postsuper -d
  • postmaster
  • postfix -d
  • postdel

16. A user needs to work with printer-related items. Which of the following commands adds the user (called username in the options) to the appropriate group for this purpose?

  • usermod -aG printerusers username
  • usermod -aG Ipadmin username
  • usermod -gA Ipadm username
  • usermod -a Ipadm username

17. Which option to the j ournalctl command will continuously update the display as new log entries are created?

  • -tail
  • -t
  • -f
  • -l

18. You are deploying an Exim server and need to work with the firewall to ensure the proper incoming ports are open. Which protocol and port should you allow inbound for normal Simple Mail Transfer Protocol (SMTP) traffic?

  • TCP/23
  • TCP/25
  • TCP/110
  • TCP/143

19. Which command can be executed to view completed print jobs?

  • Ipstat -q
  • Ipq
  • Ipstat -W completed
  • Ipqueue -c

20. When viewing the syslog configuration, you notice a minus sign (-) preceding several log files. What is the significance of the - sign in the configuration?

  • The use of - indicates that the log may be rotated any time.
  • The use of - indicates that the system can utilize other logging facilities when appropriate.
  • The use of - omits the disk sync process for every entry into the log.
  • The use of - comments out the line.

21. Which of the following options can be given to journaicti in order to filter based on a service name?

  • _SYSTEMD-SERVICE
  • _SERVICENAME
  • _SYSTEMD_SERVICE
  • _SYSTEMD_UNIT

22. When using the mail command, which option enables setting the From header?

  • -f
  • -r
  • -o
  • -m

23. Which syslog level is used to provide informational messages?

  • kern
  • emerg
  • debug
  • info

24. Which option to journaictl filters based on time?

  • -since
  • -time
  • -time-t
  • -filter-time

25. Which option to timedatectl shows the available time zones?

  • list-timezones
  • show-tz
  • -tzinfo
  • -timezones

26. Which of the following commands is used to view the pending messages queue on a Postfix server?

  • postqueue -p
  • postconf -pending
  • postqueue -f
  • postsuper pending

27. Which option within a logrotate configuration stanza informs logrotate to create a new log file owned by the user and group www-data and with permission 600?

  • new www-data.www-data mode 600
  • create 600 www-data www-data
  • new 600 www-data
  • createlog mode 600 user www-data group www-data

28. You need to determine the size of the systemd journals on the system. Which option to journaicti is used for this purpose?

  • -disk-use
  • -disk-usage
  • -disk-space
  • -disk-used

29. Which Postfix-related command is used to provide an overview of the number of messages in the incoming and active queues arranged by age?

  • queuelist
  • postq
  • qshape
  • queueshow

30. Within the j ournald configuration file, which option is used to configure the maximum space used by Journal files?

  • SystemFileSizeLimit
  • SystemMaxFile
  • SystemMaxSize
  • SystemMaxUse

31. Which option to journaictl can be used to specify an alternate location for Journal data, such as might be the case when retrieving Journal data from a rescue system or a filesystem copy?

  • -alt
  • -journal-location
  • -journal-dir
  • -directory

32. When testing SMTP Communications between a client and a server, you need to begin the conversation. Which of the following lines shows the beginning of an SMTP conversation using Extended Hello syntax from mail.example.com?

  • BEGIN mail.example.com
  • SMTP mail.example.com
  • HELO mail.example.com
  • EHLO mail.example.com

33. You need to delete all messages from the queue on a Postfix server. Which of the following commands will perform this action?

  • postqueue -remove
  • rm -rf
  • postfix -f
  • postsuper -d ALL

34. When executing the ntpq command, you receive a message like read: Connection refused. What would this typically indicate?

  • The network is down.
  • The NTP daemon is not running.
  • The use of NTP is administratively prohibited.
  • The current user does not have permission to execute ntpq.

35. Which of the following files enables per-user email forwarding?

  • ~/.mailforward
  • ~/.forward
  • ~/.formail
  • ~/.forwardmail

36. Which of the following commands is used to examine the systemd Journal or log file?

  • journallist
  • ctlj
  • journalctl
  • jctl

37. Which command should be used to enable printer sharing through CUPS?

  • cupsctl -enable-sharing
  • cupsc -share
  • cupsctl -share-printers
  • cupsc -printer-sharing

38. Which option within a logrotate configuration file disables compression of the log file?

  • compressoff
  • limitcompress
  • nocompression
  • nocompress

39. Which of the following commands displays the current mail queue on a Postfix server?

  • qmail
  • mailqueue
  • mail -q
  • mailq

40. Which of the following commands can be used to remove all jobs queued for printing?

  • Iprm -all
  • lprm -del A
  • lprm -
  • lprm -remove ALL

41. When you’re running the NTP daemon, which command can you execute to work with the NTP server in an interactive mode?

  • ntpd
  • ntpdate
  • ntpq
  • ntp-interactive

42. Which set of programs or packages can be used for setting the system time on a device that is offline frequently?

  • chrony
  • htpoffline
  • ntpd-off
  • chrondate

43. Which stanza within a CUPS printers.conf configuration file is used to configure a default local printer with CUPS?

  • <LOCAL printerName>
  • <Printer printerName>
  • <DefaultPrinter printerName>
  • <PrintDefault printerName>

44. Which configuration option in /etc/logrotate. conf will cause the log to be emailed to admin@example. com when the logrotation process runs for the selected log?

  • This email address is being protected from spambots. You need JavaScript enabled to view it.
  • This email address is being protected from spambots. You need JavaScript enabled to view it.
  • This email address is being protected from spambots. You need JavaScript enabled to view it.
  • This email address is being protected from spambots. You need JavaScript enabled to view it.

45. Which option to journaicti will clear logs older than five days?

  • -clear=5d
  • -vacuum-time=5d
  • -delete-older=5d
  • -clear-time=5d

46. You need to find the mail queue path on a Postfix server. You’re using postconf -d to view all parameters. Which parameter contains the mail queue path on a Postfix server?

  • mqueue
  • queue_dir
  • mailq_path
  • mqueue_path

47. Which of the following commands causes the mail queue to be processed on a Postfix server?

  • postqueue -f
  • postqueue -D
  • postfix -q
  • postsuper -q

48. Which command can be used to add a job to a print queue?

  • lpadd
  • Ikp
  • lp
  • lpprint

49. Which argument to the mail command sets the subject for the email to be sent?

  • -E
  • -s
  • -c
  • -f

50. Which of the following commands causes sendmail to attempt to deliver the messages in its queue?

  • sendmail -q
  • sendmail -b
  • sendmail -f
  • sendmail -v

51. Which command is used to query and work with the hardware clock on the system?

  • hwc
  • ntpdate
  • systime
  • hwclock

52. Which command can be used to monitor the status of chronyd?

  • chronyc
  • chronystat
  • chrony-stats
  • chronyd-stat

53. Which command can be used to remove print Jobs from the queue?

  • lprm
  • lpdel
  • Ipqman
  • lprmj

54. Which of the following options to the sendmail command will print information about the mail queue?

  • -bi
  • -queue
  • -bp
  • -f

55. Which of the following commands sets the hardware clock to Coordinated Universal Time (UTC) based on the current system time?

  • hwclock -systohc -utc
  • hwclock -systohc -localtime
  • hwclock -systohc
  • hwclock -systoutc

56. To what server address can you set a Network Time Protocol (NTP) client in order to receive time from a regionally local server?

  • 127.0.0.1
  • 192.168.1.100
  • ntp.example.com
  • pool.ntp.org

57. Which directory contains a listing of available time zones on a Linux system?

  • /etc/timezones
  • /etc/tzdata
  • /usr/share/zoneinfo
  • /usr/share/timezones

58. When configuring a log file for rotation, you need to execute a command to run a script after log file rotation. Which option within the logrotate.conf configuration file can be used to facilitate this behavior?

  • after-rotate
  • run-script
  • rotatecomplete
  • postrotate

59. Which of the following definitions in /etc/aliases will deliver mail destined to root to two email addresses, This email address is being protected from spambots. You need JavaScript enabled to view it. and This email address is being protected from spambots. You need JavaScript enabled to view it.?

  • [root] =This email address is being protected from spambots. You need JavaScript enabled to view it., This email address is being protected from spambots. You need JavaScript enabled to view it.
  • root: admin webmaster
  • root: admin, webmaster
  • root: This email address is being protected from spambots. You need JavaScript enabled to view it.. This email address is being protected from spambots. You need JavaScript enabled to view it.

60. When you’re working with klogd, which option can be used to control the file to which messages are logged?

  • -d
  • -f
  • -v
  • -l

61. Which of the following commands is used to determine the amount of disk space used by systemd Journal logfiles?

  • journalctl -disk
  • journalctl -du
  • journalctl -disk-usage
  • journalctl -Is

62. Assume that you want all email for the root user to be sent to This email address is being protected from spambots. You need JavaScript enabled to view it.. Which of the following lines in /etc/aliases will accomplish this task?

  • This email address is being protected from spambots. You need JavaScript enabled to view it.> root
  • root - >This email address is being protected from spambots. You need JavaScript enabled to view it.
  • root, This email address is being protected from spambots. You need JavaScript enabled to view it.
  • root: This email address is being protected from spambots. You need JavaScript enabled to view it.

63. Within which directory hierarchy are queue-related messages stored for Postfix?

  • /var/mqueue
  • /var/spool/mailq
  • /var/spool/postfix
  • /var/postfix

64. Which command can be used to gather and display statistics about mail processed on a server running sendmail?

  • mailq
  • mailstats
  • statmail
  • sendmailstats

65. You are viewing a directory listing of the /etc/localtime file and it looks like the following: lrwxrwxrwx 1 root root 35 Oct 15 2019 /etc/localtime -> /usr/share/zoneinfo/America/Chicago From that directory listing, what can you tell about the file?

  • The file is a symlink to a timezone in /usr/share/zoneinfo.
  • The /usr/share/zoneinfo file is a symlink to /etc/localtime.
  • The /etc/localtime file is a hard link to /usr/share/zoneinfo.
  • The time zone cannot be set because the file must exist as its own separate file.

66. What is the name of the systemd service that provides logging facilities?

  • systemd-journald
  • systemd-loggingd
  • systemd-syslog
  • journalctl

67. Which option in journald.conf controls the maximum file size for individual journal logs?

  • SystemMaxFileSize
  • MaxFile
  • LogFileSize
  • LogSize

68. Which command should be executed after making a change to the sendmail access database /etc/access?

  • makemap
  • makedb
  • newaccess
  • rebuilddb

69. Within which directory hierarchy will you find configuration files related to printing with the Common UNIX Printing System (CUPS) printing system?

  • /etc/cupsd
  • /etc/cups.d
  • /etc/CUPS
  • /etc/cups

70. Which option to ipr sends a print Job to a given destination?

  • -P
  • -a
  • -p
  • -h

71. You need to set the correct time zone on a server. How can you tell what the current time zone is set to?

  • Run the date command.
  • Run the tzdata command.
  • Examine /proc/timezone.
  • Examine /etc/tzdata.

72. Within the /etc/systemd/journald.conf file, which key/value pair will enable the Journal to be persistent?

  • Keep=All
  • Store=Persistence
  • Storage=Persistent
  • Keep=Persist

73. Within which directory will you find configuration files for various logs that are to be rotated with logrotate?

  • /etc/logrotate
  • /etc/logs
  • /etc/logrotate.d
  • /var/spool/logrotate

74. Which of the following commands will set the date immediately and can be used from the command line in a script?

  • ntpd
  • ntpdate pool.ntp.org
  • settime
  • time

75. What is the default port for the CUPS administrative web interface?

  • tcp/53
  • tcp/8080
  • udp/456
  • tcp/631

76. Which option to journaicti will trim the Journal data size so that it consumes the amount specified?

  • -clear-size
  • -vacuum-size
  • -delete-size
  • -consume-max

77. Which option to the date command can be used to set the date and time?

  • date -f
  • date -t
  • date -change
  • date -s

78. Within /etc/ntp. conf, which of the following configuration lines sets the location of the drift file?

  • drift /var/lib/ntp/drift
  • driftfile /var/lib/ntp/drift
  • drift-file /var/lib/ntp/drift
  • driftconfig /var/lib/ntp/drift

79. When running from a shell script, which command enables logging to syslog?

  • logd
  • login
  • logit
  • logger

80. Which command must you run after making a change to email aliases on a server running Postfix?

  • service postfix restart
  • newaliases
  • alias -n
  • postfix -e

81. Which access control directive in a CUPS configuration file configures the system to accept connections from the local network with addresses from 192,168,1,1 through 192,168,1,127?

  • Allow 192.168.1.0/25
  • Allow 192.168.1.0/24
  • Allow 127.0.0.0/8
  • AllowHostS 192.168.1.0

82. Which shortcut can be used as the destination in an Exim alias to prevent Exim from delivering mail to a certain address, such as when you want to essentially delete the mail rather than deliver it?

  • :del:
  • :block:
  • :blackhole:
  • :deletemail:

83. You are troubleshooting a problem with printing and believe the CUPS service needs to be restarted. Which of the following commands can be used to restart CUPS on a server running systemd?

  • systemctl restart cups.service
  • systemctl restart cups-service
  • systemctl reboot cups.target
  • systemctl restart cups.target

84. Which option to journalctl queries for only kernel messages?

  • -ok
  • -okern
  • -k
  • -limitk

85. Which character sequence is used to precede the host or IP in order to specify that TCP should be used for remote system logging in /etc/rsyslog.conf?

  • @TCP
  • @@
  • @
  • :tcp@

86. Which of the following is the configuration file used by the Chrony package?

  • /etc/chrony.cfg
  • /etc/chrony/default.cfg
  • /etc/chrony.conf
  • /etc/chrony.d/chrony.cf

87. Assuming that the $ModLoad imudp configuration option has been set in the configuration for rsyslogd, which of the following additional options is necessary to configure the port on which the server will listen?

  • $Port 514
  • $UDPServerRun 514
  • $Listen 514
  • $UDPListen 514

88. You need to log output to the systemd Journal from a script. Which of the following commands facilitates this scenario?

  • systemd-log
  • systemd-logger
  • systemd-logm
  • systemd-cat

 

{jssocials}