knowledge

Overview

Operating Systems (OS) are software that control most functions of a computer, managing the interaction between users, applications, and hardware. They provide interfaces for user interaction, allocate resources, and ensure system stability and security.


Terminology

TermDefinition
OS KernelCore component of the OS; manages interactions between users, applications, and hardware
OS InterfaceLayer allowing users to interact with applications, system software, and hardware
ProcessExecuting instance of an application; OS manages its resources
Device DriverProgram allowing the OS to communicate with a device; acts as an interpreter
File SystemDirectory structure defining how data is named, stored, organized, and accessed
Disk VolumePortion of a physical disk that the OS presents to users
Principle of Least PrivilegeUsers granted only the access needed to perform their tasks
DACDiscretionary Access Control; ACLs set by the resource owner
MACMandatory Access Control; set by administrator; users cannot modify
RBACRole-Based Access Control; access determined by assigned user roles

Core Concepts

OS Architecture

ComponentDescription
UserPerson interacting with the OS via GUI or CLI
ApplicationExecutable code performing specific tasks; also called programs or software
OS InterfaceBridges user interaction with system software and hardware
OS KernelAllocates resources, manages processes, and coordinates hardware access
HardwarePhysical components — mechanical, electronic, electrical

OS Responsibilities

FunctionDescription
Memory ManagementTracks and allocates primary memory to processes as needed
Processor ManagementAllocates CPU to processes; deallocates when complete
Device ManagementTracks all devices; assigns them to processes as needed
File ManagementAllocates and deallocates file storage resources
SecurityPrevents unauthorized access using passwords and access controls
Job AccountingTracks time and resources used by jobs and users
Performance ControlRecords delays between requests and responses
Error DetectionProduces dumps, traces, error messages, and debugging outputs
Software CoordinationAssigns compilers, interpreters, and utilities to users

OS Categories

CategoryDescription
Single-TaskingOnly one operation runs at a time
Multi-TaskingMultiple operations run concurrently on a single system
MultiuserMultiple users access a single OS simultaneously; common on mainframes
ClientNetworked OS connecting to servers for shared resources
ServerOS designed for running services and sharing resources
ClusterGrouped servers operating as one unit for load balancing
DistributedInterconnected computers communicating over a shared network

User Account Types

AccountOSDescription
AdministratorWindowsPrivileged account with full system access
RootLinuxPrivileged account with full system access
Standard / Non-PrivilegedBothLimited access per Principle of Least Privilege

Access Control Models

ModelDescription
DAC (Discretionary Access Control)ACLs defined by the resource owner
MAC (Mandatory Access Control)Access rules set by administrator; users cannot override
RBAC (Role-Based Access Control)Access determined by the user’s assigned role

Security Principles (DOD IA)

Core information assurance measures for protecting systems:

PrincipleDescription
IntegrityEnsures data has not been tampered with
AvailabilityEnsures users have access to data and services when needed
AuthenticationVerifies user identity via passwords, 2FA, biometrics, etc.
ConfidentialityRestricts data access to authorized users only
Non-RepudiationPrevents users from denying actions performed on the system

These principles align with the CIA Triad — see Security Principles

File System Management

ComponentDescription
Physical DiskHardware storage medium
Disk VolumePortion of disk presented to users by the OS
DirectoriesContainers for organizing files and data
Files / DataNamed items used to store information
Root DirectoryTop-level directory; starting point of the file system hierarchy


References / Images

  • OS architecture diagrams
  • Process and memory management illustrations
  • Access control and security model diagrams