What will happen to my current process when I execute a command using exec?



What will happen to my current process when I execute a command using exec?..

Answer / Varun Kumar Sharma

When you use `exec` in a shell, it replaces the current running process with the specified command. This means that the parent shell process is replaced by the child process running the executed command.n

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Shell Script Interview Questions

I want to create a directory such that anyone in the group can create a file and access any person's file in it but none should be able to delete a file other than the one created by himself.

1 Answers  


What is awk in shell scripting?

1 Answers  


What is the default ubuntu terminal?

1 Answers  


How to write an Auto scripting for deleting old files using shell script and made a cron job to run on daily basis

1 Answers  


how to create purchase order

2 Answers  


how can you execute the shell scripts?

4 Answers  


How to print pid of the current shell?

1 Answers  


I want to read all input to the command from file1 direct all output to file2 and error to file 3, how can I achieve this?

1 Answers  


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

5 Answers  


What is sh in shell script?

1 Answers  


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 the syntax of "nested if statement" in shell scripting?

1 Answers  


Categories