Q41. - (Topic 1)
Which of the following commands lists all defined variables and functions within Bash?
A. env
B. set
C. env -a
D. echo $ENV
Answer: B
Q42. - (Topic 1)
Which of the following are requirements in order to run a shell script like a regular command from anywhere in the filesystem? (Choose THREE correct answers.)
A. The user issuing the command must be in the group script.
B. The script file must be found in the $PATH.
C. The script file must have the executable permission bit set.
D. The script must begin with a shebang-line (#!) that points to the correct interpreter.
E. The file system on which the script resides must be mounted with the option scripts.
Answer: B,C,D
Q43. - (Topic 4)
Which of the following commands is used to rotate, compress, and mail system logs?
A. rotatelog
B. striplog
C. syslogd --rotate
D. logrotate
E. logger
Answer: D
Q44. - (Topic 1)
Which command makes the shell variable named VARIABLE visible to subshells?
A. export $VARIABLE
B. export VARIABLE
C. set $VARIABLE
D. set VARIABLE
E. env VARIABLE
Answer: B
Q45. - (Topic 6)
Which command is used to set restrictions on the size of a core file that is created for a user when a program crashes?
A. core
B. edquota
C. ulimit
D. quota
Answer: C
Q46. - (Topic 5)
Which of the following IPv4 networks are reserved by IANA for private address assignment and private routing? (Choose THREE correct answers.)
A. 127.0.0.0/8
B. 10.0.0.0/8
C. 169.255.0.0/16
D. 172.16.0.0/12
E. 192.168.0.0/16
Answer: B,D,E
Q47. - (Topic 4)
Which of the following are commonly used Mail Transfer Agent (MTA) applications? (Choose THREE correct answers.)
A. Postfix
B. Procmail
C. Sendmail
D. Exim
E. SMTPd
Answer: A,C,D
Q48. - (Topic 3)
Which of the following commands should be added to /etc/bash_profile in order to change the language of messages for an internationalized program to Portuguese (pt)?
A. export LANGUAGE="pt"
B. export MESSAGE="pt"
C. export UI_MESSAGES="pt"
D. export LC_MESSAGES="pt"
E. export ALL_MESSAGES="pt"
Answer: D
Q49. - (Topic 4)
What entry can be added to the syslog.conf file to have all syslog messages generated by a system displayed on console 12?
A. *.* /dev/tty12
B. /var/log/messages | /dev/tty12
C. | /dev/tty12
D. syslog tty12
E. mail.* /dev/tty12
Answer: A
Q50. CORRECT TEXT - (Topic 6)
On a Linux system with shadow passwords enabled, which file in the file system contains the password hashes of all local users? (Specify the full name of the file, including path.)
Answer: /etc/shadow