Which of the following commands lists all defined variables and functions within Bash?
A. env
B. set
C. env -a
D. echo $ENV
What is true regarding the statement beginning with #! That is found in the first line of a script?
A. It prevents the script from being executed until the ! is removed.
B. It specifies the path and the arguments of the interpreter used to run the script.
C. It is a comment that is ignored by the script.
D. It specifies the character encoding of the script.
What is NOT contained in the locale setting of the operating system?
A. currency symbol
B. language
C. timezone
D. thousands separator
What is true regarding a default route?
A. The default route is always used first. When the default route is not available more specific routes are tried.
B. When a default route is set, all other routes are disabled until the default route is deleted.
C. The default route is only used if there is not a more specific route to a destination host or network.
D. Without a default route, no network communication even in directly attached networks is possible.
What of the following can be done by the command ifconfig? (Choose TWO correct answers.)
A. Set a network interface active or inactive.
B. Specify the kernel module to be used with a network interface.
C. Allow regular users to change the network configuration of a network interface.
D. Change the netmask used on a network interface.
E. Specify which network services are available on a network interface.
Which of the following are valid IPv4 network masks? (Choose two correct answers.)
A. 255.255.0.0
B. 255.255.255.65
C. 255.255.0.255
D. 0.0.0.1
E. 255.255.255.248
Which of the following statements is valid in the file /etc/resolv.conf?
A. order hosts, bind
B. 192.168.168.4 dns-server
C. hosts: files, dns
D. domain example.com
Given the following line from /etc/nsswitch.conf:
hosts: files mdns4_minimal [NOTFOUND=return] dns mdns4
By default, which file will be queried first for hostname lookups? (Specify the full name of the file, including path.)
A. /etc/hosts
The presence of what file will temporarily prevent all users except root from logging into the system? (Specify the full name of the file, including path.)
A. /etc/nologin
What happens if the password of a user in the /etc/shadow file is prepended with the ! character?
A. When logging in, the user automatically gets root privileges in addition to his regular privileges.
B. The password is inverted which allows the user to log in with any password other than the current password.
C. The user is disabled and all login methods, including but not limited to password based logins, are disabled.
D. Upon the next log in, the user is forced to change his password.
E. The password becomes invalid which disables password based logins although other login methods remain usable.