EN
Bash - comments
0
points
In this article, we would like to show you how to create comments in Bash.
Quick solution:
#!/bin/bash
# Single-line comment in bash
echo "Example message..." # Inline comment in bash
Explanation
In order to create comments in Bash, we need to use the hash character (#). Every word after the # will be ignored by the Bash shell.
Note:
Bash comments can only be single-line comments.