exam questions

Exam SK0-005 All Questions

View all questions & answers for the SK0-005 exam

Exam SK0-005 topic 1 question 19 discussion

Actual exam question from CompTIA's SK0-005
Question #: 19
Topic #: 1
[All SK0-005 Questions]

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

  • A. VBS
  • B. Shell
  • C. Java
  • D. PowerShell
  • E. Batch
Show Suggested Answer Hide Answer
Suggested Answer: B 🗳️

Comments

Chosen Answer:
This is a voting comment (?). It is better to Upvote an existing comment if you don't have anything to add.
Switch to a voting comment New
Slappy1Eye
Highly Voted 3 years, 3 months ago
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?
upvoted 11 times
...
dnc1981
Highly Voted 3 years, 1 month ago
Shell is definitely the correct answer
upvoted 8 times
...
Pongsathorn
Most Recent 7 months, 2 weeks ago
Selected Answer: B
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.
upvoted 2 times
Pongsathorn
2 years, 5 months ago
(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.
upvoted 2 times
...
...
kx7tg4xu
8 months, 3 weeks ago
Selected Answer: B
B is the correct answer to this question
upvoted 1 times
...
Sweety_Certified7
1 year, 3 months ago
Selected Answer: B
Shell script can be used for logon script for Linux
upvoted 1 times
...
AbusedInk
2 years, 3 months ago
A. Shell is not a scripting language.
upvoted 2 times
Sweety_Certified7
1 year, 3 months ago
Shell script can be used for logon script for Linux
upvoted 1 times
...
...
lordguck
2 years, 6 months ago
It's B. D is more DOS/Windows like (.bat/.cmd)
upvoted 1 times
lordguck
2 years, 6 months ago
sorry, DE is more DOS/windows like (.bat/cmd/powershell),
upvoted 1 times
...
...
nixonbii
2 years, 6 months ago
Selected Answer: B
Just look up the uses of VBS for yourself. BASH CLI is to Linux what peanut butter is to jelly.
upvoted 1 times
...
paperburn
2 years, 6 months ago
Selected Answer: B
shell is correct
upvoted 1 times
...
szl0144
2 years, 7 months ago
Selected Answer: B
must be shell
upvoted 1 times
...
Rainkoot
2 years, 8 months ago
Selected Answer: B
I would go with Linux shell.
upvoted 1 times
...
Dion79
3 years ago
Selected Answer: B
I would go with Linux shell.
upvoted 2 times
...
Atemius
3 years, 1 month ago
I agree the answer should be B- Shell.
upvoted 3 times
...
Ariel235788
3 years, 1 month ago
Definitely Shell. VBS, batch, and powershell are Microsoft based
upvoted 3 times
...
Dion79
3 years, 2 months ago
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.
upvoted 2 times
...
maffo02
3 years, 3 months ago
She'll should be the correct answer.
upvoted 2 times
...
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.

SaveCancel
Loading ...
exam
Someone Bought Contributor Access for:
SY0-701
London, 1 minute ago