exceptional training for unix and linux professionals

Linux Shell Scripting Training Course

Attend A Unix/Linux Course At JBI Training - Gain An Understanding Of This Feature-Packed Operating System

NEXT COURSE
4 Nov London
request info

Capita Marks and Spencer Telefonica Cisco BBC Lloyds Sony

Linux Shell Scripting training course (code: shellscript)

TRAINING COURSE OVERVIEW

Our Unix and Linux training course  gives an introduction to Linux and Unix, a versatile and stable operating systems used in business and on many of the servers on the internet. The course is
suitable as preparation for the CompTIA Linux+/LPIC-1, Linux Professional Institute examinations.
 
We concentrate on the command line rather than the graphical interface with the most commonly used commands and utilities described in detail as are the use of piping, redirection, wildcards and the vim editor.
The system is fairly easy to learn and use and we expect this course to be a fun and interesting way to master it.

Although based on CentOS (Red Hat) or Ubuntu Linux the commands and principles learnt may be applied to all other versions of Linux, including SUSE and to all versions of Unix including Solaris and AIX.
The course takes the format of a workshop, with a mix of lecture, working examples and practical exercises. Although the content may be customised, at least 2 days are normally needed to cover the core elements.

Full course notes are provided along with sample script files and free software tools for use in accessing a Linux or Unix server.

AUDIENCE

The course is only suitable for those who have a working knowledge of Linux/Unix or have attended the Introduction to Linux/Unix course.

CONTENT

DETAILHIGHLIGHTS

Overview
Objectives, Schedule, Introductions, Pre-requisites, Responsibilities

Linux Revision
Objectives, Customising the Shell, . - dot Command, Getting Help, Command
History, Command Completion, Piping - using | symbol, Redirection - using >
symbol, Redirection - using >> symbol, Redirection of Errors - using 2> symbol,
Wildcards - File Name Generation, Wildcards - using *, Wildcards - using ?,
Wildcards - using [ ], Extended Globbing, Vi and Vim Editors, Using vim,
Command Mode - Moving the Cursor, Setting Options, Input/Replace Mode –
Inserting/Changing Text, Deleting Text, Other commands, Command-line Mode
– Saving/Exiting, Mapping Keys, Saving Settings, Cut and Paste Text - delete
and put, Copying Text - yank and put, Comparing Files - cmp, diff, sdiff, vimdiff,
Regular Expressions, Global Search Commands, Line Addresses, Global
Substitution, Replacing Many Characters, Global Printing and Deleting, Why use
vim?, Advanced Commands, find - Finding Files, More on Redirection,
Redirecting Errors, Finding Multiple Files, Find and Execute Command, xargs -
Passing Filenames, Foreground Jobs, Background Jobs - &, kill - Stopping Jobs,
cut - Cropping Text, jobs - Job Control, Scheduling Jobs, Crontab Command,
mail - Reading Mail, grep - Finding Text in Files, grep - Using Regular
Expressions, egrep - Expression grep, Using Filters, More Regular Expressions,
Regular Expression Examples, Permissions - File and Directory, Permissions -
Evaluating, chmod - Changing Permissions, chmod – Octal Numbers, SUID Bit,
umask - Default File Permissions, umask - Changing Default Permissions

Shell Programming
Objectives, Creating Shell Scripts, Testing the Command, Creating the Script
File, Testing the Script, Adding Execute Permissions, The PATH Variable, Login
Files, . - dot Command, Passing Parameters, read Command, read in Scripts,
Tidying The Output, Choosing the Shell, Debugging the Script

Special Characters and Variables
Objectives, Quotation Marks, Quotes - Double, Single, Quotes - Single, Escape
Character, Quotes - Back, Using $(…), Variables - System, Variables - Special,
Variables - User, Variables - unset, Variables - declare, Variables in Scripts,
Variables - Local, Variables - Global, Variable Constructs - { }, Brackets, Regular
Expressions - ( ), { } and [ ], Command Substitution - ( ), Sub-shells - ( ) and { },
Brace Expansion - { }, Other Variable Constructs - { }

Selection
Objectives, if - Conditional Testing, if - File Attributes, if - Using Test, if - Single
Square Brackets [ ], If - Logical Constructs [[ ]], if - Multiple Tests, elif, if - NOT
Condition, if - Multiple Tests, AND and OR, if - Multiple Tests, Nested, if - Testing
Numbers, if - Testing Numbers with (( )), if - Testing Strings, if – Which Construct
To Use?, Placing Spaces, Read Command, case - Testing Names, Input
validation, If – Regular Expressions, if - Testing Commands, Using Variables

Iteration, Looping
Objectives, let - Computations, () - Computations, expr - Computations, while,
until - Iteration, Infinite Loop, for - Iteration, Sequence of Numbers, shift - Moving
Parameters, while - Reading a File, while - With a Pipe, for - Iteration using $*,
for - at the Command Line, Creating Menus, Objectives, case - Condition Test

Menu Creation
while, until - Iteration, sleep - Holding the Output, read - Holding the Output, exit
- Ending the Script, break - Ending the Loop, Hidden Option - Forking a shell,
trap - Interrupts, trap - Continue, tput - Highlighting Text, Positioning the Cursor -
backtab \b, exec - Running the Script, Select Shell Menu

Arrays, Sub-scripts and Functions
Objectives, Using Arrays, Quoted Strings, Sub-scripts, Export Command, Exit
Status, Functions, Creating Functions, Listing Functions, Example Function,
Useful Functions, Functions in Scripts, Return Status, Summary


Appendices
Sed Utility
Objectives, sed - Batch Stream Editor, sed - Delete, -d, sed - Regular
Expressions, sed - Print, -p, sed - Suppress, -n, sed - Multiple Input, sed – Text
Substitutions, sed - Extracting Lines, sed – Updating the File, -i, sed - Multiple
Input, sed - File Input, -f, sed - Quit, -q, sed - Example Script

Awk Utility
Objectives, awk Programming Tool, awk - Pattern Matching, awk - Regular
Expressions, awk - Delimiter, awk - Contains, awk - Range Patterns, awk -
Comparison Patterns, awk - Compound Patterns, awk - Scripts, awk -
Troubleshooting Scripts, awk - Built-in Functions, awk - Passing Parameters,
awk - Using Contains, awk - Printf Function, awk - Computations, awk -
Shortcuts, awk - Functions, substr, length, Self Study, awk - Action Statements,
awk - Control Flow Statements, awk - Arrays, awk - Arrays with for Loops, awk -

Advanced Commands
Objectives, eval Command, More on eval, Passing Arguments, Validating
Arguments, getopts Command, getopts Example, Debugging the Script

Handouts
Main Commands, Get By In vim

  • Overview
  • Linux Revision
  • Shell Programming
  • Special Characters and Variables
  • Selection
  • Iteration, Looping
  • Menu Creation
  • Arrays, Sub-scripts and Functions
  • Appendices
  • Awk Utility
  • Examples
  • Advanced Commands
  • Handouts
     

UPDATES
Receive the latest version of this course into your inbox



LONDON COURSES
- INCLUDES LUNCH -

4th Nov 2019 - 5 days £1995
Book

see all dates


X

Show Discount for this course


PRIVATE COURSES


  Bring a JBI course to your office
  and train a whole team onsite
  0800 028 6400
or request quote


  You can customise this course to
  suit your exact needs here
  0800 028 6400 or request quote


CONTACT
0800 028 6400



Why JBI ?

►"great technology tips"
► "Access to exclusive content"
► "Short course means less time off"

►"Inspiring trainers"
► "Joined via web"
► "Knowledgable sales staff"

NEWSLETTER
Get exclusive news about upcoming programs, technical insights & special offers