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

Speaker 1Speaker 2

Operating Systems Basics

15:33
0:00-15:33
  1. Michael

    Welcome back. We've already covered binary and the hardware layer of computer architecture, so now we're moving up to the operating system. An operating system is essential because it manages a computer's resources and gives people a way to interact with the machine. Whether someone is browsing the web, writing, editing graphics, or playing a game, they're relying on an operating system.

  2. Corey

    And that makes operating systems especially important in IT support. If an application will not start, graphics look wrong, or a computer is behaving strangely, understanding the operating system helps you diagnose what the user is trying to do and where the problem might be.

  3. Michael

    A major IT support capability is making a remote connection. Imagine leaving an important presentation on your home desktop. With a remote connection from your laptop to that desktop, you can log in from elsewhere and copy the file as if you were sitting at home. Remote support works the same way: a technician can help manage a computer without physically being at the machine.

  4. Corey

    That is useful beyond convenience. Remote connections let support staff manage multiple machines from almost anywhere, including outside normal store hours. Instead of waiting for a physical help desk to open, a user can work with a technician online.

  5. Michael

    One important remote-access technology is SSH, or Secure Shell. SSH is a protocol implemented by programs to securely access one computer from another. The computer you connect from needs an SSH client, and the remote computer needs an SSH server. The server is not necessarily a separate physical machine; it is software running as a background process that checks for connection attempts and authenticates them.

  6. Corey

    So to connect, you need an account on the remote computer, plus its hostname or IP address. In Linux, the most popular program for SSH is OpenSSH. A command might look like `ssh cindy@IP address`, where the username and address identify the account and computer.

  7. Michael

    The first time you connect, the SSH client may warn that the host's authenticity cannot be established. That simply means the client has not connected to this machine before and cannot yet verify it. If you confirm that it is the correct machine by typing yes, the host is saved as a known host, so you typically will not receive that message on the next connection.

  8. Corey

    Once connected, text commands typed on your computer are sent securely to the SSH server. SSH can primarily give you a shell session, but you can even launch an application that displays a graphical interface, though that requires additional setup.

  9. Michael

    SSH can authenticate with a password, but password authentication is not considered as secure as using SSH keys. SSH keys come as a pair: a public key and a private key. The pair works like the keys to a special safe—one key can lock it, while the other can unlock it—so access depends on having the appropriate public and private keys.

  10. Corey

    Another secure remote connection method is a VPN, or Virtual Private Network. A VPN lets you connect to a private network, such as a workplace network, over the internet. Compared with SSH, it involves more setup and works at a broader network level, allowing access to resources like shared file servers and network devices as though you were connected to the work network.

  11. Michael

    Windows users can also use PuTTY, a free, open-source program that supports several network protocols, including SSH. You can download the full package as an MSI installer or choose a particular executable, such as putty.exe. In the PuTTY graphical interface, the key settings are Host Name, Port, and Connection Type.

  12. Corey

    For SSH, the default port is 22, and the connection type is SSH. You enter the hostname or IP address of the computer, select Open, and a new SSH session starts. PuTTY can also be used from PowerShell by specifying the application, adding the `-ssh` option, providing a user and address in the form `user@IP address`, and specifying a port if needed.

  13. Michael

    PuTTY also includes Plink, short for PuTTY Link. Plink is a command-line tool that can make remote SSH connections after PuTTY is installed. This is especially useful when connecting from Windows to a remotely running Linux system.

  14. Corey

    For connecting to other Windows computers, Microsoft provides Remote Desktop Protocol, or RDP. RDP gives you a graphical user interface for a remote computer, as long as that computer has incoming RDP connections enabled. The main Windows client is `mstsc.exe`, also called the Microsoft Terminal Services Client.

  15. Michael

    On the remote Windows computer, remote access can be enabled through This PC, Properties, Remote Settings, and the Remote Desktop settings. This has security consequences, so only trusted users should be allowed to connect. In workplaces, system administrators usually control these settings and the list of users who can access company computers.

  16. Corey

    Once access is enabled, you can launch the RDP client by typing `mstsc` in the Run box or by finding Remote Desktop Connections in the Start menu. The client asks for the remote computer's name or IP address. It can also be run from the command line with additional parameters, such as `/admin` for an administrative connection.

  17. Michael

    Now let's define the operating system itself. Many people picture only the desktop, menus, buttons, and backgrounds, but those are just part of the whole package. An operating system has two major components: the kernel and the user space.

  18. Corey

    The kernel is the core of the operating system. It communicates directly with hardware and manages system resources, but users generally do not interact with it directly. The user space is everything outside the kernel, including system programs, user interfaces, and other things people interact with. When we say operating system, we mean both the kernel and the user space.

  19. Michael

    The major operating systems emphasized in IT are Windows, macOS, and Linux. Windows is developed by Microsoft and is widely used in business and consumer settings; most PCs come with it by default. In everyday usage, PC is commonly used to mean a Windows computer, even though technically a personal computer is simply a computer used by one person.

  20. Corey

    Apple develops macOS, which comes preloaded on Apple computers and is mainly used in the consumer space. Linux is open source, meaning its software can be freely shared, modified, and distributed. Linux is used heavily in business infrastructure as well as by consumers.

  21. Michael

    Technically, Linux itself is a kernel developed by Linus Torvalds. Because of how it evolved, people commonly refer to the complete systems built around it as Linux operating systems. Since Linux is open source, organizations can package it in different ways. These versions are called distributions, or distros; examples include Ubuntu, Debian, and Red Hat.

  22. Corey

    Other systems include ChromeOS and mobile operating systems such as Android OS, iOS, and Windows 10 Mobile. This lesson does not explore them in detail, but it points out that mobile operating systems are rapidly becoming more numerous than desktop systems. Also, ChromeOS and Android OS use the Linux kernel underneath, so someone may already have used Linux without realizing it.

  23. Michael

    Even though operating systems differ, they share common characteristics. Understanding the building blocks of one operating system helps you understand others, which matters in IT support because you may work with desktop, server, and smartphone systems.

  24. Corey

    Let's break down the kernel's main responsibilities. They are file management, process management, memory management, and input/output management. These functions are the reason the operating system can organize data, run programs, use memory efficiently, and communicate with hardware.

  25. Michael

    File management begins with the idea of a file: stored data that could be a document, picture, song, or almost anything else. A file system is the method used to organize and manage those files, usually through folders or directories. Without that organization, storing hundreds of thousands of files would make them extremely difficult to find.

  26. Corey

    There are three main parts involved in handling files: the file data, the metadata, and the file system. A new hard disk has to be erased and configured with a file system so the operating system knows how to read and write data. Different file systems vary in capacity, speed, and resistance to corruption.

  27. Michael

    The major operating systems commonly recommend different file systems. Windows primarily uses NTFS, which includes features such as encryption, security, and faster access speeds. Microsoft is also developing ReFS, but it was not yet ready for general consumer use in the material.

  28. Corey

    The default file system for macOS is HFS+, which is journaled. Journaling helps preserve the disk's state if a failure occurs, and similar features exist in other systems such as NTFS. Linux distributions can use different file systems, but ext4 is a common standard and is compatible with older ext file systems.

  29. Michael

    Different file system types do not always work smoothly together, so moving files between them may not be easy. A practical guideline is to use the file system recommended by your operating system. Knowing these differences can help with tasks such as recovering data from damaged disks or setting up Windows and Linux on the same computer.

  30. Corey

    The actual file data is written to a hard drive in data blocks. A file may be divided into many pieces and stored in different parts of the disk instead of sitting in one continuous piece. Block storage can improve data handling and make better use of available storage space.

  31. Michael

    Metadata stores information about a file, such as who created it, when it was last modified, and who can access it. It also identifies the file type. In some operating systems, the file extension is the part appended to the filename that indicates its type—for example, `.jpg` in `cool_image.jpg` identifies an image file.

  32. Corey

    The next kernel responsibility is process management. A program is an application that can be run, while a process is a program that is currently executing. You can have several processes from the same program—for example, multiple Chrome windows can represent multiple processes.

  33. Michael

    Every process needs resources such as RAM and CPU time, and those resources are limited. The kernel creates processes, schedules them, manages their resource use, and terminates them when necessary. When a process ends, its previously used resources can be collected and assigned to another process.

  34. Corey

    A computer may appear to run many processes simultaneously, but a single CPU actually executes them one at a time. The process scheduler gives each process a very short interval called a time slice. It switches between processes in milliseconds, creating the appearance of simultaneous activity.

  35. Michael

    If a computer is slow and CPU usage is maxed out, one process might be taking more time slices than it should, or there may simply be too many processes competing for CPU time. The kernel manages this automatically, although support staff may sometimes need to intervene manually.

  36. Corey

    Processes also need memory, and RAM is available in smaller quantities than hard-drive storage. Virtual memory combines hard-drive space and RAM to provide memory that processes can use. Program data is divided into chunks called pages; pages needed for execution are moved into physical memory, or RAM.

  37. Michael

    Loading only the needed pages avoids filling RAM with an entire large application. For example, a word processor may slow briefly when you open a menu you have not used, because the computer has to load that menu's page from virtual memory into RAM. The hard-drive portion reserved for virtual memory is called swap space, and the kernel moves pages between RAM and that space.

  38. Corey

    The fourth major kernel function is input/output, or I/O, management. I/O devices include monitors, keyboards, mice, hard drives, speakers, Bluetooth headsets, webcams, and network adapters. The kernel loads drivers so it can recognize and communicate with this hardware.

  39. Michael

    I/O management covers data moving into and out of devices, communication between devices, and choosing efficient transfer methods. Saving a file to disk, clicking a mouse, using a microphone, or sending data across a network all depend on the kernel's I/O management. The kernel also works to prevent errors during transfers.

  40. Corey

    This gives IT support a useful way to think about slow computers. Insufficient RAM limits how many processes can be loaded, insufficient CPU slows program execution, and excessive input or output can block other data. Finding the hardware resource that has become a bottleneck is an important part of troubleshooting, whether the system is a desktop or a large server.

  41. Michael

    Now let's return to the user space, which is everything outside the kernel that people interact with directly. This includes programs such as text editors and music players, system settings, system applications, and user interfaces. There are two major ways to interact with an operating system: a shell and a graphical user interface.

  42. Corey

    A graphical user interface, or GUI, is visual. You use a mouse to click and drag, open folders, select menus, and launch applications. GUIs appear on computers, phones, tablets, ATMs, and airport kiosks, and people often recognize an operating system by the design of its windows, menus, and icons.

  43. Michael

    A shell is a program that interprets text commands and sends them to the operating system for execution. Shells were essential before graphical interfaces existed, and they remain common among power users. In Linux, the Bash shell—Bourne Again Shell—is the common shell emphasized here; Windows also has PowerShell, which is covered later in the program.

  44. Corey

    Knowing a shell is vital in IT support. Linux machines are often accessed remotely without a GUI, and some tasks can only be completed through commands. If you manage thousands of computers, running one command across them is far more practical than clicking through a GUI on every machine. System applications and libraries, such as login tools and system settings, are another way users interact with the operating system.

  45. Michael

    Operating systems also keep logs. Logs are files that record system events, almost like a system diary. They can record when the computer started, when a driver loaded, and when something failed through an error message.

  46. Corey

    Logs can be difficult to read because the computer records so much information, but they provide evidence about events that are not obvious from the user interface. For IT support, learning to navigate logs can help piece together what happened and identify a solution.

  47. Michael

    Finally, let's cover booting, which means starting a computer. The word refers to starting from nothing and following a sequence of steps until the system is fully operational. First, the computer powers on, and the BIOS or UEFI initializes the hardware.

  48. Corey

    Next, BIOS or UEFI runs the Power On Self Test, or POST, which performs diagnostic checks to see whether the computer is working properly. Then, according to the configured boot order, the computer checks devices such as hard drives, USB drives, or CD drives for a bootloader.

  49. Michael

    A bootloader is a small program that loads the operating system. Once found, it begins executing and loads the larger operating-system program, including the kernel. The kernel then takes control of resource access and loads drivers so the hardware can communicate with software.

  50. Corey

    After that, essential system processes and user-space components start. These include user login and the desktop environment, which allow the person to interact with the system. So the complete picture is this: the operating system combines the kernel and user space, manages files, processes, memory, and I/O, provides shells and GUIs, records events in logs, and launches through a defined boot process.

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent