Operating Systems 2015F: Assignment 2: Difference between revisions
(3 intermediate revisions by the same user not shown) | |||
Line 60: | Line 60: | ||
device driver | '''device driver''' | ||
* Code that runs in the kernel and abstracts access to a specific piece of hardware. | * Code that runs in the kernel and abstracts access to a specific piece of hardware. | ||
kernel module | '''kernel module''' | ||
* Code that is loaded into to the kernel at runtime in order to add (or change) kernel functionality. | * Code that is loaded into to the kernel at runtime in order to add (or change) kernel functionality. | ||
character device | '''character device''' | ||
* A UNIX device abstraction that allows byte-level access to hardware (input and/or output). It is often used today to represent keyboards, mice, and printers. | * A UNIX device abstraction that allows byte-level access to hardware (input and/or output). It is often used today to represent keyboards, mice, and printers. | ||
block device | '''block device''' | ||
* A UNIX device abstraction that is primarily used for persistent storage devices. | * A UNIX device abstraction that is primarily used for persistent storage devices. | ||
NONE | '''NONE''' (lie detector?!) | ||
* A device for determining how trustworthy a person is. | * A device for determining how trustworthy a person is. | ||
make | '''make''' | ||
* A program that directs the compilation of other programs. | * A program that directs the compilation of other programs. | ||
root filesystem | '''root filesystem''' | ||
* A set of files and directories that must exist on every UNIX system. | * A set of files and directories that must exist on every UNIX system. | ||
fsck | '''fsck''' | ||
* If you have to interact with this program, files may have been corrupted. | * If you have to interact with this program, files may have been corrupted. | ||
NONE | '''NONE''' (normally /root, on older systems /) | ||
* The home directory of the root user. | * The home directory of the root user. | ||
root user | '''root user''' | ||
* The user account on a UNIX system with the highest level of privileges. | |||
NONE | '''NONE''' (???) | ||
* The default configuration of a user account on a UNIX system. | * The default configuration of a user account on a UNIX system. | ||
superblock | '''superblock''' | ||
* The block that stores metadata about a filesystem needed to properly mount it. | * The block that stores metadata about a filesystem needed to properly mount it. | ||
NONE | '''NONE''' (No one block stores most of the data in a file unless it is a small file, then it can be squeezed into the inode) | ||
* The block that stores most of the data in a file. | * The block that stores most of the data in a file. | ||
inode | '''inode''' | ||
* An on-disk data structure that stores file metadata including length, modification times, and ownership information. | * An on-disk data structure that stores file metadata including length, modification times, and ownership information. | ||
extents | '''extents''' | ||
* Sequential ranges of blocks used to store file data. | * Sequential ranges of blocks used to store file data. | ||
logical size of a file | '''logical size of a file''' | ||
* The size of a file as seen by a program accessing that file. | |||
NONE | '''NONE''' (Not gramatically correct, "du" or "ls -s" returns the space consumed by a file) | ||
* The size of the disk space consumed by a file. | * The size of the disk space consumed by a file. | ||
kernel oops | '''kernel oops''' | ||
* Happens when the kernel detects an internal error, such as access to an illegal memory location, that can generally be recovered from. | * Happens when the kernel detects an internal error, such as access to an illegal memory location, that can generally be recovered from. | ||
pseudo tty | '''pseudo tty''' | ||
* A UNIX device that virtualizes keyboard input and text output. | * A UNIX device that virtualizes keyboard input and text output. | ||
/proc | '''/proc''' | ||
* A virtual filesystem that allows access to kernel state in mostly human-readable formats. | * A virtual filesystem that allows access to kernel state in mostly human-readable formats. | ||
/sys | '''/sys''' | ||
* A virtual filesystem that allows access to kernel state where every file stores exactly one value. | * A virtual filesystem that allows access to kernel state where every file stores exactly one value. | ||
/dev | '''/dev''' | ||
* The part of the filesystem normally used to give names to connected hardware. | * The part of the filesystem normally used to give names to connected hardware. | ||
mount | '''mount''' | ||
* Command to make the contents of a filesystem accessible. | * Command to make the contents of a filesystem accessible. | ||
lsmod | '''lsmod''' | ||
* A command for listing the modules loaded into the kernel. | * A command for listing the modules loaded into the kernel. | ||
NONE | '''NONE''' (ls -lt | head) | ||
* A command that lists the recently modified files in a directory. | * A command that lists the recently modified files in a directory. | ||
rmmod | '''rmmod''' | ||
* Command that unloads a module from the currently running kernel. | * Command that unloads a module from the currently running kernel. | ||
NONE | '''NONE''' (You'd have to use a combination of find and rm.) | ||
* Command to delete recently modified files in the current directory. | * Command to delete recently modified files in the current directory. |
Latest revision as of 19:09, 3 October 2015
This assignment is due by 11:59 PM on Wednesday, September 30, 2015 on cuLearn.
Choose the appropriate definition for the following terms:
- device driver
- kernel module
- character device
- block device
- make
- root filesystem
- fsck
- root user
- superblock
- inode
- extents
- logical size of a file
- kernel oops
- pseudo tty
- /proc
- /sys
- /dev
- mount
- lsmod
(rmmod was on the list but it didn't get added to the quiz unfortunately.)
Definitions:
- If you have to interact with this program, files may have been corrupted.
- Command to delete recently modified files in the current directory.
- The size of the disk space consumed by a file.
- Sequential ranges of blocks used to store file data.
- Code that runs in the kernel and abstracts access to a specific piece of hardware.
- A UNIX device abstraction that is primarily used for persistent storage devices.
- The block that stores most of the data in a file.
- A set of files and directories that must exist on every UNIX system.
- The default configuration of a user account on a UNIX system.
- The block that stores metadata about a filesystem needed to properly mount it.
- An on-disk data structure that stores file metadata including length, modification times, and ownership information.
- A virtual filesystem that allows access to kernel state where every file stores exactly one value.
- Code that is loaded into to the kernel at runtime in order to add (or change) kernel functionality.
- A device for determining how trustworthy a person is.
- The home directory of the root user.
- Happens when the kernel detects an internal error, such as access to an illegal memory location, that can generally be recovered from.
- A UNIX device that virtualizes keyboard input and text output.
- A command for listing the modules loaded into the kernel.
- Command to make the contents of a filesystem accessible.
- The size of a file as seen by a program accessing that file.
- A command that lists the recently modified files in a directory.
- A UNIX device abstraction that allows byte-level access to hardware (input and/or output). It is often used today to represent keyboards, mice, and printers.
- Command that unloads a module from the currently running kernel.
- The part of the filesystem normally used to give names to connected hardware.
- A program that directs the compilation of other programs.
- A virtual filesystem that allows access to kernel state in mostly human-readable formats.
- The user account on a UNIX system with the highest level of privileges.
Solutions
device driver
- Code that runs in the kernel and abstracts access to a specific piece of hardware.
kernel module
- Code that is loaded into to the kernel at runtime in order to add (or change) kernel functionality.
character device
- A UNIX device abstraction that allows byte-level access to hardware (input and/or output). It is often used today to represent keyboards, mice, and printers.
block device
- A UNIX device abstraction that is primarily used for persistent storage devices.
NONE (lie detector?!)
- A device for determining how trustworthy a person is.
make
- A program that directs the compilation of other programs.
root filesystem
- A set of files and directories that must exist on every UNIX system.
fsck
- If you have to interact with this program, files may have been corrupted.
NONE (normally /root, on older systems /)
- The home directory of the root user.
root user
- The user account on a UNIX system with the highest level of privileges.
NONE (???)
- The default configuration of a user account on a UNIX system.
superblock
- The block that stores metadata about a filesystem needed to properly mount it.
NONE (No one block stores most of the data in a file unless it is a small file, then it can be squeezed into the inode)
- The block that stores most of the data in a file.
inode
- An on-disk data structure that stores file metadata including length, modification times, and ownership information.
extents
- Sequential ranges of blocks used to store file data.
logical size of a file
- The size of a file as seen by a program accessing that file.
NONE (Not gramatically correct, "du" or "ls -s" returns the space consumed by a file)
- The size of the disk space consumed by a file.
kernel oops
- Happens when the kernel detects an internal error, such as access to an illegal memory location, that can generally be recovered from.
pseudo tty
- A UNIX device that virtualizes keyboard input and text output.
/proc
- A virtual filesystem that allows access to kernel state in mostly human-readable formats.
/sys
- A virtual filesystem that allows access to kernel state where every file stores exactly one value.
/dev
- The part of the filesystem normally used to give names to connected hardware.
mount
- Command to make the contents of a filesystem accessible.
lsmod
- A command for listing the modules loaded into the kernel.
NONE (ls -lt | head)
- A command that lists the recently modified files in a directory.
rmmod
- Command that unloads a module from the currently running kernel.
NONE (You'd have to use a combination of find and rm.)
- Command to delete recently modified files in the current directory.