SF‐ week 10‐ Lab Journal ‐ Scripting #2 - Wudong-champlain/Spring2024 GitHub Wiki

  1. What extension does a bash script use and what extension does a python script use? A bash script typically uses the .sh extension, while a Python script uses the .py extension.
  2. What does a bash script start with? A bash script typically starts with a #! , which specifies the path to the shell that will execute the script. For example, #!/bin/bash indicates that the script should be executed by the Bash shell.
  3. In python, words after the # symbols are used for what? In Python, words after the # symbols are used for comments.
  4. Why is it necessary to include python3 before the script name when running a python script but not a bash script? It is necessary to include python3 before the script name when running a Python script because it explicitly specifies which version of Python should be used to execute the script.