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
Is shell script a programming language?
is this growing field and what is average package in this?
How does ls command work?
What is the syntax of "nested if statement" in shell scripting?
Can you write a script to portray how set –x works?
What is a shell environment?
Calculate a real number calculation directly from the terminal and not any shell script.
What is an sh file?
How do I edit a .sh file?
What is the default ubuntu terminal?
What does $@ mean bash?
Explain about login shell?
How to open a read-only file in the shell?
What can you do with powershell?
Is it possible to substitute "ls" command in the place of "echo" command?