Multiple choice technology operating systems

To run a script the command is

  1. su scriptname

  2. sh scriptname

  3. ls scriptname

  4. cd scriptname

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

The 'sh' command executes shell scripts. When you run 'sh scriptname', you're explicitly telling the shell to interpret and execute the commands in that file. 'su' switches users, 'ls' lists files, and 'cd' changes directories - none execute scripts. This is basic shell syntax.