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

What is sudo command?

0 Answers  


What is difference between bash and shell?

0 Answers  


write a shell script to check whether all the directories in the path exist has read and write permission

1 Answers  


What is console line?

0 Answers  


if i have 2 files file1 and file2.... file1 contains 2 columns like b a 11 aa 12 as 13 ad 15 ag 11 ar 13 ah 15 ak file2 contains b c 10 ds 11 at 15 gh 15 jk 13 iu 11 fg 13 yy can any 1 give me the program to display in this way? a b c aa 11 at ar 11 fg ad 13 iu ah 13 yy ag 15 gh ak 15 jk

3 Answers  






How u convert string "hi pravin how are you?" to "Hi Pravin How Are You?"

12 Answers   Cap Gemini,


what are bootlevel in linux?which level is booting by default.

5 Answers   Symphony,


Can shell script run on windows?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


How to get the last line from a file using just the terminal?

0 Answers  


In my bash shell I want my prompt to be of format '$"present working directory":"hostname"> and load a file containing a list of user-defined functions as soon as I log in, how will you automate this?

0 Answers  


What are zombie processes?

0 Answers  


Categories