wats the she bang statment with syntax?

Answers were Sorted based on User's Feedback



wats the she bang statment with syntax?..

Answer / shimpi

a shebang (also called a hashbang, hashpling, or pound
bang) refers to the characters "#!. The shebang is looked
for and used when a script is invoked directly.
Because the "#" character is often used as the comment
marker in scripting languages, the contents of the shebang
line will be automatically ignored by the interpreter
itself; the shebang line only exists to specify the correct
interpreter to be used.

Is This Answer Correct ?    4 Yes 1 No

wats the she bang statment with syntax?..

Answer / priya

shebang is also called as hashbang.This basically used for
interpretation.This should be the 1st line of any shell
script which indicate the script to run in specified shell.
For ex. If the 1st line of a shell script is #!/bin/ksh
then the program has to run under korn shell.If you do not
specified any shebang then it will run under default shell.

Is This Answer Correct ?    3 Yes 1 No

wats the she bang statment with syntax?..

Answer / sailabala sahoo

#!/usr/bin/sh
see bang line find the path of the interpreter.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

How will you print the login names of all users on a system?

0 Answers  


What is shell geeksforgeeks?

0 Answers  


What is difference between bash and shell?

0 Answers  


What is the difference between running a script as ./scriptname.sh and sh scriptname.sh

1 Answers  


Why are there shells on the beach?

0 Answers  






What is a shell script? Can you name some of its advantages?

0 Answers  


What is the default ubuntu terminal?

0 Answers  


I Forgot My Windows Vista Password! How Can I Find My Windows Lost Password?

1 Answers  


What is the significance of $#?

0 Answers  


How will you pass and access arguments to a script in linux?

0 Answers  


What is a shell in operating system?

0 Answers  


Please give me example of " at command , contrab command " how to use

0 Answers  


Categories