Run a command under a different environment

Today we have a simple tip of the shell. Are there applications or scripts that you use that require different environment variables, such as a different PATH or EDITOR? Then meet the env command. env allows you to run a program in a restricted environment with custom variables or so that no "dirty" variables are left around.

Rather than explain how to use it, let's just jump in to ...

Click through to read more...