Soru

Zorluk: KolayBasic Scripting Languages and Constructs

Match each administrative scripting file extension to its primary execution environment or runtime host.

  • .ps1Windows PowerShell
  • .batWindows Command Prompt (cmd.exe)
  • .shLinux/Unix Shell (Bash)
  • .pyPython Interpreter

Cevap

The .ps1 extension matches Windows PowerShell, .bat matches Windows Command Prompt (cmd.exe), .sh matches Linux/Unix Shell (Bash), and .py matches the Python Interpreter.
Each file extension maps directly to its intended execution host: .ps1 targets Windows PowerShell, .bat targets the Windows Command Prompt, .sh targets Unix/Linux shell interpreters like Bash, and .py targets the Python interpreter environment.

Adım Adım Çözüm

1
Identify the primary interpreter or engine associated with each script file extension.
.ps1 associates with Windows PowerShell, .bat associates with Windows Command Prompt (cmd.exe), .sh associates with Unix/Linux Bash shell, and .py associates with the Python interpreter.
File extensions inform the operating system which shell environment or language interpreter must be invoked to parse and execute script commands.

Anahtar Kavram

Scripting Languages and Associated File Extensions
Tahmini Süre:45s
Bu soruyu puanla