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 are the various schemes available?

543


Explain the initial process sequence while the system boots up?

546


Explain about daemon?

564


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

541


What are two different models of ipc differentiate both?

574






Explain a zombie?

619


What is fork()?

597


Explain linking across directories?

532


Explain what is the process id for kernel process?

576


What is the very first process created by kernel?

588


What are the various schemes available in ipc?

549


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

566


What is the full form of ipc?

578


What is the condition required for dead lock in unix system?

548


Explain how do you execute one program from within another?

529