1.7 - Operating Systems & System Management
The role and functions of operating systems
An operating system is essential software that ensures a computer runs efficiently by coordinating all hardware and software components. Common examples include Windows, macOS, and Linux for desktop computers, as well as Android and iOS for mobile devices.
This software acts as a central manager, handling tasks that keep the system secure, organised, and user-friendly. Without it, hardware and applications could not interact smoothly.
Key functions of operating systems
- Managing hardware resources - This includes overseeing the processor and memory, ensuring they are allocated efficiently to different tasks.
- Handling user accounts - Operating systems create and manage user profiles, which help secure personal files by controlling access and preventing unauthorised changes.
- Providing a user interface - This allows people to interact with the computer easily, without needing advanced technical knowledge.
- Enabling file operations - Users can create, edit, and organise files, with the operating system deciding where data is stored on storage devices like hard drives.
Types of user interfaces and their features
A user interface is the way people communicate with a computer, such as through screens, inputs, and commands. Operating systems provide different types to suit various devices and user needs, balancing ease of use with functionality.
Graphical user interfaces (GUIs)
GUIs are visual systems that use elements like icons, menus, and windows to simplify navigation. They are designed for general users and often allow customisation, such as changing colours or rearranging layouts.
For example, mobile operating systems like Android and iOS use GUIs optimised for touch screens, where interactions involve finger gestures like pinching or swiping.
Command-line interfaces
A command-line interface is text-based, requiring users to type specific commands for the operating system to execute. While more challenging for beginners, it offers greater control and efficiency, making it popular among programmers.
Advantages and limitations of interfaces
- GUIs make computers intuitive but consume processing power to render visuals, which could otherwise speed up other tasks.
- Command-line interfaces are powerful for advanced users but less user-friendly.
- When selecting an interface, consider the device's purpose.
How data is stored in files and directories
Data on a computer is organised into structured units to make it easy to locate and manage. This organisation is handled by the operating system, which maintains a logical hierarchy on storage devices.
Files
A file is a collection of data stored under a single name, known as its filename. Examples include images, documents, or programs. In systems like Windows, files often include an extension (a suffix like .png or .docx) to indicate the file format and suggest which application should open it.
Directories and subfolders
A directory, often called a folder in most operating systems, is a container that holds files and provides details such as the file's location on the disk, its size, creation date, and modification history. Folders help group related files.
Subfolders are directories nested inside other folders, creating a hierarchy for better organisation when dealing with large numbers of files.
Filepaths
Every file has a unique filepath, which describes its exact location in the storage system. Filepaths typically start with a drive letter, followed by folders, the filename, and extension.
Example filepath structure:
C:\Users\j.smith\Documents\report.pdf
C:- The drive or storage device.\Users\j.smith\Documents\- The sequence of folders and subfolders.report- The filename..pdf- The extension.
File creation, saving, and management operations
Operating systems provide tools for handling files through applications, usually accessed via a file menu. These operations allow users to create, store, and modify data efficiently.
Creating and saving files
- New - Starts a blank file in an application, ready for content.
- Save - Stores the file to disk, prompting for a filename and location if it's the first time. For existing files, it overwrites the old version with updates. Saved files can be closed and reopened later.
- Save as - Creates a copy of the file with a new filename.
Managing existing files
- Rename - Changes the filename.
- Delete - Removes the file, making it inaccessible.
- Copy - Creates an identical duplicate in another location.
- Move - Relocates the file to a new folder, updating its filepath.
The importance of organisation in file systems
Folders and subfolders are key to keeping data structured and accessible. By grouping related files, users can navigate quickly and avoid confusion.