DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Unix Shell Scripts
«Prev
Next»
Shell Programming
Shell Programming
Unix Shell Available
Determining Unix Shell
Shell Scripts Unix
Interpreted Compiled Programs
Understanding Scripting Options
Shell Compiled Programs
Shell Programming Conclusion
Shell Components
Shell Script Macro
Built in Components
Input Output Tools
Shell Script Tests
Script Variables
shell-script-control-structures
Regex Define Patterns
Shell Program Components
Writing First Script
Interactive Shell Script
Defining Script File
Using Text Editor
Echo Command Display Data
Read Input Command
Including Comments Scripts
Setting File Permissions
Running Command Line
First Script Conclusion
Working With Variables
Command Line Arguments
Predefined System Variables
System Variables
Environment Variables
Syntax Affects Interpretation
Using Strings Variables
Using Numbers-inVariables
Performing Math Variables
Using Array Variables
Scripts Variable Summary
Designing Scripts
Script Objective
Script Flow
loop Tests
Checking Commands
error Trapping
Making Script Portable
Documenting Script
Designing Shell Scripts
Defining Script File - Quiz
Each question is worth one point. Select the best answer or answers for each question.
1.
What information must be included in the first line of a shell script?
Please select the best answers.
A.
The interpreter program that should be used to execute the script
B.
The email address of the scripts author
C.
The interpreter program that should be used to execute the script
D.
A summary of the commands used in the script Correct
2.
For what purpose are shell script commands entered at a command line instead of in a script?
Please select all the correct answers.
A.
To complete any task that you prefer to do at a command line
B.
To test a command before including it in a script
C.
To automatically save results to a temporary file
D.
To allow you to interact with the command in real time
3.
Which of the following applies to the file extension on a shell script file?
Please select all the correct answers.
A.
The shell script file extension must match the shell name or the script cannot be executed.
B.
The file extension can refer to the shell to help indicate the purpose of the file.
C.
Using a filename that is descriptive of the shell script purpose is more important than the file extension.
D.
The file extension is not used at all in interpreting or executing the shell script.