Bash is a CLI that accepts and executes user commands in a text-based environment.
A sequence of these commands stored in a file is referred to as a Shell Script, which Bash is capable of reading and performing.
Shell: software program or a command line interface that translates user instructions.
💡 Shell Scripts are interpreted and not compiled
Types of Shell
- Bourne Shell (sh): original Unix shell, simple and widely portable.
- Bourne Again Shell (bash): default Linux shell with advanced scripting and customization.
- Korn Shell (ksh): Combines features of Bourne and C shells, with advanced scripting.
- C Shell (csh): shell with C-like syntax and command history, used for scripting and interactive use.
- Z Shell (zsh): An advanced, customizable shell with powerful features and plugins.
- Fish Shell (fish): user-friendly shell with modern features like syntax highlighting and autosuggestions.
Step 1

- Log in to the system, if it’s a server
- Open your terminal, if it’s your computer
If your prompt is not ending with $
,type-bash
To know shell types your operating system supports?:

You will not be using above commands much, 90% of the time shell is used to navigate through folders and executing programs like ls
, cd
and other common commands.