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 the use of a shebang line?

0 Answers  


Create a bash shell script that removes all files whose names end with a "~" from your home directory and subdirectories. Name this script "cleanup.sh"

6 Answers  


What is scripting used for?

0 Answers  


What is difference between shell and bash scripting?

0 Answers  


How do I run a powershell script?

0 Answers  






What does .sh file contain?

0 Answers  


Why do we use shell scripting?

0 Answers  


What is bash coding?

0 Answers  


Write a command sequence to find the count of each word?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


Explain about login shell?

0 Answers  


How to write a function?

0 Answers  


Categories