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?

Answer Posted / 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       View All Answers


Please Help Members By Posting Answers For Below Questions

Is shell script a programming language?

1067


is this growing field and what is average package in this?

2343


How does ls command work?

1076


What is the syntax of "nested if statement" in shell scripting?

1139


Can you write a script to portray how set –x works?

1041


What is a shell environment?

1040


Calculate a real number calculation directly from the terminal and not any shell script.

1286


What is an sh file?

986


How do I edit a .sh file?

1204


What is the default ubuntu terminal?

1181


What does $@ mean bash?

1242


Explain about login shell?

1164


How to open a read-only file in the shell?

1176


What can you do with powershell?

1190


Is it possible to substitute "ls" command in the place of "echo" command?

1100