Soru

Zorluk: OrtaBasic Scripting Languages and Constructs

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)

Cevap

.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.

Adım Adım Çözüm

1
Identify the .ps1 script extension
Associates with Windows PowerShell
PowerShell scripts use the .ps1 extension for task automation and configuration management in Windows environments.
2
Identify the .sh script extension
Associates with Linux / Unix Shell (Bash)
Shell scripts executed in Unix-like environments customarily use the .sh file extension.
3
Identify the .vbs script extension
Associates with Windows Script Host (VBScript)
VBScript files end in .vbs and run within the Windows Script Host environment using CScript or WScript.
4
Identify the .bat script extension
Associates with Windows Command Prompt (cmd.exe)
Batch files use the .bat extension and execute commands sequentially inside the traditional Windows Command Prompt.

Anahtar Kavram

Basic Scripting Languages and File Extensions
Bu soruyu puanla