Operating Systems Basics
Operating Systems and Remote Connections
Remote Connections in IT Support
Remote connections allow a person to access or manage one computer from another computer over a network. They are especially useful in IT support because a technician can troubleshoot and administer multiple machines without being physically present.
Common Uses
Remote access can help users:
Retrieve files from a computer located elsewhere.
Receive technical support outside normal business hours.
Access workplace resources while working remotely.
Manage computers in different offices, cities, or countries.
Troubleshoot applications, hardware interactions, and system settings.
A remote connection can make the remote computer appear as though the technician is sitting directly in front of it. Depending on the protocol, the technician may interact with a text-based shell, a graphical desktop, or specific network resources.
SSH: Secure Shell
SSH, or Secure Shell, is a protocol used by software to securely access one computer from another. It is commonly used to administer Linux and other Unix-like systems, especially when the remote machine does not provide a graphical interface.
An SSH connection requires two software components:
SSH client: Runs on the computer initiating the connection.
SSH server: Runs on the computer being accessed.
An SSH server is not necessarily a separate physical machine. It is software running as a background process on the remote computer. The server continuously checks for incoming connection requests and authenticates valid requests.
The most widely used SSH program on Linux is OpenSSH.
Information Required for an SSH Connection
To connect to a remote machine, the client generally needs:
A valid user account on the remote computer.
The remote computer’s hostname or IP address.
An SSH client on the local computer.
An SSH server running on the remote computer.
The appropriate authentication information, such as a password or key.
A typical Linux SSH command follows this general pattern:
ssh username@IP_addressFor example, a connection might identify the user cindy and the remote machine’s IP address.
Host Authenticity Verification
When connecting to a machine for the first time, the SSH client may display a message stating that the authenticity of the host cannot be established.
This occurs because:
The local client has never connected to that machine before.
The client cannot yet verify that the remote machine is the intended host.
The user must confirm that the hostname or IP address belongs to the correct computer.
If the user confirms the connection, the host is stored as a known host. Future connections to the same machine generally will not display the same first-connection warning.
Encrypted Communication
After the connection is established, text commands entered on the local computer are transmitted securely to the SSH server. The remote shell interprets and executes those commands on the remote machine.
SSH can primarily provide a command-line session, but it can also be configured to launch applications that display a graphical interface remotely.
SSH Authentication
Password Authentication
SSH can authenticate users with passwords. This is familiar and straightforward, but passwords are generally less secure than key-based authentication because they can be guessed, reused, stolen, or exposed through other attacks.
SSH Key Authentication
A more secure method uses a pair of cryptographic keys:
Public key: Can be shared and is placed on the remote computer.
Private key: Must be kept secret on the user’s local computer.
The keys work together. A public key can be thought of as locking a secure container, while the corresponding private key unlocks it. Possession of the public key alone does not allow someone to authenticate as the key’s owner.
SSH key authentication uses a public/private key pair to provide stronger authentication than passwords. The private key must remain secret.
Key-based authentication improves security because the user does not need to transmit a password each time a connection is made. The technical details of public-key cryptography involve encryption and authentication concepts covered in greater depth in IT security studies.
VPN: Virtual Private Network
A VPN, or Virtual Private Network, allows a computer to connect to a private network over the public internet.
For example, a VPN can allow a remote employee to connect to a company network and access resources such as:
Shared file servers.
Internal websites.
Network printers.
Network devices.
Other resources restricted to the private network.
A VPN makes the remote computer appear to be connected to the private network even though it is physically somewhere else. It is more extensive than a typical SSH session because it can provide access to an entire network rather than only one remote computer.
VPNs generally require more setup and infrastructure than SSH. Their technical security mechanisms include encrypted tunnels, authentication, and network routing.
Remote Connections from Windows
PuTTY
PuTTY is free, open-source software for making remote connections from Windows. It supports several network protocols, including SSH.
PuTTY can be downloaded in different forms:
A complete package installed through a Microsoft Installer file, or MSI.
Individual executable programs that provide specific functionality, such as
putty.exe.
PuTTY Graphical Interface
When PuTTY is launched, its connection window includes several important options:
Host Name: The hostname or IP address of the remote computer.
Port: The network port used for the connection.
Connection Type: The protocol used, such as SSH.
SSH uses port 22 by default. To begin an SSH session, the user enters the remote computer’s hostname or IP address, confirms that SSH is selected, and chooses Open.
PuTTY from the Command Line
PuTTY can also be used from a Windows PowerShell prompt. The command can specify:
The SSH connection type.
The username.
The hostname or IP address.
The port.
The general structure resembles:
putty -ssh username@IP_address -P portPuTTY also includes Plink, short for PuTTY Link. Plink is a command-line tool that can create remote SSH connections after PuTTY has been installed.
Remote Desktop Protocol
Remote Desktop Protocol, or RDP, is a Microsoft protocol that provides a graphical interface to a remote Windows computer.
Unlike a basic SSH session, which normally provides a text-based shell, RDP allows the user to interact with the remote computer’s desktop, windows, menus, and applications.
An RDP connection requires:
Incoming RDP connections to be enabled on the remote computer.
The connecting user to be authorized.
An RDP client on the local computer.
The remote computer’s name or IP address.
The standard Windows client is Microsoft Terminal Services Client, launched through the executable mstsc.exe.
Other RDP-compatible clients exist for Linux and macOS, including Microsoft’s RDP client and third-party programs such as RealVNC.
Enabling Remote Desktop
Remote connections can be enabled through Windows system settings by:
Opening the Start menu.
Right-clicking This PC.
Selecting Properties.
Opening Remote Settings.
Choosing an option in the Remote Desktop section.
The exact available options depend on the Windows edition and configuration.
Security Considerations
Allowing remote desktop access creates security risks. An unauthorized user who gains access could control the computer, access files, install software, or alter system settings.
Remote Desktop should therefore be configured carefully:
Only trusted users should be granted access.
Strong authentication should be used.
Access should be limited to necessary users and systems.
Organizations should typically manage these settings centrally through system administrators.
Once access is enabled and the user has permission, the RDP client can connect to the remote machine by entering its name or IP address.
The client can be launched in several ways:
Typing
mstscinto the Windows Run box.Searching for Remote Desktop Connection in the Start menu.
Running
mstsc.exefrom the command line.
Command-line options can specify additional connection parameters. For example, the /admin option requests an administrative connection to the remote system.
Operating System Architecture
Definition of an Operating System
An operating system is the complete software package that manages a computer’s resources and provides ways for users and applications to interact with the computer.
An operating system includes more than the visible desktop. Menus, icons, buttons, and backgrounds are part of the operating system, but they represent only one portion of it.
An operating system manages:
Hardware resources.
Files and storage.
Running programs and processes.
Memory.
Input and output devices.
User interaction.
System services and applications.
The two major components of an operating system are:
Kernel
User space
Kernel
The kernel is the central core of an operating system. It communicates directly with the computer’s hardware and manages the system’s resources.
The kernel operates at a low level and is generally not accessed directly by users. Instead, applications and user interfaces request services from the kernel.
Major kernel responsibilities include:
File management.
Process management.
Memory management.
Input/output management.
Hardware and driver coordination.
Resource allocation and protection.
User Space
The user space consists of everything outside the kernel. It includes the software and interfaces with which users interact directly.
Examples include:
System programs.
Graphical user interfaces.
Command-line shells.
Text editors.
Music players.
System settings.
Login programs.
Libraries and application-support components.
An operating system includes both the kernel and user space. The kernel manages hardware and resources, while user-space software provides tools and interfaces for users and applications.
Major Operating Systems
Windows
Windows is developed by Microsoft and is widely used in business and consumer environments. Most general-purpose PCs are sold with Windows installed as the default operating system.
The term PC technically refers to a personal computer intended for use by one person. In common usage, however, “PC” often refers specifically to a Windows computer.
macOS
macOS is developed by Apple and is primarily used on Apple computers. Apple computers generally ship with macOS preinstalled.
macOS is common in consumer environments and is also used in professional fields such as design, media production, software development, and education.
Linux
Linux is an open-source operating system used extensively in business infrastructure and also in consumer environments.
Open-source software can generally be:
Shared.
Modified.
Distributed.
Improved by a worldwide community of developers.
Technically, Linux is the kernel originally developed by Linus Torvalds. However, the term “Linux operating system” is commonly used to refer to complete systems built around the Linux kernel.
Because Linux is open source, many organizations create their own complete versions. These versions are called Linux distributions, or distros.
Common distributions include:
Ubuntu.
Debian.
Red Hat.
A distribution usually combines the Linux kernel with system utilities, libraries, package-management tools, applications, and configuration choices.
ChromeOS and Mobile Operating Systems
ChromeOS has become increasingly popular, especially on lightweight computers. ChromeOS uses the Linux kernel underneath its user-facing environment.
Mobile operating systems include:
Android OS.
iOS.
Windows mobile operating systems.
Mobile operating systems are important because mobile devices are used more extensively worldwide than traditional desktop computers. Android also uses the Linux kernel underneath its higher-level system components.
The shared use of the Linux kernel means that systems such as ChromeOS and Android contain Linux-based foundations even though their user experiences differ significantly from traditional Linux distributions.
Kernel Responsibilities
File Management
The kernel manages the storage, organization, access, and retrieval of files. A file is a collection of stored data and can represent nearly any kind of information, including:
Text documents.
Images.
Music.
Videos.
Programs.
Configuration information.
A file system defines how files are organized and managed on a storage device. It provides structures such as folders or directories so that files can be located efficiently.
Without a file system, all files would effectively be stored in an unorganized collection, making them difficult to find and manage.
Process Management
A process is a program that is currently executing. For example, an open web browser or text editor runs as one or more processes.
A program is an application that can be executed. A single program can create multiple processes. For example, several browser windows or tabs may correspond to separate processes even though they originate from the same browser program.
The kernel manages:
Creating processes.
Assigning CPU time.
Allocating memory and other resources.
Scheduling execution.
Terminating processes.
Reclaiming resources when processes end.
Memory Management
The kernel manages the computer’s memory and ensures that applications receive enough memory to run.
It must:
Track which parts of memory are in use.
Assign memory to processes.
Prevent processes from interfering with one another.
Move data between RAM and storage when necessary.
Recover memory when processes terminate.
Input/Output Management
Input/output, abbreviated I/O, describes communication between the computer and external devices or between devices within the system.
Examples of I/O devices include:
Keyboards.
Mice.
Monitors.
Hard disk drives.
Speakers.
Microphones.
Webcams.
Bluetooth headsets.
Network adapters.
The kernel loads and manages device drivers so that software can communicate with different hardware. It also manages the movement of data into and out of those devices.
File Management
Three Components of File Handling
Operating system file management involves three main components:
File data.
File metadata.
The file system.
File Systems
Before a new hard disk can store files, it must be prepared and configured. This process establishes a file system that allows the operating system to read and write data.
A file system determines how data is:
Organized.
Located.
Stored.
Retrieved.
Protected.
Recovered after failures.
Different file systems have different capabilities. They may vary in:
Maximum supported storage size.
Performance.
Security features.
Encryption support.
Resilience against corruption.
Recovery and journaling behavior.
Compatibility with operating systems and devices.
NTFS
NTFS, or New Technology File System, is the primary file system associated with Windows.
NTFS supports features such as:
File and disk security.
Encryption.
Efficient access to stored data.
Permissions.
Reliability improvements.
Microsoft has also developed ReFS, or Resilient File System. It is designed with resilience and reliability in mind but was not historically intended as the standard file system for general consumer Windows installations.
HFS+
HFS+ is a file system used by macOS in the source material.
HFS+ is journaled, meaning it keeps records of certain file-system changes. If a system fails during a write operation, journaling can help the operating system restore or determine the disk’s previous consistent state.
Journaling is also available in other file systems, including NTFS.
ext4
Linux distributions use several different file systems. ext4 is a common Linux file system and is compatible with earlier ext file systems.
The exact default file system can differ between Linux distributions and configurations.
File-System Compatibility
Different file systems do not always work seamlessly with one another. A storage device formatted with one file system may not be fully readable or writable by another operating system.
This can affect:
Moving files between Windows, macOS, and Linux.
Accessing external drives.
Sharing partitions between operating systems.
Recovering data from damaged disks.
Creating dual-boot systems.
A practical guideline is to use the file system recommended by the operating system unless a specific compatibility or performance requirement justifies another choice.
File Data and Block Storage
The actual contents of a file are stored on a disk as data blocks.
A file does not necessarily occupy one continuous region of the disk. It may be divided into multiple pieces and stored in different locations.
Block-based storage helps the operating system:
Use available disk space efficiently.
Store files even when free space is fragmented.
Locate and transfer portions of data.
Manage large quantities of stored information.
The file system keeps track of which blocks belong to each file.
File Metadata
Metadata is information about a file rather than the file’s main contents.
Metadata may describe:
The file’s creator.
The date and time it was created.
The date and time it was last modified.
The file’s size.
The users allowed to access it.
The file’s permissions.
The file type.
The locations of its data blocks.
A file extension is the part of a filename that often identifies the file type. For example, in cool_image.jpg, .jpg indicates a JPEG image file.
File extensions help users and applications identify how a file should be opened, although the extension alone does not guarantee the actual format or contents of a file.
Knowledge of file systems is useful for:
Recovering data from damaged disks.
Diagnosing storage problems.
Managing permissions.
Sharing files between operating systems.
Setting up dual-boot systems containing Windows and Linux.
Understanding why a computer may not recognize a particular drive.
Process Management
Programs and Processes
A program is an application that can be run. A process is an active execution instance of that program.
For example:
A web browser installed on a computer is a program.
Each active browser execution or browser-related task may be represented by one or more processes.
Multiple processes can originate from the same program. A computer may therefore run several browser processes at the same time.
Each process needs system resources, including:
CPU execution time.
RAM.
Storage access.
Input/output operations.
Network access, when applicable.
Because the computer has a finite amount of resources, the kernel must distribute them efficiently.
CPU Scheduling and Time Slices
A computer may appear to run many programs simultaneously, but a single CPU core executes instructions one process at a time.
The kernel creates the appearance of simultaneous execution through rapid switching. Each process receives a time slice, which is a very short period during which the CPU executes that process’s instructions.
A simplified sequence is:
The CPU executes one process for a short time.
The kernel switches the CPU to another process.
The CPU executes the second process for a short time.
The kernel continues switching among processes.
Because each time slice is extremely short, users perceive the programs as running simultaneously.
Causes of Slow Performance
A computer may become slow when:
A process consumes an unusually large amount of CPU time.
Too many processes compete for CPU time.
Background system processes consume resources.
The CPU cannot execute all requested work quickly enough.
Other resource bottlenecks, such as insufficient RAM or excessive I/O, are present.
The kernel attempts to manage processes automatically, but an administrator or support specialist may need to identify and stop problematic processes manually.
Process Termination
When a process ends, the kernel must terminate it properly and recover its resources.
This includes reclaiming:
CPU scheduling allocations.
RAM.
Open files.
Device access.
Network resources.
Other process-specific data.
Reclaimed resources can then be assigned to new or existing processes.
Memory Management and Virtual Memory
RAM and Process Memory
Running processes must be loaded into memory so that the CPU can access their instructions and data quickly.
RAM is faster than disk storage but is available in smaller quantities. Large applications may require more memory than the computer can physically provide at one time.
Virtual Memory
Virtual memory combines RAM and hard-drive space to provide processes with an expanded memory environment.
Programs are divided into smaller units called pages. These pages can be stored in virtual memory and moved into physical memory when needed.
Only the pages currently required by a process need to be loaded into RAM. This prevents the system from filling RAM with every feature of every application at once.
For example, a word processor does not need to load every menu and feature into RAM immediately. If the user opens a rarely used menu, the system may need to retrieve the relevant pages from virtual memory and load them into RAM. This can cause a short delay.
The process resembles using a cookbook: a person does not need to hold the entire cookbook in immediate attention to prepare one recipe; only the relevant pages are needed.
Swap Space
When virtual memory is stored on a hard drive, the allocated disk area is called swap space.
The kernel manages the movement of pages:
From storage into RAM when a process needs them.
From RAM back to storage when RAM is needed for other processes.
Excessive reliance on swap space can reduce performance because storage is generally slower than RAM. However, swap space allows systems to run more processes or larger applications than physical RAM alone would permit.
Input/Output Management
I/O Devices
I/O devices perform input, output, or both.
Examples include:
Input devices: Keyboards, mice, microphones, webcams, and some network interfaces.
Output devices: Monitors, speakers, printers, and some network interfaces.
Storage devices: Hard drives and other disks, which both receive and provide data.
The kernel manages these devices and coordinates how data moves between them and the rest of the system.
Device Drivers
A device driver is software that enables the operating system to communicate with a particular hardware device.
The kernel must load the appropriate drivers so that it can:
Recognize hardware.
Send commands to hardware.
Receive data from hardware.
Translate general operating system requests into device-specific operations.
Without a suitable driver, hardware may not function correctly even if it is physically connected.
Data Transfer and Device Communication
I/O management includes more than communication between a person and a computer. Devices also communicate with one another.
Examples include:
Reading data from a disk and displaying it on a monitor.
Receiving microphone input and transmitting it over a network.
Receiving network data and saving it to storage.
Sending an audio stream to Bluetooth headphones.
The kernel determines how data should be transferred and attempts to:
Use efficient transfer methods.
Coordinate competing I/O requests.
Prevent data errors.
Avoid blocking unrelated operations.
Resource Bottlenecks and Slowness
A slow computer may be experiencing a hardware resource deficiency.
Common causes include:
Insufficient RAM: Fewer processes can remain readily available, increasing paging or swapping.
Insufficient CPU capacity: Programs take longer to execute.
Excessive input: Large amounts of incoming data can overwhelm the system.
Excessive output: Devices or networks may become overloaded.
I/O contention: Multiple processes compete for storage, network, or peripheral access.
Identifying the bottleneck is a central troubleshooting skill. The same principles apply to individual computers, servers, and large IT systems such as web applications.
User Space and Human Interaction
Two Ways to Interact with an Operating System
Users interact with operating systems primarily through:
A shell, often using a command-line interface.
A graphical user interface.
Applications, system tools, and libraries also provide ways to interact with operating system functions.
Graphical User Interface
A Graphical User Interface, or GUI, is a visual interaction method involving elements such as:
Windows.
Icons.
Menus.
Buttons.
Pointers.
Dialog boxes.
Drag-and-drop operations.
A user can open folders, launch applications, change settings, and manage files through visible controls.
GUIs are common in:
Desktop operating systems.
Mobile phones.
Tablets.
ATMs.
Airport kiosks.
Other interactive devices.
The visual design of a GUI can help distinguish operating systems. Windows and macOS, for example, use different arrangements and styles for windows, menus, and icons.
Shells and Command-Line Interfaces
A shell is a program that interprets text commands and sends requests to the operating system for execution.
A Command-Line Interface, or CLI, is an environment in which commands are entered as text rather than selected through visual controls.
Shells remain important because they:
Provide direct access to many system functions.
Support tasks that may not be available in a GUI.
Work well over remote connections.
Allow repeatable and precise operations.
Support automation.
Scale efficiently across many computers.
Bash
Bash, short for Bourne Again Shell, is a widely used shell on Linux systems.
Linux machines used in IT support are often accessed remotely through SSH and may not provide a GUI. As a result, Linux administrators and support specialists must be comfortable entering commands.
PowerShell
PowerShell is a command-line shell associated with Windows. It provides command execution, system administration functions, and automation capabilities.
A technician managing thousands of computers would not want to perform the same task manually through a GUI on every machine. A command or script can automate the task across many systems.
System Applications and Libraries
Users interact with the operating system through more than shells and GUIs. User space also contains system applications and libraries.
Examples include:
Login applications.
System settings.
File-management tools.
Configuration utilities.
Shared software libraries.
Libraries provide reusable functionality that applications can call instead of implementing every operation themselves. System applications use these resources to provide practical tools for managing the computer.
Logs and System Information
Definition of Logs
A log is a file that records events occurring on a computer system.
Logs function like a system diary. They may record:
When the computer started.
When a user logged in.
When a driver loaded.
When an application ran.
When a service started or stopped.
When an error occurred.
Details about failed operations.
All major operating systems maintain logs.
Troubleshooting with Logs
Logs help support specialists investigate events that are not visible through the normal user interface.
A technician can use logs to:
Determine when a problem occurred.
Identify which system component was involved.
Examine error messages.
Compare successful and unsuccessful events.
Reconstruct the sequence of actions leading to a failure.
Develop a likely solution.
Logs can be difficult to interpret because systems record a large volume of information. Useful troubleshooting requires locating relevant entries and distinguishing significant errors from routine events.
Logs are particularly valuable when:
A computer fails to start.
An application repeatedly crashes.
A device driver does not load.
A service stops unexpectedly.
A network connection fails.
The visible symptoms do not identify the cause.
Logs provide historical evidence about system behavior, allowing technicians to investigate events that may not be obvious during normal computer use.
The Computer Boot Process
Booting
Booting is the process of starting a computer and loading it into an operational state.
The word comes from the expression “pull oneself up by one’s bootstraps,” referring to beginning with very little and proceeding through a sequence of steps until the system is fully operational.
Although operating systems differ, most computers follow a broadly similar startup process.
Boot Sequence
1. Power On
The computer receives power and begins executing low-level startup instructions.
2. BIOS or UEFI Initialization
The BIOS or UEFI is low-level firmware that initializes the computer’s hardware.
It prepares and checks essential components so that the system can continue starting. It also contains configuration information, including the order in which storage devices should be checked for a bootable system.
3. Power-On Self-Test
The BIOS or UEFI runs the Power-On Self-Test, or POST.
POST performs diagnostic checks on hardware to determine whether the computer is in a suitable condition to continue booting. Problems detected during POST may prevent startup or produce error messages or diagnostic signals.
4. Boot Device Selection
The firmware selects a boot device based on the configured boot order.
Possible boot devices include:
Internal hard drives.
Solid-state drives.
USB drives.
Optical discs.
Other attached storage devices.
The computer checks devices in the configured order until it finds one containing a bootloader.
5. Bootloader Execution
A bootloader is a small program that loads the operating system.
Once the firmware finds a bootloader, it executes it. The bootloader then begins loading the larger and more complex components of the operating system.
6. Kernel Loading
The bootloader loads the operating system’s kernel into memory.
The kernel then takes responsibility for:
Managing hardware resources.
Initializing system components.
Loading device drivers.
Establishing communication between hardware and software.
Preparing the operating system environment.
7. System Processes and User Space
After the kernel is active, essential system processes and user-space components start.
These may include:
Login services.
Background system services.
Device-management processes.
Networking services.
The desktop environment.
Shells and other user interfaces.
Once these components are running, the user can log in and interact with the computer.
The general boot sequence is: power on, firmware initialization, POST, boot-device selection, bootloader execution, kernel loading, and startup of essential user-space services.
Core Study Summary
An operating system manages computer resources and provides interfaces for users and applications.
The operating system consists primarily of the kernel and user space.
The kernel manages files, processes, memory, hardware, and I/O.
A file system organizes stored data into files, directories, metadata, and disk blocks.
A process is a running instance of a program.
CPU scheduling uses rapid time slices to create the appearance of simultaneous multitasking.
Virtual memory combines RAM and disk space, using pages and swap space to extend available memory.
Device drivers allow the kernel to communicate with hardware.
A GUI uses visual elements, while a shell interprets text commands.
SSH provides secure command-line access to remote computers.
VPNs provide secure access to private networks over the internet.
RDP provides graphical remote access to Windows computers.
Logs record system events and provide evidence for troubleshooting.
The boot process moves from firmware and hardware checks to the bootloader, kernel, system processes, and user interaction.

Ask anything
We've read this whole study set, so questions about it get the best answers.