Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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 ln(linking)?

985


Explain how do you execute one program from within another?

914


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

971


What is the very first process created by kernel?

1014


Which ipc is faster?

919


What are the various schemes available?

892


Explain linking across directories?

893


What is ipc port?

931


What are the various schemes available in ipc?

908


How to write the program on full-duplex communication on bidirectional(e.g using two pipes)?

958


Explain about daemon?

954


Explain what is the process id for kernel process?

940


Explain the system calls used for process management?

909


How to get or set an environment variable from a program?

907


Explain a zombie?

995