Linux Shell Scripting: A Project-Based Approach to Learning

Course

Online

£ 10 VAT inc.

Description

  • Type

    Course

  • Methodology

    Online

  • Start date

    Different dates available

Have you tried to learn shell scripting on your own, but lack the structure you need to really improve your skills?Are you tired of picking up bits and pieces of information that you can't just seem to put together?Do you learn best by doing?If so, you're going to love this course.One of the biggest complaints I hear from students is that most of the courses they've taken in the past simply provide information without any context and without any idea of how to put that information to use! This course turns that old, frustrating, and outdated way of learning on its head. It's project-based, which means instead of learning bits and pieces of information, you'll write actual shell scripts that you can use in real-world situations. You get the chance to immediately put what you learn to use so that you fully understand and remember it.In this Linux shell scripting course you will learn how to:Name your shell scripts.
Use the proper permissions on your shell scripts.
Create and use variables in your scripts.
Use shell built-in commands and operating system commands.
Make the most out of special variables that are available to you in your scripts.
Make decisions by using if statements and performing several different kinds of tests
Check the exit statuses of commands and why you need to.
Use cryptographic hash functions
Create random data so you can do things like automatically generate strong passwords for user accounts.
Perform the same action or set of actions over a series of data utilizing for loops, while loops, and infinite loops.
Control all types of input and output.
Accept standard input from a user as well as from another program.
Redirect standard output and standard error.
Combine standard output and standard error
Use command pipelining
Perform text and string manipulation.
Process command line arguments
Creating functions and when to do so.
Parsing, analyzing, and reporting on log files, CSV files, and other data.

Facilities

Location

Start date

Online

Start date

Different dates availableEnrolment now open

About this course

Write your very own Linux shell scripts using the concepts you learned in this course

Linux system administrators, developers, programmers, or anyone who wants to learn Linux shell scripting

Questions & Answers

Add your question

Our advisors and other users will be able to reply to you

Who would you like to address this question to?

Fill in your details to get a reply

We will only publish your name and question

Emagister S.L. (data controller) will process your data to carry out promotional activities (via email and/or phone), publish reviews, or manage incidents. You can learn about your rights and manage your preferences in the privacy policy.

Reviews

This centre's achievements

2021

All courses are up to date

The average rating is higher than 3.7

More than 50 reviews in the last 12 months

This centre has featured on Emagister for 6 years

Subjects

  • Mac
  • Operating System
  • Project
  • Red Hat
  • Approach
  • Linux
  • Windows
  • Options
  • Accounts

Course programme

Course Introduction 2 lectures 04:13 Introduction and Course Overview Welcome to this Linux Shell Scripting course! Course Downloads Course Introduction 2 lectures 04:13 Introduction and Course Overview Welcome to this Linux Shell Scripting course! Course Downloads Introduction and Course Overview Welcome to this Linux Shell Scripting course! Introduction and Course Overview Welcome to this Linux Shell Scripting course! Introduction and Course Overview Welcome to this Linux Shell Scripting course! Introduction and Course Overview Welcome to this Linux Shell Scripting course! Welcome to this Linux Shell Scripting course! Welcome to this Linux Shell Scripting course! Course Downloads Course Downloads Course Downloads Course Downloads Creating a Local Linux Shell Scripting Environment 3 lectures 42:15 Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Creating a Local Linux Shell Scripting Environment 3 lectures 42:15 Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Creating a Local Lab Environment Using Vagrant and VirtualBox - Background Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part II – All Users Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Note: This lesson is for everyone, no matter what operating system you are using. (Windows, Mac, CentOS, RHEL) Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Exercise 1 – Walkthrough – Part I – Linux (CentOS/RHEL) Users Only Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. Note: Only use this lesson if you using CentOS or Red Hat Enterprise Linux as your operating system. If you not, proceed to the next lesson. User and Account Creation - Shell Scripting Project 1 6 lectures 02:03:32 Section Introduction Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Special Variables, Pseudocode, Command Substitution, if Statement, Conditionals Concepts covered in this lesson:
  • Pseudocode and pseudocoding.
  • Special variables created by the shell including UID.
  • How to store the output of a command in a variable with command substitution.
  • The if statement.
  • The id command.
  • The whoami command.
  • How to read help and man pages.
  • Command options, order, and conventions.
  • Conditionals, operators, and expressions.
  • The [[, [, and, test shell builtins.
  • The command separator.
  • Exit statuses.
  • Piping output to the less pager.
  • Executing commands as root with the sudo command.
  • Using the su command to switch users.
  • Sanity and “idiot” checking.
Exit Statuses, Return Codes, String Test Conditionals, More Special Variables Concepts covered in this lesson:
  • Exit status conventions.
  • Controlling the exit status of your script with the exit shell builtin.
  • Shell Special Variables.
  • Checking the return code or exit status of a command by examining the contents of the $? special variable.
  • String test conditionals.
  • DRY – Don’t Repeat Yourself
Reading Standard Input, Creating Accounts, Username Conventions, More Quoting Concepts covered in this lesson:
  • Getting input from the person executing the script using the read shell builtin.
  • Introduction to standard input, standard output, and standard error.
  • Creating accounts with the useradd command.
  • Username conventions including length, case, and valid characters.
  • Using the “-” or “-l” options to the su command to simulate a full login when switching users.
  • Controlling the default account creation behaviors by editing the /etc/login.defs file.
  • Using quotes to make a string that contains spaces behave as a single argument or item.
  • Setting passwords with the passwd command interactively and programmatically.
  • Using pipes to chain together multiple commands.
  • Expiring accounts with the passwd command
Exercise 2 - Walkthrough User and Account Creation - Shell Scripting Project 1. 6 lectures 02:03:32 Section Introduction Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Special Variables, Pseudocode, Command Substitution, if Statement, Conditionals Concepts covered in this lesson:
  • Pseudocode and pseudocoding.
  • Special variables created by the shell including UID.
  • How to store the output of a command in a variable with command substitution.
  • The if statement.
  • The id command.
  • The whoami command.
  • How to read help and man pages.
  • Command options, order, and conventions.
  • Conditionals, operators, and expressions.
  • The [[, [, and, test shell builtins.
  • The command separator.
  • Exit statuses.
  • Piping output to the less pager.
  • Executing commands as root with the sudo command.
  • Using the su command to switch users.
  • Sanity and “idiot” checking.
Exit Statuses, Return Codes, String Test Conditionals, More Special Variables Concepts covered in this lesson:
  • Exit status conventions.
  • Controlling the exit status of your script with the exit shell builtin.
  • Shell Special Variables.
  • Checking the return code or exit status of a command by examining the contents of the $? special variable.
  • String test conditionals.
  • DRY – Don’t Repeat Yourself
Reading Standard Input, Creating Accounts, Username Conventions, More Quoting Concepts covered in this lesson:
  • Getting input from the person executing the script using the read shell builtin.
  • Introduction to standard input, standard output, and standard error.
  • Creating accounts with the useradd command.
  • Username conventions including length, case, and valid characters.
  • Using the “-” or “-l” options to the su command to simulate a full login when switching users.
  • Controlling the default account creation behaviors by editing the /etc/login.defs file.
  • Using quotes to make a string that contains spaces behave as a single argument or item.
  • Setting passwords with the passwd command interactively and programmatically.
  • Using pipes to chain together multiple commands.
  • Expiring accounts with the passwd command
Exercise 2 - Walkthrough Section Introduction Section Introduction Section Introduction Section Introduction Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Getting Started with Shell Scripting: Naming, Permissions, Variables, Builtins Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command.
Concepts covered in this lesson:
  • Naming shell scripts and file extensions.
  • Shell script file permissions and the chmod command.
  • Shebangs
  • Comments
  • Variables
  • Quoting – single vs double quotes.
  • Shell Builtins including echo, type, and help.
  • Displaying information to the screen with the echo shell builtin.
  • Getting help on shell builtins by using the help builtin.
  • Getting help on Linux commands by using the man command.
  • The touch command g that contains spaces behave as a single argument or item.
  • Setting passwords with the passwd command interactively and programmatically.
  • Using pipes...

Additional information

A basic understanding of the Linux command line The ability to download large files of about 500 MB from the Internet Access to a computer with a 64-bit processor running either Windows, Mac, or Linux. (You do not need Linux already installed to take this course.)

Linux Shell Scripting: A Project-Based Approach to Learning

£ 10 VAT inc.