1.

Which of the following command doesn’t create a process?(a) pwd(b) fork(c) cd(d) pwd and cdI got this question in an interview for internship.My question is taken from Process Basics topic in portion The Process of Unix

Answer»

Correct answer is (d) pwd and cd

Easiest EXPLANATION: When we run a command, a process REPRESENTING the command is started by the SHELL process but all COMMANDS don’t SET up processes. Built-in commands of the shell like pwd, cd etc do not create processes.



Discussion

No Comment Found

Related InterviewSolutions