Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...


What is the need of including script interpreter in your
shell script?

Answers were Sorted based on User's Feedback



What is the need of including script interpreter in your shell script?..

Answer / abhijeet chavan (cts)

The script interpreter identifies using which shell the
script should be executed.
By default linux uses "bash" shell
Each shell has its own unique properties.

Is This Answer Correct ?    2 Yes 0 No

What is the need of including script interpreter in your shell script?..

Answer / ganesh

When you ask a shell to execute the command $ date, the
shell uses the system call exec to
ask the UNIX kernel to execute the command you requested.

The shell passes the name of the command that should be
executed to the exec system call.
This system call reads the first two characters in a file to
determine how to execute the command.


In the case of shell scripts, the first two characters are
#!, indicating that the script needs to be interpreted by
another program instead of executed directly.

The rest of the line is treated as the name of the
interpreter to use.
Usually the interpreter is /bin/sh, but you can also specify
options to the shell on this line

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

Create a bash shell script that reads a line from the user consisting of 5 words and then prints them out in reverse order. Name this script "reverse.sh"

1 Answers  


Write down the syntax of "for " loop

0 Answers  


I want to connect to a remote server and execute some commands, how can I achieve this?

0 Answers  


Print the 10th line without using tail and head command.

0 Answers  


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

0 Answers  


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

12 Answers   Cap Gemini,


defination of mapfile in winrunner?

0 Answers  


What is INODE?

2 Answers  


how will you find the total disk space used by a specific user?

0 Answers  


How to redirect both standard output and standard error to the same location?

0 Answers  


What can you do with powershell?

0 Answers  


what is info area how many types?

0 Answers  


Categories