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 |
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
What is shell and shell script?
Explain about shebang?
When we login into our account which files are executed?
How to check if the previous command was run successfully?
What is the use of "shift" command in passing parameters?
What will happen to my current process when I execute a command using exec?
What is sudo command?
write a shell script to find the largest number from 3 given numbers.
What is shell environment?
What is web script?
How to include comments in your shell scripts?