We have sent an email with your new password.


Linux+ Networking Chapter 8

20 Questions  I  By Ajeff
Linux+ Networking Chapter 8
Linux+ Networking Chapter 8

  
Changes are done, please start the quiz.


Question Excerpt

Removing question excerpt is a premium feature

Upgrade and get a lot more done!
1.  Every if construct begins with if and must be terminated with?
A.
B.
C.
D.
2.  Which of the following is not necessarily generated by every command on the system? (Choose all that apply.)
A.
B.
C.
D.
3.  Which of the following files is always executed immediately after a user logs in to a Linux system and receives a BASH shell?
A.
B.
C.
D.
4.  How do you indicate a comment line in a shell script?
A.
B.
C.
D.
5.  Which construct can be used in a shell script to read Standard Input and place it in a variable?
A.
B.
C.
D.
6.  Which of the following file descriptor numbers represents stdout?
A.
B.
C.
D.
7.  What is wrong with the following command string ls /etc/hosts   >listofhostfile?
A.
B.
C.
D.
8.  Because Standard Error and Standard Ouput represent the results of a command and Standard Input represents the input required for a command, only Standard Error and Standard Ouput can be redirected to/from a file. True or False?
A.
B.
9.  Which command could you use to see a list of all environment and user-defined shell variables as well as their current values?
A.
B.
C.
D.
10.  The current value for the HOME variable is displayed by which of the following commands? (Choose all that apply.)
A.
B.
C.
D.
11.  What does >> accomplish when entered on the command line after a command?
A.
B.
C.
D.
12.  You have redirected Standard Error to a file called Errors. You view the contents of this file afterward and notice that there are six error messages. After repeating the procedure, you notice that there are only two error messages in this file. Why?
A.
B.
C.
D.
13.  The sed and awk commands are filter commands commonly used to format data within a pipe. True or False?
A.
B.
14.  Which of the following will display the message welcome home if the cd /home/user1 command is successfully executed?
A.
B.
C.
D.
15.  The alias command can be used to make a shortcut to a single command.  True or False?
A.
B.
16.  What would be the effect of using the alias command to make an alias for the date command named cat in honor of your favorite pet?
A.
B.
C.
D.
17.  Before a user-defined variable can be used by processes that run in subshells, that variable must be ____________.
A.
B.
C.
D.
18. 
  1. A variable identifier must ____________.
A.
B.
C.
D.
19.  Which of the following operators reverses the meaning of a test statement?
A.
B.
C.
D.
20.  Consider the following shell script:                 echo -e “What is your favorite color?--> \c”                  read REPLY                 if [ “$REPLY” = “red”  –o  “$REPLY” = “blue” ]                 then                    echo “The answer is red or blue.”                 else                      echo “The answer is not red nor blue.”                 fi  What would be displayed if a user executes this program and answered Blue when prompted?
A.
B.
C.
D.
Back to top

Removing ad is a premium feature

Upgrade and get a lot more done!
Take Another Quiz