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...


whta is the use of "exec" command?



whta is the use of "exec" command?..

Answer / ashu

The exec command will execute a command in place of the
current shell; that is, it terminates the current shell and
starts a new process in its place.

Use of exec command:

exec is oftenly used to execute the last command of a shell
script. This would kill the shell slightly earlier;
otherwise, the shell would wait until the last command was
finished. This practice saved a process and some memory.

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More Shell Script Interview Questions

c program which accept one argument as a directory name and prints all the file name along with its inode number and total count of the file in directory

1 Answers  


What is shell and shell script?

0 Answers  


Explain about shebang?

0 Answers  


When we login into our account which files are executed?

3 Answers   Chip Quest,


How to check if the previous command was run successfully?

0 Answers  


What is the use of "shift" command in passing parameters?

1 Answers  


What will happen to my current process when I execute a command using exec?

0 Answers  


What is sudo command?

0 Answers  


write a shell script to find the largest number from 3 given numbers.

6 Answers  


What is shell environment?

0 Answers  


What is web script?

0 Answers  


How to include comments in your shell scripts?

3 Answers  


Categories