169k views
1 vote
To create a file

a) allocate the space in file system
b) make an entry for new file in directory
c) both (a) and (b)
d) none of the mentioned

User Kuvalya
by
7.8k points

1 Answer

5 votes

Final Answer:

To create a file, both the allocation of space in the file system (option a) and the creation of an entry for the new file in the directory (option b) are necessary.

Step-by-step explanation:

File creation involves two essential steps. Firstly, space must be allocated in the file system to store the data and contents of the new file. This step ensures that the operating system knows where to physically store the information. Secondly, an entry for the newly created file must be made in the directory. The directory entry contains metadata about the file, such as its name, location, size, and other relevant details. Both steps are integral to the file creation process, making options (a) and (b) the correct choices.

User BenMaddox
by
8.7k points