03 - Operating Systems & Applications | 02. Filesystems Flashcards
What is the filesystem?
The filesystem is the data structure used by the operating system to store and retrieve data.
What does the filesystem do?
This is a software abstraction that allows developers to manipulate data without having to be concerned with the minutiae of how each storage device works.
T/F | This data is organized into files that are units of storage used to describe a self-contained piece of data. Each file has a format depending on what that file contains. This is indicated by the file’s extension that follows the file’s name.
TRUE
What are some common file extensions?
.txt
.doc
.jpg
What is the file extension .txt a file type for?
.txt for text files
What is the file extension .doc a file type for?
.doc for Microsoft Word files
What is the file extension .jpg a file type for?
.jpg for image files encoded using the JPEG compression algorithm
What happens after files are created?
Files are organized into directories
What is a directory?
A directory is a data structure that contains references to files and other directories. They are typically organized in a hierarchical tree structure called a directory tree.
What are some examples of a directory tree?
User > Download > cat.jpg
User > Photos > Grand Canyon > familypicture.jpg
T/F | Not only is it expected that files will hold important data, but it is also assumed that a certain amount of metadata is kept to manage these files.
TRUE
What does the file control block hold?
The file control block holds all of this metadata for the file, including file permissions, owners, sizes, and create, modified, and access times.
Alongside bookkeeping metadata, files can also have attributes that indicate special behavior. What are some common attributes?
- Hidden
- Immutable
- Compressed
What is an immutable attribute?
Immutable: Cannot be modified or deleted.
What is a hidden attribute?
Hidden: Cannot be viewed by default in file managers.