env — Set Environment for Command Invocation


/usr/bin/env [-i | -] [name=value] ... [command [arg...]] 
/usr/xpg4/bin/env [-i | -] [name=value] ...[command [arg...]] 


Using the env command with no arguments displays the current environment variable settings. The env command with options obtains the current environment, modifies it according to its arguments, then invokes the command named by the command operand with the modified environment.

Optional arguments are passed to command . If you specify no command operand, the resulting environment is written to the standard output, with one name =value pair per line.


If env executes commands with arguments, it uses the default shell /usr/bin/sh (see sh(1)).

Get Solaris™ 7 Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.