A system administrator is creating an automated maintenance script to run natively within the default command-line terminal environment of a macOS workstation. Which file extension should the administrator assign to this script?
- .shAnswer
- B.bat
- C.ps1
- D.vbs
Answer
The `.sh` file extension should be used for native shell scripts executed in a macOS terminal environment.
The `.sh` file extension is standard for shell scripts created to execute in Unix-like terminal environments, including macOS (which uses Zsh and Bash) and Linux.
Step-by-Step Solution
Key Concept
Scripting Language File Extensions and Execution Environments