Question
Which of the following is the MOST appropriate scripting language to use for a logon script for a Linux box?
- A. VBS
- B. Shell Correct
- C. Java
- D. PowerShell
- E. Batch
Explanation
Linux logon scripts, such as ~/.bash_profile or files in /etc/profile.d, are shell scripts that the login shell runs natively. VBScript and Batch work only on Windows, Java is a compiled language rather than a logon scripting language, and PowerShell is not installed on Linux by default.