1. Home
  2. Explore
  3. Computer Science
  4. Operating Systems Basics

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Operating Systems Basics

Operating Systems and Remote Connections

An operating system is the software layer that makes a computer usable. It manages the computer’s hardware resources and provides ways for people and applications to interact with the system. Without an operating system, a computer would have hardware such as a processor, memory, storage, and input devices, but there would be no convenient way to use them.

Operating systems matter especially in IT support because nearly every troubleshooting task involves understanding how software communicates with the operating system and how the operating system communicates with hardware. For example, diagnosing an application that will not start may require examining processes, memory, file permissions, or system logs. Fixing distorted game graphics may require investigating drivers, input/output devices, or available hardware resources.

This lesson develops two connected ideas:

  1. How technicians connect to and manage computers remotely.
  2. How an operating system is organized and how it manages a computer.

Remote Connections

A remote connection allows a person to access one computer from another computer. The two computers may be in different rooms, buildings, or even countries. Once connected, the technician can interact with the remote machine as though sitting in front of it, depending on the connection method.

For example, a presentation file may be stored on a desktop computer at home while the presenter is using a laptop at work. If the laptop has a remote connection to the home computer, the presenter can log in, locate the file, and copy it to the laptop without physically returning home.

Remote connections are also valuable for technical support. A help desk technician can connect to a customer’s computer after the physical store has closed. This allows the technician to diagnose and solve problems without requiring the customer to bring the computer to a support location.

Remote access makes IT support more efficient because one technician can manage many computers from a central location. It also allows support staff to work on systems that are physically inaccessible or geographically distant.

Secure Shell

SSH, short for Secure Shell, is a protocol that allows one computer to access another computer securely. SSH is commonly used to connect to Linux-based systems, especially when the remote system does not provide a graphical desktop.

SSH requires two software components:

  • An SSH client on the computer initiating the connection.
  • An SSH server on the computer receiving the connection.

The SSH server is not necessarily a separate physical computer. It is a software program running as a background process on the remote computer. The server continuously waits for connection attempts and authenticates clients that request access.

In Linux, the most widely used SSH implementation is OpenSSH.

To connect through SSH, the user generally needs:

  • An account on the remote computer.
  • The remote computer’s hostname or IP address.
  • An SSH client.
  • A valid authentication method, such as a password or key pair.

A connection command may have the general form:

ssh username@IP_address

The username identifies the account to use, and the IP address identifies the destination computer.

Verifying a Remote Host

The first time an SSH client connects to a particular computer, it may display a warning that the authenticity of the host cannot be established. This occurs because the client has not previously saved an identity record for that remote machine.

The warning does not necessarily mean that the connection is unsafe. It means that the client cannot yet confirm that the destination is the expected computer. If the technician verifies that the hostname or IP address belongs to the correct machine, the connection can be accepted.

After acceptance, the remote host is saved as a known host. Future connections to that machine will not normally produce the same first-connection warning.

Once the connection is established, commands typed into the local terminal are sent securely to the SSH server. The remote machine executes those commands and returns the results. SSH is primarily associated with command-line access, although it can also be used to launch applications that provide graphical interfaces.

SSH Authentication

SSH can authenticate users with passwords, but passwords are not always the most secure method. A stronger alternative uses an SSH key pair.

An SSH key pair consists of:

  • A public key, which can be shared and placed on the remote computer.
  • A private key, which must remain secret on the user’s computer.

The two keys are mathematically related but serve different purposes. A helpful analogy is a special safe that uses two complementary keys. One key can be used to secure information, while the other is required to access it. The private key proves that the connecting user possesses the proper secret without requiring the private key itself to be sent across the network.

The important security principle is that the private key should never be shared. Anyone who obtains it may be able to authenticate as its owner, depending on how the SSH system is configured.

SSH provides secure remote access, while SSH keys provide an alternative to password-based authentication through a public and private key pair.

Virtual Private Networks

A VPN, or Virtual Private Network, securely connects a computer to a private network across the public internet. For example, an employee working remotely may use a VPN to connect to the company network.

Once connected through a VPN, the computer may access internal resources such as:

  • Shared file servers.
  • Internal applications.
  • Network devices.
  • Other resources normally available only inside the organization.

A VPN can be thought of as a more extensive form of secure remote connectivity than SSH. SSH usually provides access to one remote computer, while a VPN can provide access to an entire private network. VPNs generally require more setup and configuration because they must establish a secure path between networks or between a user and a network.

PuTTY on Windows

PuTTY is free, open-source software for creating remote connections from Windows. It supports several network protocols, including SSH.

PuTTY can be downloaded as a complete installer, often provided as an MSI file, or as an individual executable such as putty.exe.

The PuTTY graphical interface includes several important connection settings:

  • Host Name: The hostname or IP address of the remote computer.
  • Port: The network port used for the connection.
  • Connection Type: The protocol, such as SSH.

SSH conventionally uses port 222222 by default. After entering the destination address and confirming SSH as the connection type, selecting Open starts the session.

PuTTY can also be used from a command line. A PowerShell command can specify SSH, the remote user, the destination address, and the port. PuTTY also includes Plink, short for PuTTY Link, which is a command-line tool for creating remote connections.

Command-line access is particularly useful when a Windows computer must connect to a remote Linux system.

Remote Desktop Protocol

SSH is usually associated with command-line access. Windows also provides a graphical remote-access method called Remote Desktop Protocol, or RDP.

RDP allows a user to view and interact with the graphical desktop of a remote Windows computer. The remote computer must be configured to allow incoming RDP connections, and the connecting account must be authorized.

The primary Windows RDP client is Microsoft Terminal Services Client, commonly launched through the program:

mstsc.exe

A user can start the client by entering mstsc in the Run dialog or by opening Remote Desktop Connections from the Start menu. The client then asks for the remote computer’s hostname or IP address.

The RDP client can also be launched from the command line with additional parameters. For example, an administrative connection can be requested with an option such as /admin.

RDP clients also exist for other operating systems, including Linux and macOS. Examples include Microsoft’s RDP client for Mac and other remote desktop applications.

Security of Remote Connections

Allowing remote connections creates security risks. An unauthorized person who gains access could view data, change settings, install software, or damage the system. For this reason, remote access should be enabled only for trusted users and protected with appropriate authentication.

In workplaces, system administrators typically configure:

  • Which computers accept remote connections.
  • Which users are allowed to connect.
  • Which protocols and ports are available.
  • How authentication is performed.
  • What level of access each user receives.

Think About It

A learner comparing SSH and RDP should ask: Is command-line control sufficient for the task, or does the task require access to the remote computer’s graphical desktop?

What an Operating System Contains

People often associate an operating system with visible elements such as menus, icons, windows, buttons, and desktop backgrounds. These elements are part of the operating system, but they represent only one portion of it.

An operating system is the complete package that manages system resources and provides interaction between humans, applications, and hardware.

The two broad components of an operating system are:

  1. The kernel.
  2. The user space.

The Kernel

The kernel is the central core of the operating system. It communicates directly with hardware and controls access to resources such as the CPU, memory, storage devices, keyboards, displays, and network adapters.

Applications and users do not normally communicate directly with the kernel’s internal mechanisms. Instead, they request services through operating-system interfaces. The kernel then performs the necessary work while enforcing rules about resource use and access.

The major responsibilities of the kernel include:

  • File and storage management.
  • Process management.
  • Memory management.
  • Input/output management.

The User Space

The user space consists of the operating-system components outside the kernel. It includes the elements that users and applications interact with directly, such as:

  • System programs.
  • Graphical interfaces.
  • Shells.
  • System settings.
  • Login applications.
  • Libraries.
  • User applications.

The user space acts as the practical interaction layer. When a person opens a folder, starts a text editor, changes a setting, or runs a command, the request originates in user space. The kernel then carries out the underlying hardware and resource-management work.

The operating system includes both the kernel, which manages hardware and resources, and the user space, which provides tools and interfaces for people and applications.

Major Operating Systems

Many operating systems exist, but three major desktop operating systems are especially important in IT support: Windows, macOS, and Linux.

Windows

Windows is developed by Microsoft and is widely used in business and consumer environments. Most computers sold as general-purpose PCs include Windows as the default operating system.

The term PC technically means a personal computer, or a computer intended primarily for use by one person. In common usage, however, “PC” is often used to mean a Windows computer.

macOS

macOS is developed by Apple and is primarily used on Apple computers. Apple computers generally come with macOS preinstalled.

Like Windows, macOS is developed and distributed primarily by its respective company. Users typically interact with macOS through its graphical desktop environment, although it also provides command-line tools.

Linux

Linux is an open-source operating system. Open-source software can be shared, modified, and distributed by others under the terms of its license.

Linux is used extensively in business infrastructure and is also available for personal computers. Technically, Linux is the name of a kernel developed by Linus Torvalds. However, because the kernel forms the central part of the operating system, the term “Linux operating system” is commonly used for complete systems built around that kernel.

Linux has developed into a worldwide community effort, with developers from many organizations and regions contributing to it.

Organizations package the Linux kernel and other software components into complete operating systems called distributions, or distros. Common distributions include:

  • Ubuntu.
  • Debian.
  • Red Hat.

Different distributions may include different software, configurations, tools, and package-management systems, even though they share the Linux kernel.

Other Operating Systems

ChromeOS has become increasingly popular. ChromeOS uses the Linux kernel underneath its interface.

Mobile operating systems include:

  • Android OS.
  • iOS.
  • Windows 10 Mobile.

Mobile operating systems are important because mobile phone use has become more widespread than desktop computer use in many parts of the world. Android also uses the Linux kernel underneath its system.

The same general operating-system principles apply across desktop, server, mobile, and specialized systems. Understanding the basic structure of one operating system helps an IT support specialist understand others.

Think About It

If ChromeOS and Android use the Linux kernel, the visible appearance of an operating system cannot be used as the only way to determine what technology is operating underneath.

Kernel Responsibility: File Management

One of the kernel’s most important responsibilities is managing files and storage.

A computer file is stored data. It may be:

  • A document.
  • A picture.
  • A song.
  • A video.
  • An application.
  • Any other collection of data.

A computer may contain hundreds of thousands of files or more. Managing that many files requires an organized system rather than simply placing everything in one large storage container.

The operating system organizes files into directories, commonly called folders. Directories make files easier to locate and allow related files to be grouped together.

Three major components are involved in file handling:

  1. File data.
  2. File metadata.
  3. The file system.

File Systems

A file system is the method used to organize, store, locate, read, and write files on a storage device.

Before a new hard disk can be used effectively, it generally must be erased and configured with a file system. This process allows the operating system to understand how data is arranged on the disk.

Different file systems make different design choices. They may vary in:

  • The amount of data they support.
  • Access speed.
  • Security features.
  • Encryption support.
  • Resistance to corruption.
  • Recovery and reliability features.

Different operating systems commonly recommend different file systems.

Windows: NTFS

The major file system used by Windows is NTFS, which originally appeared with Windows NT. NTFS includes features such as:

  • Encryption.
  • Security controls.
  • Efficient access to stored data.
  • Other features for managing files and storage.

Microsoft has also developed ReFS, or Resilient File System, although it has not become the standard consumer file system described here.

macOS: HFS+

The default file system historically associated with macOS is HFS+. It is a journaled file system.

Journaling means that the file system keeps records of intended changes before fully applying them. If the computer loses power or experiences a failure during an operation, those records can help the system determine the disk’s state and recover more reliably.

Linux: ext4

Linux distributions may use different file systems. A widely used Linux standard is ext4, which is compatible with earlier ext file systems.

File systems are not always interchangeable. Moving a file between storage devices with different file systems may be difficult or may limit which features are preserved. A practical guideline is to use the file system recommended for the operating system and task.

File Data and Blocks

Actual file contents are stored on a disk in units called data blocks. A file does not always occupy one continuous section of the disk. Its data may be divided into pieces and stored in different locations.

Block-based storage improves flexibility and helps the system use available storage space efficiently. The file system keeps track of which blocks belong to each file so that the operating system can reconstruct the file when it is read.

File Metadata

Metadata is information about a file rather than the file’s main contents. It may include:

  • The file’s creator.
  • The date and time it was created.
  • The date and time it was last modified.
  • Which users can access it.
  • What type of file it is.
  • Other properties used by the operating system.

A file extension is the ending portion of a filename that often identifies the file type. For example, in:

cool_image.jpg

the .jpg extension indicates that the file is associated with an image format.

Metadata and file-system knowledge are useful in IT support when recovering information from damaged disks, examining permissions, or configuring a computer to boot multiple operating systems such as Windows and Linux.

Kernel Responsibility: Process Management

A program is an application that can be run. A process is a program that is currently executing.

For example, a web browser installed on a computer is a program. When the browser is launched, the operating system creates one or more processes to execute it. Multiple processes may belong to the same program. Several browser windows or browser activities can therefore create multiple processes even though they originate from the same application.

Every running process needs computer resources, including:

  • CPU execution time.
  • RAM.
  • Access to storage.
  • Input and output operations.

Because the computer has a limited amount of each resource, the kernel must distribute resources among many processes. The operating system itself also runs background processes that are necessary for the computer to function.

CPU Scheduling and Time Slices

A computer may appear to execute many processes simultaneously, but a single CPU core executes instructions from individual processes in rapid succession.

The kernel’s process scheduler determines which process receives CPU attention and for how long. It gives each process a short interval called a time slice.

A time slice is so brief that people perceive multiple applications as running at the same time. The CPU may execute one process for a short interval, switch to another, and continue cycling among many processes.

This rapid switching is called multitasking from the user’s perspective. The kernel must balance responsiveness, fairness, and efficient use of CPU time.

A slow computer may result from several process-related problems:

  • One process may consume unusually large amounts of CPU time.
  • Too many processes may compete for the available CPU.
  • Background activity may consume resources needed by interactive applications.
  • A process may be stalled while waiting for input or output.

The kernel also handles process termination. When a process ends, the operating system must reclaim the CPU time, memory, and other resources that process used so they can be assigned elsewhere.

Think About It

A learner observing music playing while a document is being edited is seeing the effect of process scheduling: the CPU rapidly alternates among processes, creating the appearance of simultaneous execution.

Kernel Responsibility: Memory Management

Processes need memory so that their instructions and data can be loaded and accessed quickly. The main physical memory used by active processes is RAM.

RAM is faster than disk storage, but computers generally have less RAM than storage space. Loading every part of every application into RAM would be inefficient and often impossible.

To extend the amount of memory available to processes, the operating system uses virtual memory.

Virtual Memory

Virtual memory combines RAM with space on a storage device so that it behaves as a larger memory resource. A program is divided into smaller units called pages. The operating system stores these pages in virtual memory and moves the pages needed by active processes into physical RAM.

Only the portions of a program currently needed must occupy RAM. For example, a word processor may not load every menu and feature into RAM immediately. When the user opens a rarely used menu, the operating system may need to bring the relevant pages from virtual memory into RAM.

This resembles using a cookbook. A cook does not need to memorize or place the entire cookbook on the counter to prepare one recipe. Only the pages needed for the current recipe need to be immediately available.

Swap Space

When virtual memory uses space allocated on a hard drive or other storage device, that storage area is called swap space.

The kernel manages the movement of pages between RAM and swap space. This process allows more programs to remain available than would fit entirely in RAM, but storage is slower than RAM. If the system relies heavily on swapping, the computer may become noticeably slow.

Memory management therefore involves balancing:

  • How many processes can remain active.
  • Which pages should remain in RAM.
  • Which pages can be moved to storage.
  • How much memory each process receives.

Kernel Responsibility: Input and Output Management

Input/output, abbreviated I/O, describes the movement of data into and out of a computer system.

I/O devices include:

  • Monitors.
  • Keyboards.
  • Mice.
  • Hard disk drives.
  • Speakers.
  • Bluetooth headsets.
  • Webcams.
  • Network adapters.

The kernel manages communication with these devices. It loads and uses device drivers, which are software components that allow the operating system to understand how to communicate with particular hardware.

Once the appropriate driver is available, the kernel manages data transfers between the device and the rest of the computer. It also manages communication between devices. For example, data may need to move from a webcam through the processor and memory to a network adapter during a video call.

I/O management includes both human interaction and device-to-device communication:

  • Clicking a mouse provides input.
  • Typing on a keyboard provides input.
  • Saving a document sends output to storage.
  • Displaying an image sends output to a monitor.
  • Speaking into a microphone provides input.
  • Playing music sends output to speakers or a headset.
  • Sending information across a network uses a network adapter.

The kernel also attempts to choose efficient transfer methods and protect data from errors during processing.

Resource Bottlenecks

A resource bottleneck occurs when one limited resource restricts the performance of the whole system.

Common examples include:

  • Insufficient RAM, limiting how many processes can remain active.
  • Insufficient CPU capacity, slowing instruction execution.
  • Excessive input, causing incoming data to wait.
  • Excessive output, causing outgoing data to wait.
  • Slow storage, delaying file operations.

The phrase “the computer is slow” can therefore have many causes. A technician must identify which resource is overloaded or insufficient instead of assuming that every performance problem comes from the same source.

The same reasoning applies beyond desktop computers. In servers and large IT systems, identifying a bottleneck can improve the responsiveness of web applications and other services.

User Space and Human Interaction

The kernel manages resources, but people need practical ways to request actions. The user space provides these interaction methods.

A user can create files, open applications, delete items, change settings, and perform other operations through:

  1. A graphical user interface.
  2. A shell or command-line interface.
  3. System applications and libraries.

Graphical User Interfaces

A graphical user interface, or GUI, is a visual way to interact with a computer. It uses elements such as:

  • Windows.
  • Icons.
  • Menus.
  • Buttons.
  • Pointers.
  • Dialog boxes.
  • Desktop backgrounds.

A user can click, drag, open folders, select options, and launch applications. GUIs are common in desktop computers, smartphones, tablets, ATMs, and airport kiosks.

The design of a GUI often helps people recognize an operating system. The appearance of windows, menus, icons, and settings can distinguish Windows from macOS, even when both systems perform similar tasks.

Shells and Command-Line Interfaces

A shell is a program that interprets text commands and sends instructions to the operating system. A command-line interface, or CLI, allows the user to interact with the shell by typing commands rather than selecting visual controls.

Although GUIs are convenient, shells remain essential in IT support. Some tasks can be completed only through commands, and command-line tools are often faster and more precise for repetitive work.

Linux support frequently depends on shell access because many Linux systems are managed remotely without a graphical interface. A technician may connect through SSH and perform all necessary tasks from a terminal.

The commonly used Linux shell in this context is Bash, short for Bourne Again Shell. Windows provides PowerShell, which is designed for command-line administration and automation.

Why Both GUI and Shell Matter

A GUI may be easier for a single interactive task, but a shell becomes much more powerful when the same operation must be performed repeatedly.

For example, clicking through a GUI on thousands of computers would be slow and error-prone. A command or script can perform the same operation across many machines more consistently. Shell commands also support automation, remote management, and detailed control.

The distinction can be summarized as follows:

InterfaceMain interaction methodTypical strength
GUIClicking and selecting visual elementsDiscoverability and ease of use
Shell or CLITyping text commandsAutomation, speed, precision, and remote administration

User space also includes system applications and libraries. Examples include login programs, settings tools, file managers, and other applications that provide services people use every day.

Logs and Troubleshooting

Computers record many events in logs. A log is a file containing a record of system activity, similar to a system diary.

Logs may record:

  • When the computer started.
  • When a device driver loaded.
  • When an application or service ran.
  • When an error occurred.
  • When a system component experienced a problem.

Logs are valuable because they provide evidence about events that may not be visible through the normal interface. If a computer repeatedly shuts down, an error record may help identify what happened before each shutdown.

However, logs can be difficult to read because computers may record a very large number of events. The useful information may be mixed with routine messages. Troubleshooting therefore requires searching, filtering, and interpreting log entries to reconstruct the sequence of events.

For an IT support specialist, logs are especially useful when:

  • The problem is intermittent.
  • The user cannot describe exactly what happened.
  • The issue occurred while no technician was present.
  • The visible symptoms do not reveal the cause.
  • A system fails during startup or while running a service.

Logs do not automatically provide a complete solution, but they provide clues that help narrow the range of possible causes.

The Boot Process

Booting means starting a computer and loading it into an operational state. The word refers to the idea of starting from nothing and progressing through a sequence of steps.

Understanding the boot process helps IT support specialists diagnose computers that fail to start. Most operating systems follow a general sequence.

1. Power On

The process begins when the computer receives power and is turned on.

2. BIOS or UEFI Initialization

The computer’s BIOS or UEFI is low-level firmware that initializes the hardware. It prepares the system so that the processor, memory, storage devices, and other essential components can be examined and used.

3. Power-On Self-Test

The BIOS or UEFI performs a Power-On Self-Test, or POST. POST runs diagnostic checks to determine whether the basic hardware is functioning properly.

If a serious hardware failure is detected, the computer may display an error, produce diagnostic sounds, or stop before the operating system begins loading.

4. Boot Device Selection

The BIOS or UEFI examines storage devices according to a configured boot order. Possible boot devices include:

  • Internal hard drives.
  • Solid-state drives.
  • USB drives.
  • Optical discs.

The firmware searches these devices for a bootloader.

5. Bootloader Execution

A bootloader is a small program whose job is to locate and begin loading the operating system. Once the firmware finds a valid bootloader on the selected device, it executes that program.

The bootloader then loads the larger operating-system components.

6. Kernel Loading

The bootloader loads the operating system’s kernel into memory. The kernel takes control of system resources and begins managing the hardware.

It also loads device drivers and other components so that software can communicate with hardware.

7. System Processes and User-Space Components

After the kernel is active, essential system processes and user-space components start. These may include:

  • Login services.
  • Background system services.
  • Desktop environments.
  • User interfaces.
  • Other programs needed for interaction.

Once these components are available, the user can log in and begin working.

The boot process moves from hardware initialization to firmware diagnostics, boot-device selection, bootloader execution, kernel loading, and finally the startup of user-space services.

Think About It

When a computer fails before showing a login screen, the failure may have occurred before user-space programs started. Checking power, POST results, boot-device selection, the bootloader, and kernel loading can help locate the stage where startup stopped.

Comprehensive Review

An operating system is more than a desktop background or collection of menus. It is the complete software system that manages hardware, controls resources, runs programs, stores files, communicates with devices, and provides interfaces for people.

The kernel is the operating system’s core. Its main responsibilities are:

  • File management: organizing file data, metadata, directories, and storage blocks through a file system.
  • Process management: creating, scheduling, and terminating executing programs.
  • Memory management: allocating RAM and using virtual memory and swap space when necessary.
  • I/O management: communicating with keyboards, displays, storage, networks, audio devices, webcams, and other hardware through drivers.

The user space contains the tools and interfaces people use directly. It includes graphical interfaces, shells, system applications, libraries, settings, and other programs.

Windows, macOS, and Linux are major operating systems used in IT. Windows is developed by Microsoft, macOS by Apple, and Linux is based on an open-source kernel supported by a worldwide community. Ubuntu, Debian, and Red Hat are examples of Linux distributions. ChromeOS and Android also use the Linux kernel underneath their higher-level systems.

Remote connections allow IT professionals to manage computers from distant locations. SSH provides secure command-line access, VPNs provide secure access to private networks, PuTTY helps Windows users make SSH connections, and RDP provides graphical access to remote Windows computers.

Logs record system events and help technicians investigate failures that are not obvious from the user interface. Finally, booting follows a sequence from power-on and BIOS or UEFI initialization through POST, boot-device selection, bootloader execution, kernel loading, and startup of user-space services. Understanding these layers allows an IT support specialist to trace problems from the visible symptom back to the underlying system component.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent