Red Hat and Linux Systems Advanced Shell Programming

Course ID

80050

Course Description

This advanced-level course provides the foundation concepts and practices of shell programming for Red Hat Linux and Linux OS administrator. Red Hat Linux as well as all other Linux and UNIX based systems predominantly use some form of a Bourne compatible shell, such as Korn or Bash shells, for scripting management tools. This course takes someone with a base knowledge of scripting to the next level, specifically providing extensive hands on experience with creating scripts that process large and small data streams, text files and system messages, and introduces many of the powerful common tools, for string, text and file processing, found on all Linux systems.

Prerequisites

BASIC UNIX Commands and Utilities knowledge. Introduction to Linux/UNIX and some command line experience are a must.

Audience

This course is for ALL Help Desk and Desktop Support Personnel, all Networking Specialists, all Network and LAN Integration Specialists, any System Administrators from other operating systems needing to 'integrate' Linux into their network, or anyone needing to evaluate or setup and manage a network of Linux based workstations.

Course Content

    Shell Basics Review
  • Basic Shell Scripts
  • First Sample Shell Script
  • The menu script - shmenu
  • The multiple move script - mmv
  • adfone, findname, myvi, mkdir bin, chmod +x

    Processes and Scripts
  • How to execute a script
  • Sourcing
  • Implicit
  • Explicit
  • The command line - how it works
  • command [ -options ] [ arguments ]
  • Every command can return an exit value
  • Normally Zero is OK status, everything else your choice
  • mkpers, sortpers/2, myvi2, mkfone, chmod

    Text Manipulation Tools
  • Understand text processing concepts
  • Regular Expressions, RE's: modes and commands
  • Modifying RE's
  • Select and use the fgrep, grep and egrep utilities
  • Text processing utilities: wc, tee, sort, tr, diff
  • myvi3, bob|doug|sue, sortpers3, RE's

    Advanced Flow Control Statements
  • if then else fi
  • for x in ... do .. done
  • while cond do .. done
  • do .. until cond done
  • case .. esac
  • seq, name{1,2,3,4,5}
  • \command
  • Command Substitution
  • dirname, basename
  • mymenu2
  • mymenu3, mymenu4

    Advanced Text Processing Tools
  • Stream Editor - sed
  • Extended RE Expressions
  • Data analysis - awk
  • Character translation - tr
  • Column Extraction - cut
  • Column Concatenation - join
  • sed, awk

    Advanced Variables and Command Substitution
  • Assigning and unassigning values
  • Counting using variables
  • expr, let, (( ))
  • Variable arrays, typeset, functions
  • Command Substitution
  • Printf, time, $RANDOM, $SECONDS
  • fibexpr, fiblet, fib3, names/2/3
  • expr, let, (()), arrays, time
  • fibonacci series lab

    Your Environment
  • PATH, CDPATH, HOME, PWD, PS1, PS2
  • Local Variables vs exported
  • Shells and sub-shell processes
  • Sourcing shell scripts, ps, jobs
  • Process Mgmt - &, nice, renice
  • Wait, sleep, fuser, ulimit
  • persadd, persfind, persrm, persmenu/2/3,
  • BUmon, BUmenu

    Advanced Input / Output (I/O) Control -
  • Review Redirection, write to files
  • >, >>, 2>, 2>> , <
  • Advanced I/O Management
  • <<, 2&>1 >&2 , exec 3> datafile
  • trap, wait, here doc, pipes
  • Creating your own streams
  • &&, ||, { } ( ), eval, xarg,
  • Grouping Commands using - ( )
  • Running grouped commands inline - { }
  • Redirection with grouped commands
  • departures project
  • mkpers5, mymenu6 adding usage statements and error output

    Tips, Tricks and Scripts
  • Lets look at what others have written.
  • strings, od, expr, pr,
  • packaging your applications for deployment
  • tar balls, self extracting scripts
  • install/uninstall scripts, README, COPYING
  • Real Life: mkhtml, dyndns update, ielreset, ipreset, fixDNS

For More Information

For training inquiries, call 850-308-1376

or email us at eramos@gbsi.com

Course Details

Duration - 3 days
Price - $1895.00 USD


(Discounts may apply. Call for more information.)

Course Actions

Acceletrain Collaborative Learning Environment (formerly know as VILT) places industry certified and expert instructors, peers, learners and multi-media components into a "borderless classroom", and interactive learning environment that can span multiple physical locations. VILT combines the benefits of the traditional brick-and-mortar classroom with innovative learning techniques and the cost savings of internet-based training.