A system administrator is organizing administrative scripts used across various operating systems in the enterprise. Match each script file extension on the left with its corresponding native execution environment or interpreter on the right.
- .ps1Windows PowerShell
- .shLinux / Unix Shell (Bash)
- .vbsWindows Script Host (VBScript)
- .batWindows Command Prompt (cmd.exe)
Answer
.ps1 matches Windows PowerShell; .sh matches Linux / Unix Shell (Bash); .vbs matches Windows Script Host (VBScript); .bat matches Windows Command Prompt (cmd.exe).
Each script extension maps directly to its operating system runtime environment: .ps1 runs in Windows PowerShell, .sh runs in Unix/Linux shell interpreters such as Bash, .vbs runs via Windows Script Host, and .bat runs natively inside the Windows Command Prompt.
Step-by-Step Solution
Key Concept
Basic Scripting Languages and File Extensions