CompTIA A+ Core 2 (220-1202) — Question 89
A user must perform a series of commands each day on a Linux server. The user wants to use a script to automate the process. Which of the following is the most likely file type for the script?
Answer options
- A. .js
- B. .vbs
- C. .bat
- D. .sh
Correct answer: D
Explanation
The correct answer is D, .sh, as it denotes a shell script commonly used in Linux environments. Options A (.js) and B (.vbs) are associated with JavaScript and Visual Basic Script respectively, which are not suitable for Linux shell automation. Option C (.bat) is a batch file format used in Windows, making it incompatible with Linux systems.