What Happens when you execute a command?

Answers were Sorted based on User's Feedback



What Happens when you execute a command?..

Answer / 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

What Happens when you execute a command?..

Answer / basha

Hi
command execute process used by shell
it will check
1.physical memory
a)alias
b)functions
2.HDD
c)builtin commands
d)path
e)execute permission
f)system calls FORK_EXEC_EXIT
it it founds then it will execute and give the info other
wise it shows shell name and not founs.

Is This Answer Correct ?    2 Yes 2 No

What Happens when you execute a command?..

Answer / kumar

os calls exec() function to execute the command and
displays the output

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More Unix IPC Interview Questions

How can a parent and child process communicate?

3 Answers   TCS,


how to create tree of processes. one parent and 3 childs.

1 Answers   HCL,


Explain linking across directories?

0 Answers  


About i-node numbers

1 Answers  


About ln(linking)

1 Answers   Infosys,






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

0 Answers  


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

2 Answers   Infosys,


What is i-node numbers?

0 Answers  


What is semaphone?

5 Answers   HCL,


Explain what is the process id for kernel process?

0 Answers  


In Unix inter process communication take place using?

2 Answers  


Explain what are the system calls used for process management?

0 Answers  


Categories