Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Bash Scripting Made Easy: Quick Start for Beginners
Rating: 4.4 out of 5(3 ratings)
378 students

Bash Scripting Made Easy: Quick Start for Beginners

A Beginner-Friendly Guide to Bash for Linux Users with Basic Terminal Knowledge
Created byTechno King
Last updated 1/2026
English
English [Auto],

What you'll learn

  • After having the course you will feel confident writing scripts and will have basic knowledge of Bash scripting
  • This tutorial discusses the basic functionalities of Bash Script
  • You will be able to create bash scripts and be ready to move on to the next level
  • Write bash scripts independently

Course content

1 section62 lectures1h 16m total length
  • Bash Scripting Made Easy: Introduction1:19
  • Important Update0:10
  • Bash Scripting Made Easy: Code Editor1:28
  • Code Editor Issue0:08
  • Bash Scripting Made Easy: Bash Introduction and File Creation - Part 11:47

    Learn how to set up a bash environment in replit, create an account, start a bash script named main.sh, and write and run your first script in the browser.

  • Bash Scripting Made Easy: Bash Introduction and File Creation - Part 22:40
  • Bash Scripting Made Easy: Basic Commands Part 10:32
  • Bash Scripting Made Easy: Basic Commands Part 20:43

    Learn how to use the ls command to list files and directories, view the contents of the current directory, and understand the default behavior that omits hidden files.

  • Bash Scripting Made Easy: Basic Commands Part 30:39

    Learn how to list all files in the current directory, including hidden ones, using ls -a, and view detailed information with ls -l, including permissions, size, and date.

  • Bash Scripting Made Easy: Basic Commands Part 40:38

    Learn how to create directories with the mkdir command and verify them with ls in Bash. Observe practical examples that demonstrate managing folders in the file system.

  • Bash Scripting Made Easy: Basic Commands Part 50:55

    Master the cd command to navigate the directory tree, use pwd to print the current directory, and ls to list files as you move into the test directory.

  • Bash Scripting Made Easy: Basic Commands Part 61:01

    learn how the touch command creates empty files and updates timestamps, with a hands-on example creating hello.txt and verifying it with ls -l to show size zero.

  • Bash Scripting Made Easy: Basic Commands Part 71:57

    Master the cp command to copy files in bash, using cd and ls -l to navigate and verify that sample.txt is copied into the test folder.

  • Bash Scripting Made Easy: Basic Commands Part 81:56

    Create directories with mkdir, list contents with ls -l, cd into test1 to verify, and copy the test directory into test1 using the copy command with the -r option.

  • Bash Scripting Made Easy: Basic Commands Part 92:06

    Learn how to move files and directories with the mv command, including verifying location with pwd and ls, and navigating with cd to move hello.txt into the test folder.

  • Bash Scripting Made Easy: Basic Commands Part 102:10

    Master the rm command to delete files and directories, including interactive prompts with -i, and verify deletions using ls -l in a practical test folder context.

  • Bash Scripting Made Easy: Special Characters Part 11:05

    Learn how bash uses special characters, starting with the hash character as a comment marker that prevents execution and how echo prints strings while commented lines stay silent.

  • Bash Scripting Made Easy: Special Characters Part 21:00

    Master the command separator in bash by running two commands on one line with a semicolon, producing separate outputs like echo hello there and echo bye.

  • Bash Scripting Made Easy: Special Characters Part 31:39

    Use the redirect special character to send command output to a file, creating a new file if needed and overwriting existing content; see an echo example with temp.txt in Replit.

  • Bash Scripting Made Easy: Special Characters Part 41:06

    Learn bash redirection by sending command output and errors to files using redirect symbols, including redirecting a command not found error to temp.txt via ampersand, and silencing output with /dev/null.

  • Bash Scripting Made Easy: Special Characters Part 51:18

    Learn how to append the output of an echo command to temp.txt using the append special character in Bash, with practical examples.

  • Bash Scripting Made Easy: Special Characters Part 60:40

    Learn how to redirect input from a file in bash using the input redirect character, demonstrated with cat reading from temp.txt.

  • Bash Scripting Made Easy: Special Characters Part 71:19

    Master tilde usage to reach the home directory and combine it with paths in bash scripts, using commands like cd tilde, pwd, and ls -l to verify locations.

  • Bash Scripting Made Easy: Variables Part 11:33

    Explore bash variables in an untyped paradigm, assign values without declaring data types, and print them with echo to see integers and strings in action.

  • Bash Scripting Made Easy: Variables Part 22:47

    Learn to use command line arguments in bash scripts to make them dynamic, reading inputs at runtime and printing the script name, arguments, and total argument count with echo.

  • Bash Scripting Made Easy: Variables Part 30:54

    Assign the value of one variable to another by defining str and setting str1 to $str, then print with echo $str1 to show hello.

  • Bash Scripting Made Easy: Variables Part 40:54

    Experiment with bash variables to see case sensitivity in action: uppercase str1 prints nothing when undeclared, while lowercase str1 prints hello after declaring and assigning its value.

  • Bash Scripting Made Easy: Variables Part 50:33

    Learn to correctly define bash variables by placing no spaces around the equal sign to avoid errors, then run the script to see hello printed and confirm it executed successfully.

  • Bash Scripting Made Easy: Variables Part 60:51

    learn how to read user input with the read command, store it in a variable, and print the variable with echo in a bash script.

  • Bash Scripting Made Easy: Decision Making Part 12:43

    Explore bash decision making with if conditions and nested if statements. Learn to read input with read -p, compare the value to 10, and print value is same when true.

  • Bash Scripting Made Easy: Decision Making Part 21:00

    Master how to use a command separator to run two commands on one line, using a semicolon to separate and display the first and second command outputs.

  • Bash Scripting Made Easy: Decision Making Part 31:39

    Master redirecting command output to a file using the redirect character, creating the file if absent and overwriting it when it exists, illustrated with echo writing to temp.txt.

  • Bash Scripting Made Easy: Decision Making Part 41:06

    learn how to redirect output and errors in bash to files, using ampersand with redirect to temp.txt, handle not found errors, and suppress output by sending it to /dev/null.

  • Bash Scripting Made Easy: Decision Making Part 51:18

    Append the output of a command to a file using the append redirection operator, avoiding overwriting existing content. See practical examples with echo and temp.txt to verify the results.

  • Bash Scripting Made Easy: Decision Making Part 62:29

    Explore nested if-else statements for decision making in bash scripting. The lecture demonstrates testing conditions with values 10 and 11 and handling unmatched cases with an else clause.

  • Bash Scripting Made Easy: Strings Part 10:47

    Explore bash strings by creating and assigning strings to variables, measuring length, concatenating, and printing with echo.

  • Bash Scripting Made Easy: Strings Part 21:57

    Learn to check for empty strings in bash by using read -p and the -z test, and print 'string is empty' or 'string is not empty'.

  • Bash Scripting Made Easy: Strings Part 31:55

    Learn to measure string length in bash by using the hash symbol with a variable, print the length, and verify it matches the character count including spaces.

  • Bash Scripting Made Easy: Strings Part 41:44

    Learn to extract a substring from a string in bash, using a variable and the ${var:0:10} syntax, and print the result with echo.

  • Bash Scripting Made Easy: Strings Part 50:44

    Master bash string manipulation by extracting substrings after a specified character or space, removing unwanted parts, and counting characters to extract text after a fixed position.

  • Bash Scripting Made Easy: Strings Part 60:41

    Learn to extract a single character from a string in bash by using a 0-based index and length 1; the example prints the character at index 8, t.

  • Bash Scripting Made Easy: Operators Part 10:38

    Explore arithmetic, assignment, relational, and logical operators, and how symbols manipulate operands in bash scripting, guiding the compiler or interpreter to perform mathematical or logical tasks, starting with arithmetic operators.

  • Bash Scripting Made Easy: Operators Part 21:08

    Demonstrates arithmetic operations in Bash, including addition, subtraction, multiplication, division, exponential, and modulus, using variables and double brackets, then prints the sum (8) to the console.

  • Bash Scripting Made Easy: Operators Part 30:34

    Demonstrate subtraction and multiplication in Bash scripting by using minus and asterisk to compute 5-3 and 5 multiplied by 3, then print 2 and 15 on the console.

  • Bash Scripting Made Easy: Operators Part 41:11

    Learn to use assignment operators in bash, focusing on the addition assignment operator. Observe how num=5 followed by += 5 updates the variable to 10 and prints it with echo.

  • Bash Scripting Made Easy: Operators Part 50:46

    Explore the multiplication and division assignment operators in bash by converting plus to an asterisk and running a script to print 25 and 1 on the console.

  • Bash Scripting Made Easy: Operators Part 61:28

    Learn bash relational operators, including equal, not equal, greater than, greater or equal, less than, and less or equal, and apply them in an if condition.

  • Bash Scripting Made Easy: Operators Part 70:53

    Learn how to use the less than relational operator in bash scripting, testing numbers like 5 and 1 against 3 and printing whether the value is smaller or greater.

  • Bash Scripting Made Easy: Operators Part 82:09

    Explore bash logical operators, including and, or, and not, and learn to build complex conditions with double brackets using if-else and echo to print outcomes.

  • Bash Scripting Made Easy: Loops Part 10:50

    Learn to use for and while loops in bash to iterate over strings or numbers in an array, assign values to a variable, and repeat commands from do to done.

  • Bash Scripting Made Easy: Loops Part 21:10

    Learn how to use the bash for loop with the for keyword, a loop variable i, and a list 1 to 5, printing i between do and done.

  • Bash Scripting Made Easy: Loops Part 31:10

    Explore how to use bash for loops to read a range, including start, stop, and increment, with a default increment printing i from 1 to 10.

  • Bash Scripting Made Easy: Loops Part 40:57

    Learn to control Bash loop increments using a range with a step value via double dot. See numbers 1, 3, 5, 7, 9 printed as the variable increments by 2.

  • Bash Scripting Made Easy: Loops Part 50:44

    explain the bash while loop by checking a condition with double brackets, looping until it remains true, and incrementing a counter using while, do, and done with the assignment operator.

  • Bash Scripting Made Easy: Loops Part 61:36

    Explore how to use a while loop in Bash, declaring num and num1, and printing increasing values from 2 to 7 using the addition assignment operator.

  • Bash Scripting Made Easy: Arrays Part 10:58

    Discover how to define and initialize Bash arrays, supporting strings and numbers, using brackets and spaces, by assigning a list to a variable to create the first array.

  • Bash Scripting Made Easy: Arrays Part 21:00

    Learn to access bash array elements with square brackets and the echo command, retrieving values by index starting at 0, demonstrated by printing element at index 1, which is 2.

  • Bash Scripting Made Easy: Arrays Part 30:38

    Learn how Bash expands arrays with * and @, printing all elements using echo and observing console output.

  • Bash Scripting Made Easy: Arrays Part 41:19

    Learn how to loop through bash arrays with a for loop, assign each item to a variable, and print each value to the console.

  • Bash Scripting Made Easy: Functions Part 10:52

    Define bash functions to organize scripts into reusable parts, enabling repeated use for tasks, with two styles: function name with parentheses or the function keyword.

  • Bash Scripting Made Easy: Functions Part 21:13

    Learn how to define bash functions using two methods: name() { ... } with parentheses, and the function keyword without parentheses, echoing outputs like hello there and bye.

  • Bash Scripting Made Easy: Functions Part 31:17

    Learn how to define a Bash function, pass arguments, and print parameters using $1, $2, and $3, illustrating parameter handling and function invocation.

Requirements

  • No programming experience needed. You will learn everything you need to know
  • No installation required. We can work of any machine having browser and internet connection

Description

Bash is a command processor that typically runs in a text-based environment where users type commands to perform different actions. Bash can also read and execute commands from a file, known as a shell script. Like most Unix shells, Bash supports features such as filename globbing (wildcard matching), piping, here documents, command substitution, variables, and control structures for conditional execution and iteration. Many of its keywords, syntax, and core features are derived from the traditional sh shell.


This course provides learners with the fundamental knowledge and skills required to use the Bash shell for system administration and basic automation. Students will learn how to identify, understand, and build the commands needed to perform specific tasks across different systems.


In addition, the course introduces basic Bash scripting, enabling learners to create scripts for automating repetitive and time-consuming tasks. The focus is on understanding how Bash works and how to apply it practically, rather than advanced or complex scripting concepts.


This course is meant for the beginner who wants to know about Bash Shell and some basic scripting with BASH.


In today’s technology-driven environment, automation skills are increasingly important. Learning Bash helps you keep pace with modern systems and workflows by reducing manual effort and improving efficiency.


I am a professional instructor who has helped thousands of students learn Bash. This course is structured to be clear, practical, and easy to follow, helping you gain confidence as you begin working with Bash and shell scripting.


Enroll now and start building your Bash skills to become more efficient in system administration and automation using the Bash shell.

Who this course is for:

  • Beginner developers curious about the Bash Shell
  • Anyone who wants to learn scripting for automation
  • Anyone responsible for IT in an organization