LINUX
LAMP
PERL
PHP
BUILDING CLUSTERS IN LINUX
Duration : 24 Hours
UNIT 1: Introduction About this Course
Course Structure
What is the UNIX Shell?
Which Shell?
What is a Shell Script?
 
UNIT 2: Introduction to BASH Command Line Interface (CLI)
Overview BASH key configuration files
- - .profile/.bash_profile/.bashrc/.bash_history
Common built-in BASH commands (pwd,cd,set,unset,export,source,etc.
BASH Command-line Expansion
- Brace Expansion
- Tilde Expansion
- Parameter & variable Expansion
- Command Substitution
BASH Reserved words
BASH History identification & configuration
Aliases (ls,du,df,rm,cp)
Backticks - command expansion & execution
BASH Prompt configuration
Command chaining
Error level/Return code (Command Exit Status) identification
- Test return 0
- Test return 126 - permissions
- Test return 127 - command not found
Conditional execution of subsequent commands (&&,||)
 
UNIT 3: Your First Shell Script
A Basic Script
The echo Command
The read Command
Shell Basics Revisited
Special Characters
Comments
 
UNIT 4: Running a Shell Script
Running a Script on the Command-line
Running a Script from within vi
Your PATH and bin
Script Interpreters
CGI Scripts
 
UNIT 5: Redirection
Standard Input
- Direct input from Standard Input
- Redirect input from a file
Standard Output
- Direct output to Standard Output
- Redirect output to a file
- Append Standard Output to an existing file
Standard Error
- Redirect Standard Error
Input/Output (I/O) Redirection
- Pipes
- Sequential execution via pipes
Quoting & Escaping
- single quotes preserves whitespace, double quotes don't
- Full-quoting - single quotes - all enclosed values are literal
- Partial quoting - double quotes - all enclosed values are literal except "$ \`"
- \ is the escape character used to treat following strings literally
 
UNIT 6: Shell Programming Features
Shell Variables
Environment Variables
The Trouble with Quotes 1
The Trouble with Quotes 2
Grouping Commands
Line Control
 
UNIT 7: Conditional Code
True and False
Conditional Command Execution
The if Statement
The else Clause
The elif Clause
Using test
The case Statement: Concise Conditional Branching
Conditionals - If-Then-Else – Testing
Positional Parameters
 
UNIT 8: Loops
Loops
- For
- While
- Until
break and continue
Numerical Calculations
 
UNIT 9: Text Processing
About Filters
grep
Regular Expressions
sort
sed
awk
 
UNIT 10: Functions
Program Structure
Defining and Calling a Function
Function Parameters
Function Return Values
Functions in Other Files
Case Study: The yesno Function
 
UNIT 11: Command-line Parameters
Using Command-line Parameters
Using shift
Using set --
Using IFS
Usage Messages
 
UNIT 12: Advanced Scripting
Debugging
Default Values for Variables
Temporary Files
Preventing Abnormal Termination
 
UNIT 13: Exercises/Assignments
Lots of exercises and assignments, so that student should be capable of writing real world administration scripts.