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
What language is bash?
What does echo mean in scripting?
What is the way to do multilevel if-else's in shell scripting?
Calculate a real number calculation directly from the terminal and not any shell script.
Why is shell scripting important?
I want to monitor a continuously updating log file, what command can be used to most efficiently achieve this?
What does echo $0 do?
How do we create command aliases in a shell?
Explain about "s" permission bit in a file?
Is shell and terminal the same?
What is a boot block?
What can you do with powershell?
What is bash eval?
What is the difference between scripting and coding?
What is batch file programming?