Bash Comments – Single & Multiple Line Comments

Bash Comments

Bash Comments – In this Bash Tutorial, we shall learn how to provide single line and multiple line comments in a Bash Script file.

Comments are strings that help in the readability of a program. Comments are ignored while executing the commands in a Bash Script file.

Bash provides only single line comments. However, multiple line comments are also feasible with a little hack.

Example for Bash Single Line Comments

Following is an example Bash Script that has single line comments in between commands.


Example for Bash multiple line comments

Following is an example for demonstrating multiple line comments in Bash Scripting.