Operational Procedures
A technician writes a script for the Bash shell on a Linux server. Which file extension is standard for it?
Show the answer
Correct answerD. .sh
AWhy not this: This is a VBScript file for Windows Script Host, not a Linux shell.
BWhy not this: This is a Windows batch file extension for Command Prompt commands, not Bash.
CWhy not this: This is a PowerShell script extension, which uses cmdlets and is Windows-oriented.
DWhy this is right: This is the standard extension for shell scripts run by Bash on Linux and macOS.
The .sh extension marks a shell script, which Linux and macOS shells such as Bash run. A .bat file holds Command Prompt commands and is designed for Windows, so it is not the standard type for a Bash script.