Shell / Commands

Shebang

English

Overview

A notation written on a script's first line to specify which interpreter runs it.

Details

A notation written on a script file's first line, starting with #!, that specifies the interpreter used to run it. It can name an absolute path directly, as in #!/bin/bash, or go through env to search PATH instead, as in #!/usr/bin/env bash -- the latter copes better when the interpreter's install location varies across environments.

More Linux terms