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 in ipc?

563


Explain the system calls used for process management?

555


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

559


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

562


What are the various schemes available?

555






Explain what are the system calls used for process management?

522


What is ipc port?

582


Explain how do you execute one program from within another?

540


Explain a zombie?

633


Explain what is the process id for kernel process?

587


Please describe the initial process sequence while the system boots up?

585


Explain the advantage of executing a process in background?

521


What is daemon?

541


Explain linking across directories?

546


What is ipc in unix?

572