what is the meaning of First line of shell script ,what is
meaning of #! pleas explain brifly

Answers were Sorted based on User's Feedback



what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly..

Answer / alpkumar

#! indicates from where the path of the interpretor should
be considered and also directs that the contents of the
file which will be following will be executed under the
guidelines of this interpretor being used.

Is This Answer Correct ?    30 Yes 1 No

what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly..

Answer / nirbhay sharma

it shows the path for the interpreter

Is This Answer Correct ?    23 Yes 3 No

what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly..

Answer / shivani

It tells u that which is the shell whose interpreter would
come into action for the execution of that particular
script.

Is This Answer Correct ?    15 Yes 3 No

what is the meaning of First line of shell script ,what is meaning of #! pleas explain brifly..

Answer / r r mishra

#!/bin/sh. which dictates that the following program is a
shell script,

Is This Answer Correct ?    21 Yes 13 No

Post New Answer

More Shell Script Interview Questions

How to open a read-only file in the shell?

0 Answers  


Print a given number, in reverse order using a shell script such that the input is provided using command line argument only.

0 Answers  


How do you print the output the same string which is typed in command line. how do you write the shell script or command for this. if i entered "Hello" in command line, it should print 'Hello', if i say "Hello Welcome", i should get the "Hello Welcome" as output.?

3 Answers   IBM, Symphony,


Why do we write bin bash in shell scripts?

0 Answers  


How would you replace the n character in a file with some xyz?

7 Answers  






What is shell environment?

0 Answers  


How can I send a mail with a compressed file as an attachment?

0 Answers  


What are the different communication commands available in the shell?

0 Answers  


What is bourne shell scripting?

0 Answers  


How many prompts are available in a UNIX system?

1 Answers  


What are the default permissions of a file when it is created?

0 Answers  


How Connect to a Database in Shell Programming?

4 Answers   Syntel,


Categories