InterviewSolution
Saved Bookmarks
| 1. |
What Happens When We Execute A Unix Command? |
|
Answer» When command is GIVEN then unix OS will FORK the shell i.e will creat a new process and will execute the command using exec command...something like suppose you gave command "LS" in the shell then... fork(); exec(ls); It will give you the result and after this the child process will DIE. When command is given then unix os will fork the shell i.e will creat a new process and will execute the command using exec command...something like suppose you gave command "ls" in the shell then... fork(); exec(ls); It will give you the result and after this the child process will die. |
|