Introduction to Bash Programming

LNX-110 (3 Days)
4.6 out of 5 (8 reviews)  

Request Pricing

Bash Shell Scripting Training Overview

Accelebrate's Introduction to Bash Shell Scripting course teaches students to read, write, and debug Bash (Bourne Again Shell) scripts.

Location and Pricing

Most Accelebrate courses are taught as private, customized training for 3 or more attendees at our clients' sites worldwide. In addition, we offer live, private online classes for teams who may be in multiple locations or wish to save on travel costs. Please visit our client list for organizations for whom we have delivered onsite training. To receive a customized proposal and price quote for private on-site or online training, please contact us.

Bash Shell Scripting Training Objectives

All students will:

  • Understand Unix processes and how to control them
  • Learn how to use and script the Bash shell
  • Master core Bash language constructs such as variables, loops, conditionals, and functions
  • Learn advanced Bash programming techniques
  • Debug Bash scripts

Bash Shell Scripting Training Outline

Expand All | Collapse All | Printer-Friendly

Introduction
Unix Processes
  • What is a Process?
  • Process Structure
  • The ps Utility
  • Options to the ps Utility
  • Background Commands (&)
  • Killing Background Processes
  • Redirecting the Standard Error
Getting Started
  • What is a Shell?
  • Running Scripts
  • Specifying the Script’s Interpreter
  • The PATH Environment Variable
  • Sub-shells
Variables
  • Shell Variables
  • The read Command
  • The export Command
  • The Shell Environment
  • Parameter Expansion
  • Command Substitution
The Login Process
  • The Login Process
  • The System Profile Script
  • Your .bash_profile Script
  • The . Command
Conditional Statements
  • The Exit Status of Commands
  • Command Line Examples
  • The test Command
  • The if-then-else Construct
  • The elif Construct
  • case Statements
Loops
  • The for Loop
  • The while Loop
  • break and continue
  • Reading Lines From Files
  • Using Arrays with Loops
Special Variables
  • $$ - PID of Shell
  • Command-Line Arguments
  • $# - Number of Arguments
  • $* - All Arguments
  • The shift Command
  • The set Command
  • Getting Options
Quoting Mechanisms
  • Single vs. Double Quotes
  • What is a Here Document?
  • Using a Here Document
  • Here Document Quoting
  • Ignoring Leading Tabs
Functions
  • Shell Functions
  • Passing Arguments to Functions
  • Returning Values from Functions
  • Function Declarations
Advanced Programming
  • Shell Arithmetic
  • The select Statement
  • Terminal Independence in Scripts
  • The eval Command
Debugging Techniques
  • Using echo
  • Bash Programming
  • Using Standard Error
  • Script Tracing
  • Options for Debugging
  • Conditional Debugging
Conclusion
Request Pricing

Lecture percentage

40%

Lecture/Demo

Lab percentage

60%

Lab

Course Number:

LNX-110

Duration:

3 Days

Prerequisites:

All students should have basic knowledge of Unix or Linux, or have taken Accelebrate's Introduction to Linux for End Users class. Prior programming or scripting experience is helpful but not required.

Training Materials:

All attendees receive comprehensive courseware and a related textbook.

Software Requirements:

  • Windows, Mac, or Linux PCs with at least 8 GB RAM
  • Accelebrate can provide a VirtualBox or VMware environment with all software needed for the class
    • This class can be taught using the Linux distribution of your choice
  • Please contact us for further setup details

Contact Us:

Accelebrate’s training classes are available for private groups of 3 or more people at your site or online anywhere worldwide.

Don't settle for a "one size fits all" public class! Have Accelebrate deliver exactly the training you want, privately at your site or online, for less than the cost of a public class.

For pricing and to learn more, please contact us.

Contact Us Train For Us

Toll-free in US/Canada:
877 849 1850
International:
+1 678 648 3113

Toll-free in US/Canada:
866 566 1228
International:
+1 404 420 2491

925B Peachtree Street, NE
PMB 378
Atlanta, GA 30309-3918
USA

Subscribe to our Newsletter:

Never miss the latest news and information from Accelebrate:

Microsoft Gold Partner

Please see our complete list of
Microsoft Official Courses

Recent Training Locations

Alabama

Huntsville

Montgomery

Birmingham

Alaska

Anchorage

Arizona

Phoenix

Tucson

Arkansas

Fayetteville

Little Rock

California

San Francisco

Oakland

San Jose

Orange County

Los Angeles

Sacramento

San Diego

Colorado

Denver

Boulder

Colorado Springs

Connecticut

Hartford

DC

Washington

Florida

Fort Lauderdale

Miami

Jacksonville

Orlando

Saint Petersburg

Tampa

Georgia

Atlanta

Augusta

Savannah

Idaho

Boise

Illinois

Chicago

Indiana

Indianapolis

Iowa

Ceder Rapids

Des Moines

Kansas

Wichita

Kentucky

Lexington

Louisville

Louisiana

Baton Rouge

New Orleans

Maine

Portland

Maryland

Annapolis

Baltimore

Hagerstown

Frederick

Massachusetts

Springfield

Boston

Cambridge

Michigan

Ann Arbor

Detroit

Grand Rapids

Minnesota

Saint Paul

Minneapolis

Mississippi

Jackson

Missouri

Kansas City

St. Louis

Nebraska

Lincoln

Omaha

Nevada

Reno

Las Vegas

New Jersey

Princeton

New Mexico

Albuquerque

New York

Buffalo

Albany

White Plains

New York City

North Carolina

Charlotte

Durham

Raleigh

Ohio

Canton

Akron

Cincinnati

Cleveland

Columbus

Dayton

Oklahoma

Tulsa

Oklahoma City

Oregon

Portland

Pennsylvania

Pittsburgh

Philadelphia

Rhode Island

Providence

South Carolina

Columbia

Charleston

Spartanburg

Greenville

Tennessee

Memphis

Nashville

Knoxville

Texas

Dallas

El Paso

Houston

San Antonio

Austin

Utah

Salt Lake City

Virginia

Richmond

Alexandria

Arlington

Washington

Tacoma

Seattle

West Virginia

Charleston

Wisconsin

Madison

Milwaukee

Alberta

Edmonton

Calgary

British Columbia

Vancouver

Nova Scotia

Halifax

Ontario

Ottawa

Toronto

Quebec

Montreal

Puerto Rico

San Juan

© 2013-2019 Accelebrate, Inc. All Rights Reserved. All trademarks are owned by their respective owners.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.