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

 

1. On which port does the ping command operate for Internet Control Message Protocol (ICMP) echo requests?

  • 53
  • 1337
  • 33433
  • No port is used for ICMP.

2. Which of the following commands shows various statistics for a network interface such as packets and bytes received and transmitted along with errors and other such conditions?

  • ifconfig
  • ifstat
  • if -s
  • ifcond

3. Which of the following configuration lines in /etc/hosts.deny creates a deny-by-default policy where clients will need to be specifically allowed in /etc/hosts.allow?

  • * *
  • All: *
  • ALL: ALL
  • LOC: ALL

4. Which option to the ip command displays DNS names rather than merely IP addresses?

  • -n
  • -f
  • -r
  • -a

5. Which option to date changes the output to Coordinated Universal Time (UTC) regardless of the current time zone?

  • -u
  • -t
  • -s
  • -v

6. Within which directory hierarchy will you find information regarding the available time zones on the server?

  • /usr/zoneinfo
  • /usr/share/zoneinfo
  • /etc/zoneinfo
  • /etc/tz.conf.d

7. Which command option can be used to remove all cron jobs for a given user using the crontab command?

  • -d
  • -e
  • -r
  • -l

8. Users can be added or removed for access to the X server. Which command facilitates this?

  • xauthorization
  • xhost
  • xwin
  • xconnect

9. Which option to the logrotate command specifies the mailer to use?

  • -o
  • -s
  • -m
  • -v

10. Which of the following commands changes the group name from admins to serveradmins?

  • groupmod -g admins serveradmins
  • groupmod -n serveradmins admins
  • groupchg -n serveradmins admins
  • groupchg admins -n serveradmins

11. Which of the following commands can be used to delete a print job on a system that uses the lp print system?

  • lpdel
  • rmprint
  • rm -print
  • lprm

12. Which of the following commands deletes a group from a CentOS Linux system?

  • groupdm
  • grouprm
  • groupdel
  • delgroup

13. Which of the following commands displays a listing of who is logged in to the server along with the date and time that they logged in?

  • whois
  • who
  • loggedin
  • curusers

14. Which of the following locations stores the configuration for LightDM?

  • /etc/lightdm/
  • /etc/lightdm.conf
  • /etc/lightdm-conf
  • /etc/lightdm.d

15. Which command can be used to set the delay and repeat rate for a keyboard?

  • keyboard
  • kbdrate
  • kbd
  • keyrate

16. When viewing the results of a traceroute, you see !H. To what does !H refer?

  • Network unreachable
  • Host available
  • Host unreachable
  • High length

17. You are watching another administrator perform some work on a server. As part of that work, the admin uses the following command: .var.sh Which of the following is the equivalent of .var.sh?

  • let var.sh
  • set var.sh
  • source var.sh
  • var var.sh

18. Which of the following shows a valid Bash function called greetings?

  • function greetings () { echo "hello"; }
  • function greetings{}
  • function greetings() { echo Hello }
  • function greetings() { echo Hello } ;

19. Which of the following syslog facilities captures messages from the lp printing facility?

  • auth
  • messages
  • lpr
  • root

20. Which of the following subnet masks represents a /23?

  • 255.255.255.0
  • 255.255.0.0
  • 255.255.255.255
  • 255.255.254.0

21. Which option to passwd can be used to unlock an account that was locked with the passwd command?

  • -s
  • -l
  • -u
  • -w

22. Which of the following commands sends an email to root with the subject of Update and the content of the /etc/hostname file?

  • mail root > /etc/hostname
  • mail -s Update root > /etc/hostname
  • mail -s Update root < /etc/hostname
  • mail root -s Update /etc/hostname

23. Which port should be allowed through a firewall for NTP communication?

  • Port 139
  • Port 161
  • Port 123
  • Port 194

24. Which character combination sets the body of the message to STDIN when using the mail command?

  • <
  • >
  • <<<
  • |

25. Which of the following conditionals in a Bash script will test if the variable DAY is equal to SUNDAY?

  • if ($DAY == "SUNDAY")
  • if ($DAY -eq "SUNDAY")
  • if [[ $DAY == "SUNDAY" ]]
  • if [ DAY = "SUNDAY" ]

26. The driftfile, as specified in /etc/ntp.conf on a Red Hat system, is stored in which location by default?

  • /var/lib/ntp/drift
  • /var/ntp/drift
  • /usr/share/ntpdrift
  • /usr/share/lib/ntpdrift

27. Which option to the ntpdate command configures the version to use such that an older Network Time Protocol (NTP) server could be queried?

  • -o
  • -v
  • -e
  • -r

28. Which option to ssh changes the username to use for logging in to the server?

  • -v
  • -i
  • -l
  • -u

29. Which of the following commands displays the current mail aliases known on the server?

  • getent aliases
  • getalias
  • listalias
  • mail aliases

30. Which of the following options to isof searches an entire directory tree for open instances of files or directories?

  • -d
  • +D
  • -f
  • -i

31. Which of the following commands and options enables you to examine timing related to listening sockets?

  • ss -o
  • netstat -rn
  • ping -f
  • ls -l

32. When deleting a user from the server, you need to maintain their home directory rather than deleting it. Which option of the following commands deletes the user <username> but preserves their home directory?

  • userdel <username>
  • userdel -r <username>
  • userdel -h <username>
  • userdel -p <username>

33. Which of the following is the correct syntax to connect using ssh to host. example. com on port 2200?

  • ssh -l 2200 host.example.com
  • ssh host;example.com
  • ssh host.example.com:2200
  • ssh host:2200 -d example.com

34. Which of the following IP address and subnet mask pairs represents a private network in a /24 size?

  • 192.168.3.0/255.255.255.128
  • 172.16.19.128/255.255.0.0
  • 192.168.2.0/255.255.255.0
  • 10.168.1.0/0.0.0.255

35. Which of the following commands is necessary for making a variable defined in your current shell available to child processes?

  • export
  • source
  • let
  • def

36. Which option to useradd sets the number of days between password expiration and when the account is disabled?

  • -n
  • -f
  • -e
  • -g

37. Which option in /etc/sudoers sets the destination address for administrative and security emails related to sudo?

  • mail
  • mailto
  • secmail
  • adminmail

38. Which option to ping disables name resolution?

  • -d
  • -D
  • -f
  • -n

39. Files that should be copied to a user’s home directory when their account is created should be placed in which of the following directories?

  • /etc/usertemplate
  • /etc/template
  • /etc/skel
  • /etc/userskel

40. After deleting a group, you need to search the filesystem for files owned by the group using its group ID. Which option to the find command will search using the group ID?

  • -name
  • -group
  • -groupid
  • -gid

41. To which file should you add an entry in order for a host to be blocked using TCP wrappers?

  • /etc/hosts.deny
  • /etc/tcp.wrappers
  • /etc/wrap.config
  • /etc/tcpwrap.conf

42. Which variable is used to indicate the screen on which GUI applications will be shown?

  • DISPLAY
  • SCREEN
  • LIST
  • XWIN

43. Which option to the crontab command enables you to work with a different user’s cron jobs?

  • -u
  • -m
  • -d
  • -e

44. Which of the following commands displays the available character maps?

  • charmap
  • charmap -l
  • locale -m
  • mapinfo

45. Which of the following options to ifup tells the command to ignore errors and continue?

  • -continue
  • -c
  • -ignore-errors
  • -h

46. Which option to nmap causes it to scan using UDP?

  • -sT
  • -sS
  • -sP
  • -sU

47. Which of the following commands displays statistics and information about windows in X windows?

  • xinfo
  • xstats
  • xwin
  • xwininfo

48. Within which directory are systemd journals stored by default?

  • /var/log/systemd
  • /var/systemd/journal
  • /var/log/journald
  • /var/log/journal

49. Which of the following commands can be used to set the time zone on a Debian system?

  • tzconfig
  • /etc/timeconfig
  • timeconfig
  • timecfg

50. Which of the following commands adds ~/dev/bin to the path?

  • PATH=~/dev/bin:$PATH
  • PATH=/dev/bin:$PATH
  • PATH=/home/dev/bin:$PATH
  • PATH=PATH:~/dev/bin

51. Which of the following areas within an Ubuntu system contains information and settings for accessibility?

  • Accessibility
  • Access and Help
  • Universal Use
  • Universal Access

52. When using netstat -a, which file is consulted for the port number to name translation?

  • /etc/portnum
  • /etc/services
  • /etc/portnames
  • /proc/sys/net/ipv4/ports

53. An entry in /etc/nsswitch.conf indicates hosts: files dns. In which order will /etc/hosts be queried for a hostname lookup?

  • The /etc/hosts file will be examined first.
  • The /etc/hosts file is not related to hostname lookup.
  • The /etc/hosts file will be queried second.
  • The /etc/hosts file will be queried last.

54. Which port needs to be allowed through the firewall for standard Lightweight Directory Access Protocol (LDAP) traffic to be received by the server?

  • TCP port 25
  • TCP port 443
  • TCP port 143
  • TCP port 389

55. Which of the following commands creates an alias for the ps command such that the options auwx are included when the user types psa?

  • alias "ps auwx" = "psa"
  • alias psa=ps uawx
  • alias psa="ps auwx"
  • psa="ps auwx"

56. Which of the following commands launches Orca with speech capabilities?

  • orca -no-setup -disable main-window
  • orca -screen
  • orca -screen-reader
  • orca -no-setup -s

57. Which of the following describes the result of running the atq command as root?

  • The current cron and at jobs for root will be listed.
  • The current at jobs for all users will be listed.
  • The current cron and at jobs for all users will be listed.
  • The last 10 entries in the at log will be shown.

58. You need to specify an additional localhost address and hostname for a server in order to support a specialized network configuration. Which line in /etc/hosts sets the hostname with a unique IP address in the correct range for localhost?

  • 127.0.1.1 host.example.com host
  • 192.168.0.1 host.example.com host
  • host.example.com 127.0.0.1
  • host.example.com 172.16.31.32

59. When using the host command, which option displays the Start of Authority (SOA) record from each of the authoritative DNS name servers for the given domain?

  • -N
  • -n
  • -c
  • -a

60. Which command is used to parse log file entries on a systemd- based system?

  • logger
  • journalentry
  • jrnctl
  • journalctl

 

{jssocials}