LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 10-23-2007, 05:56 PM   #1
mrryanthai
LQ Newbie
 
Registered: Oct 2007
Posts: 28

Rep: Reputation: 15
newbie with linux~


what is the #! called?thanks
 
Old 10-23-2007, 06:47 PM   #2
MS3FGX
LQ Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 356Reputation: 356Reputation: 356Reputation: 356
Do you mean the terminal prompt?

Last edited by MS3FGX; 10-23-2007 at 06:50 PM.
 
Old 10-23-2007, 06:53 PM   #3
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
http://en.wikipedia.org/wiki/Shebang_(Unix)

Curiously, Google will not find anything on #! You just get an empty page???

mrryanthai;
Is this homework also?
What books are you studying?
 
Old 10-23-2007, 07:18 PM   #4
dxqcanada
Member
 
Registered: Sep 2006
Location: Canada
Distribution: Gentoo
Posts: 702

Rep: Reputation: 43
Usually that combination of characters appears on the first line of a shell script.

The "#!" precedes the interpreter that the script will use when opening a child process environment to run the script. This must be the first line in a shell script.
Code:
#! /bin/bash --"
shell commands
...
 
Old 10-23-2007, 07:19 PM   #5
LlNUX
Member
 
Registered: Oct 2007
Location: Sydney, Australia
Distribution: Debian
Posts: 63

Rep: Reputation: 15
I think you mean Linux scripts. If yes, check this bash scripting tutorial explains it straight at the beginning. The same approach applies also for perl: Perl programming tutorial

hope this helps
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
security newbie, but not Linux newbie. advice on secure delete tools mattie_linux Linux - Security 19 08-15-2005 01:50 AM


All times are GMT -5. The time now is 03:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration