Unix Shell Fundamentals
Author – Mark Virtue
Total Time – 10 Hours
Introduction
About this Course
Audience and Prerequisites
Understanding UNIX
What is UNIX?
UNIX History
Which UNIX?
UNIX Architecture
Understanding the UNIX Shell
What is the UNIX Shell?
Which Shell?
Logging In
Basic Commands
Command Syntax
Getting Help
Logging Out
Files and Directories
Intro & Commands for Files and Directories
Filenames and File Types
Wildcards
Displaying File Contents
Comparing Files
Copying, Moving and Renaming Files
Deleting Files
Hidden Files
The "." and ".." Directories
Relative vs. Absolute Paths
Working with Directories
Finding Files
Archiving Files
Security
Users and Groups
File Protection Overview
Changing File Permissions
Changing File Ownership
Changing File Group
A Dangerous Security Loophole
Combining Programs – Pipes and Filters
Standard Output
Standard Input
Standard Input and Output
About Filters
Common Filters
Searching for Text in Files
Standard Error
Process Control
About Processes
Running Commands Asynchronously
Killing Processes
Jobs
More Process Control
Scheduling Commands
vi – A UNIX Text Editor
Understanding vi
Manipulating Files
Moving Around
Basic Editing
Advanced Editing
Configuring vi
The UNIX File System
Introduction to the Unix File System
How Files are Stored
Understanding Links
Linking Files
Symbolic Links
UNIX File Types
Mounting
Communication
Using telnet
Using mail
Customizing Your Shell Environment
Changing your Login Shell
Your .profile
Environment Variables
Your PATH
Your Prompt
Korn Shell Command-line Editing
Other Shell Customization Options
The End
Unix Shell Scripting Advanced
Author – Mark Virtue
Total Time – 8 Hours
Introduction
About this Course
Course Structure
What is the UNIX Shell?
Which Shell?
What is a Shell Script?
Your First Shell Script
A Basic Script
The echo Command
The read Command
Shell Basics Revisited
Special Characters
Comments
Chapter Exercises
Exercise Solutions
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
Shell Programming Features
Shell Variables
Environment Variables
The Trouble with Quotes
Grouping Commands
Line Control
Chapter Exercises
Exercise Solutions
Introducing the Course Project
Course Project Solution
Conditional Code
True and False
Conditional Command Execution
The if Statement
The else Clause
The elif Clause
Using test
The case Statement
Chapter Exercises
Exercise Solutions
Loops
The while Loop
break and continue
Numerical Calculations
The for Loop
Chapter Exercises
Exercise Solutions
Text Processing
About Filters
grep
Regular Expressions
sort
sed
awk
Chapter Exercises
Exercise Solutions
Functions
Program Structure
Defining and Calling a Function
Function Parameters
Function Return Values
Functions in Other Files
Case Study: The yesno Function
Chapter Exercises
Exercise Solutions
Command-line Parameters
Using Command-line Parameters
Using shift
Using set —
Using IFS
Usage Messages
Chapter Exercises
Exercise Solutions
Advanced Scripting
Debugging
Default Values for Variables
Temporary Files
Preventing Abnormal Termination
Chapter Exercises
Exercise Solutions
The End
tşkrler hocam eeyw