adplus-dvertising
frame-decoration

Question

Which of the following macro returns true if the file type is a directory?

a.

S_ISREG

b.

S_ISDIR

c.

S_ISCHR

d.

S_ISFIFO

Posted under Unix File System UNIX

Answer: (b).S_ISDIR

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following macro returns true if the file type is a directory?

Similar Questions

Discover Related MCQs

Q. S_IFxxx macros are used for checking the file types.

Q. ____ system call is used for renaming a file, directory or symbolic link.

Q. For removing a link, ____ is used.

Q. For creating a hard and symbolic link, which system calls are used?

Q. A super user can use ___ call for creating a directory.

Q. For creating and removing directories, which of the following system calls are used?

Q. Directories can also be opened, read and written in the same way as regular files.

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

Q. The vnode table is also called _____

Q. The file table contains _________

Q. The file descriptor table contains all file descriptors for a process.

Q. How many data structures does the kernel maintain in memory that contain information about an open file?

Q. Which of the following is not a valid symbolic constant?

Q. What is the symbolic constant for errno 2?

Q. What is the significance of errno 13?

Q. perror also uses error number to print the error messages.

Q. Which library function is used for printing error messages?

Q. -ok option is used with find command for seeking information before taking the action specified.

Q. Which of the following option is used with find command for taking action on selected files?

Q. Which symbol is used with find command for specifying arguments?