Env: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 16: Line 16:
=Use on the Shebang Line=
=Use on the Shebang Line=
{{External|https://www.baeldung.com/linux/bash-shebang-lines}}
{{External|https://www.baeldung.com/linux/bash-shebang-lines}}
The <code>env</code> command works by instructing the system to look for the specified interpreter through the <code>PATH</code> variable and use the first occurrence found.

Revision as of 03:00, 2 May 2023

External

Internal

Overview

Run a command with a modified environment.

/usr/bin/env [utility]
/usr/bin/env bash

Use on the Shebang Line

https://www.baeldung.com/linux/bash-shebang-lines

The env command works by instructing the system to look for the specified interpreter through the PATH variable and use the first occurrence found.