Linux and Unix setenv command

Quick links

About setenv
Syntax
Examples
Related commands
Linux and Unix main page

About setenv

In C shell sets the value of an environment variable.

Syntax

setenv [var [word]]

varVariable of the set command.
wordSet instructions or information of the variable.

Examples

setenv PATH "/bin:/usr/bin:/usr/sbin:ucb/bin"

Sets the environment path to search for files in the /bin, /usr/bin, /usr/sbin and ucb/bin directory.

Related commands

csh
ksh
set
sh