The question is: Which of the following is the MOST appropriate scripting language to use for a logon script for a Linux box? The answer shows A: VBS
The link below goes to a site about Active Directory information.
I believe the answer is wrong and should be Shell since VBS is a Microsoft based script.
Can this answer be verified?
Login and Logout Scripts
Some scripts execute based on the user. For example, a login script runs when a user logs in. The script customizes the user’s environment, maps network drives, and automatically launches a particular application. Logout scripts execute when the user signs off. These scripts might delete temp files or copy the user’s data to a network server.
The Official CompTIA Server+ Study Guide (Exam SK0-005) page 160.
SHELL LANGUAGES
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.
(cont.)
Types of scripts:
Batch file -- a series of commands, usually based on MS-DOS, that execute with limited additional functionality.
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.
PowerShell script -- a script written in the PowerShell language that contains cmdlets (PowerShell commands), variables, constructs, and other components. PowerShell scripts are almost always written for Windows 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.
The Official CompTIA Server+ Study Guide (Exam SK0-005) page 154.
I would go with B. The Answer is incorrect. I would go with Shell or Bash is always used for Linus.
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.
This section is not available anymore. Please use the main Exam Page.SK0-005 Exam Questions
Log in to ExamTopics
Sign in:
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.
Upvoting a comment with a selected answer will also increase the vote count towards that answer by one.
So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.
Slappy1Eye
Highly Voted 3 years, 3 months agodnc1981
Highly Voted 3 years, 1 month agoPongsathorn
Most Recent 7 months, 2 weeks agoPongsathorn
2 years, 5 months agokx7tg4xu
8 months, 3 weeks agoSweety_Certified7
1 year, 3 months agoAbusedInk
2 years, 3 months agoSweety_Certified7
1 year, 3 months agolordguck
2 years, 6 months agolordguck
2 years, 6 months agonixonbii
2 years, 6 months agopaperburn
2 years, 6 months agoszl0144
2 years, 7 months agoRainkoot
2 years, 8 months agoDion79
3 years agoAtemius
3 years, 1 month agoAriel235788
3 years, 1 month agoDion79
3 years, 2 months agomaffo02
3 years, 3 months ago