

MCQOPTIONS
Saved Bookmarks
This section includes 2 Mcqs, each offering curated multiple-choice questions to sharpen your Unix knowledge and support exam preparation. Choose a topic below to get started.
1. |
truncate needs the ___ of the file as an argument but ftruncate works with _______ |
A. | pathname, file descriptor |
B. | file descriptor, pathname |
C. | pathname, pathname |
D. | file descriptor, file descriptor |
Answer» B. file descriptor, pathname | |
2. |
Which of the following system call is used for closing a file? |
A. | open |
B. | lseek |
C. | close |
D. | write |
Answer» D. write | |