Setenv

From LQWiki
Jump to navigation Jump to search

Setenv is used to create and give values to environment variables.

UNIX/Linux processes include an "environment" - a collection of "variables" - name/value associations. The names and values are byte strings.

Processes inherit a copy of the environment of their parent process when they are first created. Changes made by setenv apply only to the current process.