Comments (Shell Scripting)

Comments in Shell Scripting are denoted using a # sign at the beginning of the comment. Everything after the # sign is ignored by the interpreter.

Code Snippet


echo "Hello World"
# This line will be ignored
echo "Goodbye World"
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License