Multiple choice technology operating systems

What is the command used for defining a shell variable?

  1. setenv

  2. setexp

  3. set

  4. unset

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

In shell scripting, the 'set' command is used to define and assign values to shell variables. The setenv command is used in C-shell (csh) for environment variables, not sh/bash. setexp and unset are not variable definition commands (unset removes variables).