Multiple choice technology operating systems

Command to set the environment variables

  1. senv

  2. printenv

  3. setenv

  4. setupenv

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

setenv (option C) is the correct command for setting environment variables in csh and tcsh shells. printenv (B) displays variables but doesn't set them. senv (A) and setupenv (D) are not standard Unix commands. In bash/sh, the equivalent command is 'export', but setenv is the correct answer for Unix shell environments.