Which of the following system calls performs the action of cd command?
(a) chdir
(b) fchdir
(c) mkdir
(d) chdir and fchdir
This question was addressed to me at a job interview.
This interesting question is from File handling System Calls topic in chapter System Programming I – Files of Unix