Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
ENV(1)			    General Commands Manual			ENV(1)

NAME
       env - obtain or alter environment variables for command execution

SYNOPSIS
       env [ - ] [ name=value ...  ] [ command ]

DESCRIPTION
       env obtains the current environment, modifies it	according to its argu-
       ments, and executes the command with the	modified environment that  re-
       sults.

       If no command is	specified, the resulting environment is	displayed.

OPTIONS
       -		   Ignore  the environment that	would otherwise	be in-
			   herited from	the current shell.  Restricts the  en-
			   vironment  for command to that specified by the ar-
			   guments.

       name=value	   Set the environment variable	filename to value  and
			   add it to the environment.

SEE ALSO
       sh(1), execve(2V), profil(2), environ(5V)

			       9 September 1987				ENV(1)

NAME | SYNOPSIS | DESCRIPTION | OPTIONS | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=env&manpath=SunOS+4.1.3>

home | help