In this course you learn how to do Linux bash scripting. Specifically, data manipulation utilities and shell syntax for synthesizing command pipelines are emphasized. Bourne shell, Bash shell and Korn shell programming techniques are introduced so students will be able to read and modify existing shell scripts as well as create their own.
Learning Objectives
You will learn:
- Communicating over the network
- Using telnet commands
- Remote access with password authentication
- 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
- Writing functions
- Working with UNIX I/O streams
Topics and Subtopics
The following outline is covered in this course:
1- Basic User Commands
- Logging In and Logging Out
- Command Line Editing
- Navigating the File System
- Viewing and Copying Files
- Controlling the Terminal
- Sending and Receiving Mail
2- Introduction to Shells and Fish Bash Scripting
- Shell Functions
- I/O Redirection and Pipes
- Command Separation and Grouping
- Background Execution
- Filename Expansion
- Shell Variables
- Command Substitution
- Quoting and Escaping Metacharacters
- Fish Shell Features
- Command Execution
- Startup Files
3- Shell Programming
- Shell Script Features and Capabilities
- Creating and Running a Script
- Working With Variables
- Environment Variables
- Working With Data Types
- Formatting
- Base Conversion
- Setting Special Attributes
- Input/Output Techniques
- Conditional Constructs
- if/then
- else/elif
- Looping Constructs
- for, while, until
- Math Operators
4- Advanced Shell Features
- Manipulating Strings
- Writing and Calling Functions
- Controlling Process Priorities
- Interpreting Command Line Arguments
- Making Scripts Interactive
- Special Shell Variables
- Advanced I/O with Streams
- Improving Performance of Scripts
5- Text Manipulation Utilities
- Editing a File from a Script
- Scripting with ed or sed
- UNIX and Linux Utilities to Manipulate Files
- Regular Expressions
- grep and egrep
- The Stream Editor sed
- Sorting in Scripts
- Generating Reports with awk
- Splitting Large Files
- Counting Words, Lines, and Characters
- Transforming File Contents
- Extracting Text Strings
6- Networking Commands
- UNIX Network Applications
- Remote Execution Commands
- Remote Activity Reporting
- Communicating with Remote Users
- Internet Applications
- ftp, tftp, telnet
- Remote Access Control Mechanisms
- Using the Secure Shell(ssh)
Project 1- Bash Scripting with 12 Examples
- Using While Loop
- Using For Loop
- Get User Input
- Using if statement
- Using if statement with AND logic
- Using if statement with OR logic
- Using else if statement
- Using Case Statement
- Create Function
- Create function with Parameters
- Pass Return Value from Function
- Get Parse Current Date
Project 2- Grep Command with 10 Examples
- Ex 1: Find a Single Charterer in a Text File
- Ex 2: Find a Single string in a Text File
- Ex 3: Find a Single Special
- Charterer in a Text File
- Ex 4: Matching Lines Beginning with Certain Text
- Ex 5: Matching Lines Ending with Certain Text
- Ex 6: Matching Lines of a Certain Length
- Ex 7: Matching Lines That Contain Any of Some Regexps
- Ex 8: Matching Lines That Contain All of Some Regexps
- Ex 9: Matching Lines That Only Contain Certain Characters
- Ex 10: Finding Phrases
- Regardless of Spacing
Homework- Bash Scripting Q/A
Requirements
Good knowledge of Linux commands is required.
Related Courses
Complete Training Bundle
If you are serious about becoming a pro system admin or cloud specialist, you should enroll in our 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 Coding Bootcamps school 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:
- Private tutoring sessions for system administrator management- Weekly and monthly plans
- Linux and bash scripting- Private tutoring sessions
Linux Live Classes
- Essential Linux Commands in 6 Hours by Hands-on Exercises
- Linux Bash & Shell Scripts in 6 Hour by Hands-on Exercises
Red Hat Certifications
- Red Hat Certified System Administrator Live Training Class
- Live training class for obtaining Red Hat Certified Engineer certification
What Is Next?
After finishing this course, you can enroll in any of following classes:
- Advance Linux Bash Scripting
- Learn SQL Programming by Examples
- Learn PHP Programming
- Linux Management for System Admins
- Web Development with PHP & MySQL
Recommended Free Courses
If you are new to the IT or programming, we suggest the following free courses:
Course Curriculum
- Lecture PDF File for Session 2
- a- I/O Redirection and Pipes (13:46)
- b- Command Separation , Background Execution, and Filename Expansion (4:23)
- c- Shell Variables, Command Substitution, Quoting and Escaping Metacharacters (10:23)
- d- Fish shell Features (2:53)
- e- Command Execution, Startup Files & Customizing the User Environment (2:37)
- PDF File for Project 1
- 1- Using While Loop (7:12)
- 2- Using For Loop (6:00)
- 3- Get User Input (2:31)
- 4- Using if statement (4:23)
- 5- Using if statement with AND logic (7:39)
- 6- Using if statement with OR logic (5:09)
- 7- Using else if statement (6:32)
- 8- Using Case Statement (6:22)
- 9- Create Function (3:05)
- 10- Create function with Parameters (4:45)
- 11- Pass Return Value from Function (5:46)
- 12- Get Parse Current Date (9:22)
- PDF File for Project 2
- Ex 1-3: Find a Single Charterer, String, & Special Character in a Text File (5:41)
- Ex 4 and 5: Matching Lines Beginning or Ending with Certain Text (6:16)
- Ex 6: Matching Lines of a Certain Length (4:23)
- Ex 7: Matching Lines That Contain Any of Some Regexps (1:57)
- Ex 8: Matching Lines That Contain All of Some Regexps (3:20)
- Ex 9: Matching Lines That Only Contain Certain Characters (2:40)
- Ex 10: Finding Phrases Regardless of Spacing (5:33)
Kevin Downs- Red Hat Certified System Administrator
Kevin is Red Hat Certified System Administrator or RHCSA. At his current job, he is in charge of administering hundreds of servers running on different Linux distributions.
He works as Unix Systems Administrator supporting several large enterprise level clients with IBM across multiple environments.
As RHCSA, he is adept at Linux programming for managing both personal and server Linux systems.
He is pursuing Red Hat Certified System Engineer and DevOps.