nerdexam
CompTIA

SK0-005 · Question #113

Which of the following is the MOST appropriate scripting language to use for a logon script for a Linux box?

The correct answer is B. Shell. Scripts are written using a shell language. The shell is the server’s command-line environment. The default shell for Linux is bash. Windows has two shells: cmd.exe and PowerShell, although Microsoft emphasizes PowerShell. As a general rule, a script written for one shell, such…

Server administration

Question

Which of the following is the MOST appropriate scripting language to use for a logon script for a Linux box?

Options

  • AVBS
  • BShell
  • CJava
  • DPowerShell
  • EBatch

How the community answered

(22 responses)
  • A
    9% (2)
  • B
    86% (19)
  • C
    5% (1)

Explanation

Scripts are written using a shell language. The shell is the server’s command-line environment. The default shell for Linux is bash. Windows has two shells: cmd.exe and PowerShell, although Microsoft emphasizes PowerShell. As a general rule, a script written for one shell, such as PowerShell, will not be understood by another shell, such as bash. The system must have the appropriate shell installed to process the script. Bash script -- a script written in bash language that contains commands, variables, constructs, and other components. Bash scripts are almost always written for Linux systems. VBS script -- a script written in the VBScript language. Microsoft has deprecated VBScript, but there have been many VBScript scripts written over the years. VBScript scripts are almost always written for Windows systems.

Topics

#Shell scripting#Linux administration#Logon scripts

Community Discussion

No community discussion yet for this question.

Full SK0-005 Practice