Skip to content

Beginner's Guide To Bash Scripting

Welcome to newbtopro.com's Beginner Guide To Bash Scripting. This guide's main purpose is to familiarize users to using bash in Linux.

What is Bash?

Bash is the de-facto Linux shell. A shell is a command interpreter. If you can remember back to the days of MSDOS, you would remember the popular "C:\" prompt. Bash provides an environment similar to MSDOS, although bash is far more robust, flexible and powerful than DOS is (or was).

There are two main ways to use bash: typing in commands and running them from the command prompt and creating a script to help "automate" mundane tasks.

This guide will talk about both of these methods.

Why Learn Bash?

If you are a system administrator or you are an aspiring Linux power user, learning bash is fundemental to your goals. While casual users are fine with manuvering through a friendly point and click environment like GNOME or KDE, you want to be able run commands via a command line interface (CLI) and you want to be able to create simple bash scripts that can be executed to complete more complicated tasks.

Getting Bash

While most Linux-based systems come with bash as the default shell, you may need to download it from the GNU website:

http://www.gnu.org/software/bash/bash.html

So let's get started!

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Allowed HTML tags: <p><b><i><pre><a><img><em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd><h1><h2><h3><h4><h5><h6>
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options