GCFA · Question #195
Which of the following statements is true for a file in the UNIX operating system?
The correct answer is C. It is a collection of information, which can be data, an application, or documents. In UNIX, a file is the fundamental unit of storage and can hold any type of information including data, executable applications, or documents.
Question
Which of the following statements is true for a file in the UNIX operating system?
Options
- AIt is a collection of information, which cannot be data or documents.
- BIt is a directory entry that points to an original file somewhere else.
- CIt is a collection of information, which can be data, an application, or documents.
- DIt is a collection of information, which can be only documents.
How the community answered
(27 responses)- A11% (3)
- B4% (1)
- C81% (22)
- D4% (1)
Why each option
In UNIX, a file is the fundamental unit of storage and can hold any type of information including data, executable applications, or documents.
This is incorrect because UNIX files absolutely can contain data and documents - the statement contradicts the fundamental UNIX file model.
This describes a symbolic link or hard link, which is a specific file system construct, not the general definition of a file in UNIX.
UNIX follows the 'everything is a file' philosophy, meaning a file is simply a sequence of bytes that can represent any type of information - raw data, compiled executables, scripts, or documents - with no restriction on content type imposed by the file system itself.
This is incorrect because UNIX files are not limited to documents - they can also contain executable code, binary data, device streams, and other content types.
Concept tested: UNIX file system definition and file types
Source: https://www.gnu.org/software/libc/manual/html_node/File-Basics.html
Topics
Community Discussion
No community discussion yet for this question.