2 ways for writing the comment to shell bash.
Example and troubleshooting via Link to details
Using the #
character for comment
In Bash, a comment starts with the hash symbol (#). Anything after # on that line is considered a comment and is ignored by the Bash interpreter
Using the doctype Here Document
for comment multiple line
Bash doesnβt have a specific syntax for multi-line comments like some other languages, but you can use a trick with the : command and a βhere documentβ to achieve the same effect.