Unix - Sharp bang to specify a command by using a env

less than 1 minute read

Each script file can use a env command to specify the location of command.
Below example will show how a shell can find a python3 command location with a env command.

1
#!/usr/bin/env python3