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 |
What is Linux language details
How can I send a mail with a compressed file as an attachment?
What are the advantages of shell scripting?
What is sudo command?
What command needs to be used to take the backup?
What does egrep mean?
what is the difference between writing code in shell and editor?
Explain about gui scripting?
What is bash coding?
How to sort a result of Ls -l command based on columns. Ex. i want to sort 5th column from output of ls -l command.
How can you find out how long the system has been running?
write a shell script that accepts name from user and creates a directory by the path name, then creates a text file in that directory and stores in it, the data accepted from user till STOP, displays the no. of characters stored in the file.Program stops if directory name is null