Name: Score:
83 Multiple choice questions
Definition 1 of 83
When you create a shell script to run in Bash, you can immediately run the script by typing ____ and
then the name of the script.
set
sh
-u
FALSE
Definition 2 of 83
The ____ redirects the output of one command to the input of another command.
pipe operator (|)
curly brackets { }
ls > homedir.list
printenv
Term 3 of 83
"The Bash shell offers improved features over the older Bourne and Korn shells and is fully
backward compatible with the Bourne shell.
True
False
,Definition 4 of 83
When you assign a value to a variable, you might want to evaluate it by displaying its contents via
a(n) ____ operator.
FALSE
Configuration
-print
evaluating
Definition 5 of 83
One way to run a shell script is to make it executable by using the x permission and then typing
____ prior to the script name when you run the script itself.
-v
./
-u
sh
Definition 6 of 83
____ is a selection command.
glob
uniq
bash
Awk
, Term 7 of 83
When you use cat to combine two files into a third file, the first line of the output contains the first
line of the first file followed by the first line of the second file.
True
False
Term 8 of 83
"You use the chexec command to indicate that a (shell script) file can be executed.
True
False
Definition 9 of 83
The ____ function within the awk command is used to format output.
printf
printenv
-print
while
Definition 10 of 83
____ variables are those you create at the command line or in a shell script.
syntax
Shell
FALSE
comm
83 Multiple choice questions
Definition 1 of 83
When you create a shell script to run in Bash, you can immediately run the script by typing ____ and
then the name of the script.
set
sh
-u
FALSE
Definition 2 of 83
The ____ redirects the output of one command to the input of another command.
pipe operator (|)
curly brackets { }
ls > homedir.list
printenv
Term 3 of 83
"The Bash shell offers improved features over the older Bourne and Korn shells and is fully
backward compatible with the Bourne shell.
True
False
,Definition 4 of 83
When you assign a value to a variable, you might want to evaluate it by displaying its contents via
a(n) ____ operator.
FALSE
Configuration
evaluating
Definition 5 of 83
One way to run a shell script is to make it executable by using the x permission and then typing
____ prior to the script name when you run the script itself.
-v
./
-u
sh
Definition 6 of 83
____ is a selection command.
glob
uniq
bash
Awk
, Term 7 of 83
When you use cat to combine two files into a third file, the first line of the output contains the first
line of the first file followed by the first line of the second file.
True
False
Term 8 of 83
"You use the chexec command to indicate that a (shell script) file can be executed.
True
False
Definition 9 of 83
The ____ function within the awk command is used to format output.
printf
printenv
while
Definition 10 of 83
____ variables are those you create at the command line or in a shell script.
syntax
Shell
FALSE
comm