What Happens when you execute a command?

Answer Posted / amit

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.

Is This Answer Correct ?    17 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the very first process created by kernel?

592


What are two different models of ipc differentiate both?

576


What is i-node numbers?

592


What is daemon?

530


Max relax-able permission value with out giving write permission to others?

566






What are the various schemes available?

543


Explain linking across directories?

534


How to write the program on full-duplex communication on bidirectional?

545


Which ipc is faster?

565


What is unix ipc?

551


Explain the system calls used for process management?

542


Explain what are the system calls used for process management?

512


Which ipc is the fastest in unix?

546


What is the full form of ipc?

578


Explain about daemon?

566