Skip to content
Justice Tech School

Comments and the Shebang

A line starting with # is a comment. The first line #!/bin/bash tells the system which interpreter runs the file.

Example
#!/bin/bash
# this is a comment
echo "runs"  # trailing comment

Result

runs

Exercise

Start a comment.

 note

Quiz Test

What does #!/bin/bash do?

These free lessons are for learning. Join a full course for projects, mentor feedback and a verified certificate.