/Bash-Practice

Notes from "Bash-Beginners-Guide" (https://tldp.org/LDP/Bash-Beginners-Guide/Bash-Beginners-Guide.pdf)

Primary LanguageShell

Bash-Practice

Notes from Bash-Beginners-Guide

The UNIX shell program interprets user commands, which are either directly entered by the user, or which can be read from a file called the shell script or shell program.

Shell types:

  • sh or Bourne Shell: This is the basic shell.
  • bash or Bourne Again shell: the standard GNU shell, intuitive and flexible. On Linux, bash is the standard shell for common users. bash is compatible with the sh
  • csh or C shell: the syntax of this shell resembles that of C programming language.
  • tcsh or TENEX C shell: a superset of the common C shell. (Also called Turbo C shell)
  • ksh or the Korn shell: a superset of the Bourne shell.

Contents

  • Chapter 1

    scripts/mysystem.sh

  • Chapter 2

    scripts/script1.sh, commented-script1.sh, script2-5.sh

  • Chapter 3

    scripts/positional.sh, Exercise3-8-Q9.sh

  • Chapter 4

    scripts/

  • Chapter 5

    scripts/example5-2, script.sed, test, txt2html.sh, ex55-1, ex55-1-del, ex55-2, ex55-2-del

Some terms that are often misused:

  • terminal
  • bash
  • console
  • command line
  • prompt(PS1)

Video1 and Video2

Bash Built-ins df command