BASH scripting tutorial: Beginner guide for the Bourne Again Shell (BASH) | Part 1

Опубликовано: 20 Апрель 2024
на канале: azinke
127
5

shell, scripting, bash, linux, devops, terminal, automation, tutorial, cybersecurity, system administration

Intro

The Bourne Again Shell (BASH) is one of the available shells for use on Linux operating systems. Bash is quite popular and very practical for automating repetitive and daunting tasks, especially in the realm of software development and deployment.

Bash is present on most (if not all) Linux distributions and is highly useful for automating system administration tasks, DevOps-related tasks (like writing CI/CD pipelines), software development, etc.
Hence, as a software developer, Cloud Engineer, DevOps Engineer, System administrator, Cybersecurity Engineer, or just a Linux User, bash scripting is definitely a skill you would like to add to your toolbox.

On Windows, Git Bash offers a nice alternative to run bash scripts (although limited)

Content

This tutorial is a beginner guide and tries to assume no prior knowledge of bash or Linux, but it would definitely be helpful to have prior experience with Linux. This tutorial is part of a series and tries to slowly cover key topics of Bash.

Note
If the tutorial happens to be too slow, feel free to speed it up to suit a comfortable pace for you.

Playlist
   • BASH Scripting Tutorial: From beginne...  

Useful Links:
https://www.gnu.org/software/bash/man...
https://www.mycompiler.io/
https://gitforwindows.org/

Timestamps
00:00 Introduction to shell scripting
01:28 Requirements
03:15 Prelude to shell scripting
05:40 Echo command
11:50 Printf command
18:31 Comments in BASH
21:36 Define variables
33:10 Delete/Unset variables
36:15 BASH's special variables
48:26 Standard input/output and error
50:40 Input/output redirections
01:01:04 Command pipelines
01:12:56 Executing Commands in subshell
01:18:06 Grouped commands
01:26:00 Arithmetic expressions

Music Licenses

Puppy Love (Sting) by Twin Musicom is licensed under a Creative Commons Attribution 4.0 license. https://creativecommons.org/licenses/...
Artist: http://www.twinmusicom.org/