DispersedNet
SiteMap
Unix Concepts
Shell Programming
Shell Scripting
Unix Questions
Shell Components
«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
Shell Programming Concepts - Quiz
Defining Shell Programming Concepts
Each question is worth one point. Select the best answer or answers for each question.
1.
How is a shell script similar to a word processor macro?
Please select the best answer.
A.
Both require special UNIX add-ons
B.
Both imitate commands you would enter manually
C.
Both use external and built-in commands
D.
Both use proprietary scripting languages
2.
Which statements describe external commands?
Please select all the correct answers.
A.
They are not part of the shell itself.
B.
They are unlikely to vary depending on which shell you are using.
C.
They are identical to built-in commands when using macros.
D.
They require less memory than built-in commands.
3.
How do shell scripts receive input?
Please select all the correct answers.
A.
By reading keyboard data entered by a user
B.
By using the output of another program as input
C.
By using a files contents as input
D.
By reading data from the network
4.
Which methods do shell scripts use to process output?
Please select all the correct answers.
A.
Writing data to a file.
B.
Sending information to the screen.
C.
Sending information over a network connection.
D.
Redirecting the output of an external command.