1.
A script set to run using /bin/sh has executed a grep command, and grep has returned an error. If the grep result is analyzed by the following logic:
if [ "$?" = 0 ]
then
echo BLUE
else echo GREEN
fi
Which of the following will be the script's output?
2.
Under which of the following scenarios should an administrator initiate single user mode?
3.
A Linux machine has a local address of 192.168.1.1 with a subnet mask of 255.255.255.0. All services are currently denied. Which of the following lines should be appended to the hosts.allow file to permit access to the Web service on the local subnet?
4.
The system administrator wishes to view vmstat output once every 10 seconds for the next minute. Which of the following commands accomplishes this?
5.
Which of the following commands will display a list of system hardware after the Linux system boots?
6.
A Linux server may have vulnerabilities if which of the following occurs?
7.
After a company-standard installation, a user with a Swedish keyboard has the English character set loaded. Which of the following configuration files should be edited to support the specific country keyboard?
8.
A server requires more swap space. A new swap partition is created at /dev/sdb2 using fdisk. After editing the configuration, which of the following commands is used to activate the new partition?
9.
The command is -l file is issued, and the result is:
-rwxrw---x 5 root wheel 8192 Jan 01 21:00 file
Which of the following chmod commands corresponds to the current permissions of the file?
10.
A user needs to attach a Linux laptop to a wireless access point using 802.11b. Which of the following applications would allow the user to configure the WEP (Wired Equivalent Privacy) key?