Last Update: Dec 19, 2024

Intermediate Level Bash Script For Linux

  • Free

About Course

Elevate your scripting skills with our course on Bash script for Linux. This advanced program delves deeper into the intricacies of bash scripting, enabling you to write more complex and efficient scripts. You will also explore Bash scripting vs shell scripting, understanding the differences and when to use each approach effectively in your programming tasks.

Create Bash Script Linux

Curious about how to create a bash script in Linux? Our course provides step-by-step instructions to help you create bash scripts Linux efficiently. You’ll learn about variables, conditionals, loops, and functions, empowering you to automate tasks and streamline processes in your Linux environment. By the end of this course, you’ll be capable of developing robust bash scripts that enhance your productivity.

 

Intermediate Level Bash Script Learning Objectives

In this hands-on self-paced course you will learn:

  • How to write and run shell scripts
  • Using conditional constructs to control script execution
  • Manipulating strings
  • Command-line processing
  • Using regular expressions
  • String processing utilities: sed,grep and awk
  • Counting words, lines and characters
  • Working with compression utilities
  • Writing functions
  • Managing processes
  • Using the ksh and bash commands
  • Working with UNIX I/O streams

 

Intermediate Level Bash Script Topics and Subtopics

The following outline is covered in this course.

1-Introduction

1- Korn and Bash Shells in Linux

2- Linux Comments, Command on Multiple Lines & Special Characters

3- Pattern Matching & Complex Pattern in Linux

2- Process Management

1- Process Priority and Background Jobs in Linux

2- Linux Signals, Traps, DEBUG and EXIT

3- ksh and bash Co-Processing in Linux

4- Pausing, Time and Date, Scheduling Executions & Aliases

3-Writing Scripts

1- Shell Programming Language and Reserved Words

2- Write & Run Scripts: Debugging, typeset, Constants & Predefined Variables

3- echo, print, and printf & Accepting Input with ksh, and bash

4- Arithmetic & Bitwise Operators and Floating-Point Numbers

5- Grouping Operations & Binary, Octal, and Hexadecimal

6- Indexed Arrays in Linux

7- Quoting and Command Substitution in Linux

4-Advanced Customization of the Shell Environment

1- Command Line Options & Set Command in Shell

2- Parents and Children and Inheritance & Exporting

3- Dot and Startup Scripts in Linux Shell

4- Environment Variables & Setting Prompts in ksh and bash

5-Programming Logic

1- Linux Conditional Expressions & Testing Strings

2- Testing Options and Numeric Conditions in Linux

3- Linux Testing Completion Status

4- The case Statement in Linux Shell

5- Loops: while and until in Linux

6- The for Loop in Linux

7- select Statement, Redirection and Loops

6-Advanced I/O with Streams

1- Redirection Review, Operators & Additional Streams

2- Inheriting and Duplicating Streams in Linux

3- Caution with exec and here document in Linux

7-String Manipulation

1- Linux String Comparison and Relations

2- Concatenation & Substring Manipulations in Linux

3- Wildcards and Pattern Matching in Linux

8- Process Ownership, suid and sgid, Restricted Shells & newgrp Command

9- Linux Positional Parameters and Analyzing Switches with Getopts & OPTARG

10- Timing Commands and Scripts, System Resources, Limits & Portability

11- ed or sed, Regular Expressions, grep, Stream Editor sed, Reports with awk

12- Examining and Comparing Files and more

13- Writing Functions, Returning Values & Local and Global Variables

14- Pipelines, Command Lists, And and Or Lists & I/O Redirection

Project 1- Find Missing Files in a Directory

Project 2- Directory Traversal via Filesystem Tree

Project 3-

1. Bash Scripting Example- Line Count Script

2. Running loop in background in Linux

3. Testing whether a string is null in Linux

4: Picking a random card from a deck in Linux

5: Listing all users on system in Linux

6: Breaking out of multiple loop levels in Linux


 

Requirements

Good knowledge of Linux commands and Linux Bash Scripting.

Related Courses

Complete Training Bundle

If you are serious about becoming a pro system admin or cloud specialist, you should enroll in Coding Bootcamps school System Admin- Complete Training Bundle. This bundle covers all essential and practical topics related to system administration. For $290 monthly subscription, you can have access to 300+ hours of hands-on project-based training covering all courses related to system administration like Linux, SQL, No-SQL, or Graph database development, bash scripting, Docker, Kubernetes and many more. Click here to learn more.

Private Tutoring Classes

To take skills you learn from this course to the next level, taking the following tutoring classes are highly recommended. It is also a great opportunity to discuss your questions and problems related to this course with an experienced instructor:

Linux Live Classes

Red Hat Certifications

What Is Next?

After finishing this course, you can enroll in any of following classes:

 

What Will You Learn?

  • Learn new things
  • Revamp your career
  • Target IT jobs
  • Sharpen your skills
Free
Free access this course

Requirements

  • A laptop or PC
  • Good Internet
  • Routine Study
  • Regular Join Class