CompTIA

SK0-005 practice question 19

CompTIA Server+ · free question 19 of 20

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.

Practice the whole free set

Answer all 20 free SK0-005 questions with instant feedback, or unlock all 584 questions with Learn and Exam modes.