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 (particularly in Unix/Linux shells), the 'set' command is used to define and modify shell variables. 'setenv' is used in C-shell, 'unset' removes variables, and 'setexp' is not a standard shell command.