TheBestLinks.com
TheBestLinks.com
Shebang, Computing, Operating system, Octothorpe, Unix-like, Text file... Print friendly version | Tell a friend
 
Navigation
Search
Toolbox

Shebang

From TheBestLinks.com

In computing, a shebang is command that makes a Unix-like operating system execute the commands in a text file using an interpreter. A shebang consists of a sharp symbol and exclamation point character #! in the first two columns of the first line, followed by the program that will provide the interpretation.

The name shebang comes from the contraction of sharp bang, or hash bang, referring to the two characters. Unix jargon uses bang to refer to the exclamation point character and "hash" to refer to the octothorpe.

Usage

A typical shebang line could be

 #!/bin/sh

This instructs the operating system to interpret the file with the program /bin/sh.

It is common for different variants of even the same operating system to have different locations for the interpreter. Thus, it is not uncommon to need to adjust the shebang line after copying a script from one computer to another.

External links

Related links


Top visited 0 of 0 links

[no links posted yet]

>> place link >>

Discussion

Last posted 0 of 0 messages

[no messages posted yet]

>> post message >>

Watch

You can add this article to your own "watchlist" and receive e-mail notification about all changes in this page.
 
   
Innovate it
This page was last modified 06:31, 10 Jun 2004.
  Content is available under GNU Free Documentation License 1.2.
Powered by MediaWiki