Filing Flashcards
What are the different levels of storage in a typical computer?
The different levels of storage in a typical computer are: Processor registers, Primary memory (RAM), Secondary storage (disks), and Network.
What is the user’s perspective on storage levels?
From the user’s perspective, the storage levels are: Internal context (registers, etc.), Memory, Filestore, and Internet.
What are the advantages of using file-store for large capacity storage?
The advantages of using file-store for large capacity storage are: storing items as files rather than individual bytes, larger storage capacity compared to main memory, and support for inter-process communication.
Which technologies are commonly used for persistent secondary storage?
The chief contemporary technologies for persistent secondary storage are: Magnetic disk (HDD), Flash memory (SSD), and Optical disc (e.g., DVD).
How does access rights differ between primary storage and file-store?
In primary storage, threads within a process have common access to memory, while processes are isolated from each other. In file-store, files provide a means of communication between processes and are not owned by a specific process. Access control systems for files are typically more sophisticated than for primary memory.
What is the role of the filing system in relation to files and devices?
The filing system acts as a common software layer between user applications that handle files and the disk (or other) device drivers. It ensures that all processes see the same files and provides system calls for accessing files without harmful interactions.
What is the typical structure of a modern file-store?
A modern file-store is hierarchical with a tree-like structure of arbitrary depth. Each tree has a single root, and branching points are directories. Terminal points on the tree are files containing data.
What files are found in every Unix directory?
Every Unix directory contains at least two files: “.” and “..”. The file “.” refers to the current directory, while “..” refers to the parent directory.
What is the difference between the filing system and the file system?
The filing system refers to the overall system that manages files, while the file system is a component of the filing system. The file system is responsible for organizing and storing files on a specific storage device.
How can a ‘memory stick’ illustrate the concept of a file system?
A ‘memory stick’ can contain its own file system, which may or may not be implemented in the same way as the file system on a hard disk drive. In a Windows system, a ‘memory stick’ appears as a separate device, allowing easy transfer of files.
What is a volume in the context of file systems?
In the context of file systems, a volume refers to a logical drive. It is often associated with a disk partition, although it is not mandatory. Each volume may have its own file system.
Why is it sometimes useful to be aware of the volume in which a file resides?
Being aware of the volume in which a file resides can be useful because moving a file within a volume is typically a simple renaming process. However, moving a file between volumes involves copying all the bytes, which can be time-consuming for large files.
What is the impact of increasing storage capacity on file systems?
Increasing storage capacity has led to a variety of file system choices, some of which have become obsolete over time. As storage devices have evolved, the capacity to store files has increased significantly.
What is a file in a filing system?
A file is the basic storage unit in a filing system. It is a collection of data that is large but slow to access compared to main memory. Files can be accessed by multiple users and processes and are permanent.
What is required to access a file in a filing system?
Accessing a file typically requires the appropriate sequence of system calls and is subject to access permissions. The file system provides a set of system calls for reading from and writing to files, ensuring controlled access.
What does a file consist of in a filing system?
Each file consists of a standard set of file attributes, such as the file size, and a variable number of blocks or clusters that contain the actual data. While it is common to keep only one type of data in each file, it is not compulsory.
How is the data within a file structured in most modern file systems?
In most modern file systems, the data within a file is considered as a large array of bytes. While some file systems may provide structuring options, such as organizing data into records, it is generally left to the user’s preference.
How are files typically accessed for reading or writing?
When reading or writing a file, there is an associated position that is maintained by the access process. It is possible to have multiple processes reading the same file at different positions simultaneously. Moving the read/write position often requires a sequence of system calls.
What is the purpose of a file name in a filing system?
A file has a unique identifier, but the user typically associates a human-readable name with it for identification. This file name may or may not be part of the file’s attributes. For example, in a Unix filing system, the file name is separate from the file, and one file can have multiple different names.
What are file attributes in a filing system?
File attributes are metadata associated with a file, providing information about the file itself rather than its contents. They include details such as the file’s size, creation date, and permissions.
How can you view file attributes in a Unix system?
In Unix, you can use the command “ls -l” to see important attributes of files in a directory. For more detailed information about a specific file, you can use the command “stat <filename>".</filename>
What is the purpose of file permissions?
File permissions determine what actions can be performed on a file, such as reading, writing, or executing. They serve as a simple form of protection against unintended modifications or unauthorized access.
How does Unix handle file permissions?
Unix provides independent control over read, write, and execute permissions for a file. It also allows setting permissions for different users or user groups. For example, certain files may be readable by all users but writeable only by staff members.
Why is file ownership important in a multi-user system?
In a multi-user system, file ownership helps identify which user “owns” a particular file. It provides a means to determine responsibility and manage access permissions. The owner’s unique identifier can be used to look up the associated user’s name if needed.
What is the concept of a “group” in Unix file ownership?
In Unix, a file can also belong to a “group” in addition to having an owner. This allows for additional access settings specifically for members of that group. Generally, the access permissions for the group are more liberal compared to those for “others,” who are not the owner or part of the group.
How are different file types classified within a filing system?
Different file types can be classified based on various criteria within a filing system.
How are file types displayed in Unix or Windows directories?
Unix and Windows directories display filenames that may not immediately distinguish regular files from subdirectories to the user. The filing system keeps this distinction within the file attributes.