whta is the use of "exec" command?



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

Post New Answer

More Shell Script Interview Questions

Hi, I want to practise Unix korn shell scripting which i learnt 2 yr bfr. plz suggest software i can use to practise.

1 Answers  


What is subshell?

1 Answers  


In a single command how do you run the previous command in the command prompt.

5 Answers  


What are the Different types of shells?

5 Answers  


HOW TO CREATE 10 USERS IN UNIX(HP-UX) USING SHELL SHELL SCRIPT?

3 Answers   Patni,


defination of mapfile in winrunner?

0 Answers  


c program the catches the ctrl-c(SIGINT) Signal for the first time and prints a output rather and exit on pressing Ctrl-C again

3 Answers  


When you login to a c shell, which script would be run first?

2 Answers  


one folder contains lot of students name but I want to fetch hello with every student name individually using shell script

1 Answers  


How will you pass and access arguments to a script in linux?

1 Answers  


Is shell a part of kernel?

1 Answers  


What is a boot block?

1 Answers  


Categories