Question
a.
The function stat refers a file by its name
b.
The function stat refers a file by its tile descriptor
c.
The function fstat refers a file by its file descriptor
d.
The function fstat refers a file by its name
Posted under UNIX
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. Choose the correct statement:
Similar Questions
Discover Related MCQs
Q. truncate needs the ___ of the file as an argument but ftruncate works with _______
View solution
Q. Which of the following system call is used for truncating a file?
View solution
Q. Which of the following offset is used with lseek system call to set the offset pointer to the end of the file?
View solution
Q. ____ system call is used for positioning the offset pointer.
View solution
Q. write system call returns -1 when ___________
View solution
Q. ____ system call is used for writing to a file.
View solution
Q. close system call returns ____
View solution
Q. Which of the following system call is used for closing a file?
View solution
Q. open system call returns the file descriptor as ___
View solution
Q. Which of the following mode is used for opening a file in both reading and writing?
View solution
Q. There are ___ modes of opening a file.
View solution
Q. Which of the following system call is used for opening or creating a file?
View solution
Q. For reading input, which of the following system call is used?
View solution
Q. The chmod command invokes the ____ system call.
View solution
Q. All UNIX and LINUX systems have one thing in common which is ____
View solution
Q. In ____ mode, the kernel runs on behalf of the user.
View solution
Q. When we execute a C program, CPU runs in ____ mode.
View solution
Q. A system call is a routine built into the kernel and performs a basic function.
View solution
Q. For displaying the archive, -t option is used with the tar command.
View solution
Q. du command can also be used for reporting the disk space consumed by each user.
View solution
Suggested Topics
Are you eager to expand your knowledge beyond UNIX? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!