Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Learn Bash Shell in Linux for Beginners
Rating: 4.5 out of 5(277 ratings)
3,778 students

Learn Bash Shell in Linux for Beginners

This course teaches beginning Linux shell scripting in the Bash shell
Last updated 4/2016
English
English [Auto],

What you'll learn

  • Learn Using Scripts to Automate Tasks
  • Control the Execution of the Script

Course content

2 sections13 lectures1h 28m total length
  • Introduction4:09

    Introduces the bash shell scripting language for beginners, covering hello world, executable scripts, current shell execution, variables, aliases, and bash rc basics.

  • Writing and Running a Hello World Script6:26

    Learn to write and run a hello world script in bash by adding a shebang and making it executable with 755, then run it using ./hello.sh.

  • Removing the ./ Resolution6:15

    Move the script to /usr/local/bin to make it accessible from PATH using sudo if permissions block the move. Then run it as hello or hello.sh without dot slash.

  • Running Scripts in the Current Open Shell7:37

    Create a bash shell script to switch to a frequent directory, run it in the current shell with dot, set executable permissions, and use an alias for easy access.

  • Intro to Variables8:17

    Learn how to declare and unset variables in the Bash shell, handle empty variables, assign strings or numbers, and perform arithmetic inside double parentheses.

  • Saving Shell State in .bashrc5:34

    Learn how to save shell state by configuring bashrc, creating aliases, and organizing with a dot bash aliases file so your commands persist across sessions.

Requirements

  • Any Linux Based Operating System
  • Knowledge of any Command Line is Helpful, but Not Necessary

Description

This course teaches beginning Linux shell scripting in the Bash shell. The emphasis in the course is on the scripting language itself: using scripts to automate common tasks, and the logic within the language used to control the execution of the script.

The course is in two units, and contains over an hour of demos and discussion. This is the second part of the Linux course series from EDUMobile Academy.


In the first unit of the course, we’ll explore the shell environment itself, and cover such topics as:

- a simple hello world script
- making scripts executable
- why we run a script with a ./ and how to remove it
- running a script to act upon the currently running shell
- variables and how to use them
- the .bashrc file

The second unit covers scripting commands, particularly control flow. Topics include:

- exit status of shell commands
- the if statement and tests
- handling command line arguments
- random numbers
- loops (while, until, and for)
- the case statement

I hope you join me for this beginner’s guide to the bash scripting language!

Who this course is for:

  • Any Fresher Who Wants to Learn Basic Linux Shell Scripting in Bash Shell
  • Expert who Needs to Brush up Basic Bash Shell Skills