Bash Programming

From Juneday education
Jump to: navigation, search

About this book

This book provides a deeper look at the command line interface using a terminal window and the bash shell. It is suitable as for people who want to learn more about the bash shell, shell scripts and the POSIX/UNIX environment, working in the command line.

The book's pages are prefixed "MoreBash:" for historical reasons. Ideally, they should be moved (leaving a redirect behind) to pages having the prefix "BashProgramming:" instead.

Trouble shooting

If you run into trouble while running the various scripts in this book, you can look at our FAQ for some common problems and their solutions.

Your environment

Your environment for the Programming with Java programming book consists of these parts:

  • Additional software (see below)

Additional software for bash-intro

Automatic installation of additional software

You will also need some additional software in this course which you can install in any of the two ways using a terminal:

Download script and execute
  1. Download our boot strap script for this course jd-bash-intro.sh:
    curl https://raw.githubusercontent.com/progund/utils/master/bin/jd-bash-intro.sh -o jd-bash-intro.sh
  2. make the script executable
    chmod a+x jd-bash-intro.sh
  3. and execute it (with verification - recommended)
    ./jd-bash-intro.sh --verify to skip verification, simply enter ./jd-bash-intro.sh
Execute from web

curl https://raw.githubusercontent.com/progund/utils/master/bin/jd-bash-intro.sh | bash

Manual installation of additional software

The script above uses files containing a list of packages to install. Here are links to the packages file for each platform we support. Install the packages in these files:

Chapters

All pages should have working "previous | next" links. Please report if they don't.

See also: