Which of the following system calls performs the action of cd command?

Which of the following system calls performs the action of cd command?
A. chdir
B. fchdir
C. mkdir
D. chdir and fchdir
 
Answer: d
Explanation: There are two system calls that perform the action of cd command. They are chdir and fchdir which uses pathname and a file descriptor respectively as an argument.
 

Tìm kiếm

Back
Top