nerdexam
GIAC

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.

Advanced Mac & Linux Forensics

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)
  • A
    11% (3)
  • B
    4% (1)
  • C
    81% (22)
  • D
    4% (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.

AIt is a collection of information, which cannot be data or documents.

This is incorrect because UNIX files absolutely can contain data and documents - the statement contradicts the fundamental UNIX file model.

BIt is a directory entry that points to an original file somewhere else.

This describes a symbolic link or hard link, which is a specific file system construct, not the general definition of a file in UNIX.

CIt is a collection of information, which can be data, an application, or documents.Correct

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.

DIt is a collection of information, which can be only documents.

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

#UNIX file system#file definition#Linux basics

Community Discussion

No community discussion yet for this question.

Full GCFA Practice