Unit 2

Operating Systems: MS-Windows & Linux

Learn what an Operating System is, explore the Windows graphical interface, manage files and folders, and master essential Linux commands.

📖 Theory Windows GUI Linux Commands File Management Keyboard Shortcuts
🖥️

2.1 What is an Operating System?

Definition: An Operating System (OS) is a system software that acts as an interface between the user and the computer hardware. It manages all hardware resources and provides services for application programs to run.

Without an operating system, a computer is just a collection of electronic components. The OS is the first program loaded when a computer starts (booting). It controls memory, processes, files, security, and connected devices.

⚙️

2.2 Functions of an Operating System

🧠

Process Management

Creates, schedules, and terminates processes. Manages CPU time between programs.

💾

Memory Management

Allocates and deallocates RAM to programs. Manages virtual memory and paging.

📁

File Management

Organizes files in folders/directories. Controls read, write, and delete permissions.

🔌

Device Management

Controls I/O devices through device drivers. Coordinates access to printers, disks, etc.

🔐

Security

Manages user authentication, passwords, access control and protects data from unauthorised access.

🌐

Network Management

Manages network connections, protocols, and communication between computers.

📋

2.3 Types of Operating Systems

👤 Single-User Single-Task

One user, one program at a time. Example: MS-DOS, early Palm OS.

🔄 Single-User Multi-Tasking

One user, multiple programs simultaneously. Example: Windows, macOS.

👥 Multi-User

Multiple users access the system at the same time. Example: Unix, Linux servers.

Real-Time OS (RTOS)

Processes data instantly with no delay. Used in aircraft, medical devices, robots.

📱 Mobile OS

Designed for smartphones and tablets. Example: Android, iOS.

☁️ Cloud-Based OS

Runs in a browser, uses cloud services. Example: Google ChromeOS.

🌐 Network OS

Manages network resources across computers. Example: Windows Server, Novell NetWare.

💻 Virtual OS

Runs inside another OS using virtualisation. Example: VirtualBox, VMware.

🔧 Embedded OS

Built into devices like smart TVs, ATMs, washing machines. Example: VxWorks, Embedded Linux.

🔀 Distributed OS

Manages a group of computers as a single system. Example: Amoeba, Plan 9.

⏱️ Time-Sharing OS

CPU time shared between multiple users/tasks in turns. Example: Unix time-sharing.

📦 Batch OS

Jobs collected in batches and processed sequentially. Example: Early IBM mainframe OS.

📌 Key Points

  • The OS is the most important system software — it manages all hardware and software resources.
  • Without an OS, application programs (like MS Word) cannot run.
  • Windows is a Single-User, Multi-Tasking, GUI-based OS.
  • Linux is a Multi-User, Open-Source OS used on servers and desktops.
  • The process of loading the OS when the computer starts is called Booting.
🪟

2.4 Microsoft Windows

Windows is a Graphical User Interface (GUI) based operating system developed by Microsoft. It uses icons, menus, and windows instead of text commands, making it easy for any user to operate a computer without knowing programming.

Installing Windows: Windows is installed from a bootable USB drive or DVD. During installation, the user selects the partition (drive), enters a product key, and sets up user accounts and preferences.

Booting the System: When the computer starts, the BIOS loads the bootloader, which then loads the Windows kernel into RAM. This process is called booting. A cold boot is starting from power-off; a warm boot is restarting.

🖼️

2.5 Windows Desktop — GUI

GUI (Graphical User Interface) allows users to interact with the computer using visual elements like icons, buttons, and menus, instead of typing text commands. GUI standards include consistent layout, WYSIWYG (What You See Is What You Get), cursors, and drag-and-drop.

🖥️
My Computer
📁
My Documents
🗑️
Recycle Bin
🌐
Network
📧
Mail
⊞ Start
📁 Explorer
🌐 Chrome
🔈 🌐 🔋 10:30

Fig 2.1 — Windows Desktop Layout

🗂️

2.6 Desktop Icons and Their Functions

IconNameFunction
🖥️My Computer / This PCShows all drives (C:, D:), connected devices, and system information.
📁My DocumentsDefault folder to save user files like Word documents, spreadsheets.
🌐Network NeighbourhoodShows computers connected to the same local network.
🗑️Recycle BinTemporarily stores deleted files. Files can be restored or permanently deleted.
Quick Launch ToolbarArea in taskbar for one-click access to frequently used programs.
🔈System TrayBottom-right area showing time, volume, network, battery status icons.
Start MenuMain menu to open programs, settings, documents, and shut down.
📋Task BarHorizontal bar at bottom showing open applications and Start button.
🗃️

2.7 Dialog Boxes and Controls

A Dialog Box is a pop-up window that requests user input or displays information before proceeding with an action.

Types of Dialog Box Controls

Displays a list of options to scroll and select from.
Shows a number with up/down arrows to increase or decrease a value.
A draggable bar to select a value within a range (e.g., volume).
A collapsed list that expands when clicked to show options.
Round buttons — only one option can be selected at a time.
Square boxes — multiple options can be selected simultaneously.
A blank field for the user to type in text or numbers.
🪟

2.8 Parts of a Window

Title Bar

Top bar showing the name of the open file/program. Contains Minimize, Maximize, Close buttons.

Menu Bar

Contains drop-down menus like File, Edit, View, Format, Tools, Help.

Scroll Bar

Vertical and horizontal bars to scroll through content that doesn't fit on screen.

Status Bar

Bottom bar showing current status info like page number, word count, zoom level.

Maximize

Expands the window to fill the entire screen.

Minimize

Hides the window to the taskbar without closing it.

Close (✕)

Closes the window and exits the program.

Resize & Move

Drag the window edges to resize; drag the title bar to move it.

🛠️

2.9 Windows Accessories & Tools

📝

Notepad

Simple plain-text editor. Open, save, format, find & replace text. File extension: .txt

📃

WordPad

Rich text editor with basic formatting (bold, colour, alignment). Saves as .rtf or .docx.

🎨

MS Paint

Basic image editor. Create/edit images using brushes, shapes, fill, text. Saves as .bmp, .png, .jpg.

🧮

Calculator

Standard, scientific, programmer, and date-calculation modes available.

⚙️

Control Panel

System settings: display, sound, network, user accounts, programs, date & time.

👤

User Accounts

Create, modify, delete user accounts. Set passwords and account types (Admin / Standard).

💾

2.10 File Systems and Backup

File System: The method an OS uses to organise and store files on a storage device. Windows supports NTFS (New Technology File System — supports large files, permissions, encryption) and FAT32 (older, compatible with most devices).

File SystemMax File SizeFeaturesUsed In
FAT324 GBCompatible with most OS, USB drivesPen drives, SD cards
NTFS16 TBPermissions, encryption, journalingWindows system drives
exFAT16 EBFAT32 without size limitsLarge USB drives, cameras

Special Files: System files (hidden files needed for OS to boot), configuration files (.ini, .cfg), log files (.log), and temporary files (.tmp).

Backup and Restoration: Windows provides File History and Backup & Restore tools. Users can create restore points (System Restore) to return the system to a previous working state. Always back up important data to an external drive or cloud storage.

📌 Windows Key Points

  • GUI uses icons, menus and windows — no need to type commands.
  • The Recycle Bin temporarily holds deleted files — they can be restored.
  • The System Tray (bottom-right) shows clock, network, sound and battery icons.
  • Dialog boxes collect user input through text boxes, radio buttons, check boxes, etc.
  • NTFS is the preferred file system for Windows drives — supports large files and permissions.
  • File History and System Restore help recover data from accidental changes or crashes.
  • User accounts can be Administrator (full control) or Standard (limited rights).
🐧

2.11 Introduction to Linux

Linux is a free, open-source, multi-user, multi-tasking operating system based on Unix. It was created by Linus Torvalds in 1991. Linux is widely used on servers, supercomputers, Android phones, and embedded systems. It is known for its stability, security, and flexibility.

2.12 Features of Linux

Open Source

Source code is freely available. Anyone can view, modify and distribute it.

Multi-User

Multiple users can log in and use the system simultaneously.

Multi-Tasking

Runs multiple processes at the same time without slowing down.

Security

Strong permission model. Virus and malware attacks are rare.

Stability

Can run for years without crashing. Ideal for servers.

Portability

Runs on many hardware platforms — from phones to supercomputers.

🔩

2.13 Components of Linux

⚙️

Kernel

Core of the OS. Manages CPU, memory, device drivers and system calls. Directly interacts with hardware.

💬

Shell

Command-line interface between user and kernel. Types: Bash, sh, csh, ksh. Interprets user commands.

📁

File System

Hierarchical directory structure starting from root (/). Supports ext4, xfs, btrfs file systems.

📦

Utilities

System programs and tools — file managers, text editors (vi, nano), compilers, network tools.

📋

2.14 Linux Process & Thread Management

A Process is an instance of a running program. Every process has a unique PID (Process ID). Linux can run thousands of processes simultaneously using scheduling algorithms.

A Thread is the smallest unit of a process. A single process can have multiple threads that share the same memory space but run independently.

CommandPurpose
psDisplay running processes
topReal-time view of all running processes and CPU/memory usage
kill [PID]Terminate a process by its PID
niceSet priority of a process
💻

2.15 Linux Commands and Utilities

user@linux:~$ _
Type a command and press Enter. Linux is case-sensitive.

File & Text Commands

cat [file]Display the contents of a file on screen. Example: cat notes.txt
tail [file]Show the last 10 lines of a file. Useful for log files. Use tail -n 20 for 20 lines.
cmp [f1] [f2]Compare two files byte by byte and report the first difference.
diff [f1] [f2]Show line-by-line differences between two files — like comparing document versions.
wc [file]Count words, lines, and characters in a file. wc -l counts lines only.
sort [file]Sort the lines of a file alphabetically or numerically. Output to screen or new file.

Directory & File Management Commands

mkdir [dir]Make a new directory (folder). Example: mkdir Documents
cd [dir]Change Directory — navigate into a folder. cd .. goes up one level.
rmdir [dir]Remove an empty directory. Use rm -r to remove non-empty directories.
pwdPrint Working Directory — shows the full path of the current location.
cp [src] [dst]Copy a file from source to destination. cp -r copies entire directories.
mv [src] [dst]Move or rename a file/directory. Example: mv old.txt new.txt
more [file]View a long file one screen at a time. Press Space to advance, Q to quit.
chmod [perm] [file]Change file permissions (read/write/execute) for owner, group, others. Example: chmod 755 script.sh

User & Communication Commands

passwdChange the password of the current user. Prompts for old and new password.
whoDisplay who is currently logged into the system and when they logged in.
whoamiDisplay the username of the currently logged-in user.
kill [PID]Terminate a running process by its Process ID (PID).
write [user]Send an instant message to another logged-in user on the same system.
wall [message]Broadcast a message to ALL logged-in users simultaneously.
merge [files]Merge changes from multiple files. Often used with version control tools.
mail [user]Send or read email from the command line using the built-in mail utility.
newsRead newsgroup articles posted to the system's news server.
🗂️

2.16 Linux File Management System

Linux uses a hierarchical directory structure starting from the root ( / ). Everything in Linux — files, devices, processes — is represented as a file in this tree structure.

DirectoryContents
/Root — the top-level directory. All other directories branch from here.
/homeUser home directories. Each user gets a folder: /home/username
/etcSystem configuration files (network settings, user accounts, services).
/binEssential command binaries (ls, cp, cat, mkdir, etc.)
/usrUser programs and utilities. /usr/bin, /usr/lib
/varVariable data — log files, databases, mail spools.
/tmpTemporary files created by programs. Cleared on reboot.
/devDevice files — represents hardware devices (disks, terminals, printers).

📌 Linux Key Points

  • Linux is free, open-source, and created by Linus Torvalds in 1991.
  • The Kernel is the core; the Shell is the command-line interpreter.
  • Linux is case-sensitive — File.txt and file.txt are different files.
  • pwd shows your current location; ls lists files in a directory.
  • chmod 755 gives read/write/execute to owner, read/execute to others.
  • Everything in Linux is a file — devices, processes, and directories.
  • Root directory is /. User home directories are in /home.
⌨️

2.17 Windows Keyboard Shortcuts

Keyboard shortcuts (hotkeys) allow you to perform actions quickly without using the mouse. Mastering shortcuts greatly improves your productivity in any office environment.

General Windows Shortcuts

Ctrl+CCopy selected item
Ctrl+XCut selected item
Ctrl+VPaste item
Ctrl+ZUndo last action
Ctrl+YRedo last action
Ctrl+ASelect all items
Ctrl+SSave current file
Ctrl+PPrint
Ctrl+FFind / Search text
Ctrl+HFind and Replace
Alt+F4Close current window
Alt+TabSwitch between open windows
Win+DShow / hide Desktop
Win+EOpen File Explorer
Win+LLock the computer
Win+ROpen Run dialog box
F2Rename selected file or folder
F5Refresh the current window
DeleteMove selected file to Recycle Bin
Shift+DelPermanently delete (bypass Recycle Bin)
PrtScTake a screenshot of entire screen
Alt+PrtScScreenshot of active window only
Ctrl+Alt+DelOpen Task Manager / Security screen
EscCancel or close a dialog box

Text Formatting Shortcuts (MS Word / WordPad)

Ctrl+BBold text
Ctrl+IItalic text
Ctrl+UUnderline text
Ctrl+LAlign text Left
Ctrl+EAlign text Centre
Ctrl+RAlign text Right
Ctrl+JJustify text
Ctrl+NNew document
Ctrl+OOpen a file
Ctrl+WClose current document

📌 Shortcut Tips

  • Use Ctrl+Z immediately if you make a mistake — Undo is your best friend.
  • Use Ctrl+S frequently while working to avoid losing data.
  • Use Alt+Tab to quickly switch between open programs during exam practicals.
  • Use PrtSc and paste in MS Paint to capture the screen for documentation.
  • In Linux, press Tab to auto-complete file/directory names in the terminal.

🧠 Practice Questions — Unit 2 (CBE Style)

1. Which of the following is the correct definition of an Operating System?

A A hardware device that controls the monitor
B System software that manages hardware and software resources
C An application used for word processing
D A network cable used to connect computers

2. GUI stands for:

A General User Interface
B Guided Unix Interface
C Graphical User Interface
D General Utility Interface

3. The Recycle Bin in Windows is used to:

A Store downloaded files permanently
B Empty system memory
C Temporarily hold deleted files so they can be restored
D Organise files into categories

4. Which Linux command displays the current working directory?

A cd
B ls
C pwd
D cat

5. Which dialog box control allows only ONE option to be selected at a time?

A Check Box
B Radio Button
C List Box
D Text Box

6. Linux was created by:

A Bill Gates
B Steve Jobs
C Linus Torvalds
D Dennis Ritchie

7. The keyboard shortcut to Undo an action in Windows is:

A Ctrl + Y
B Ctrl + Z
C Ctrl + X
D Alt + Z

8. Which type of OS is used in aircraft control systems where immediate response is critical?

A Batch OS
B Mobile OS
C Real-Time OS (RTOS)
D Distributed OS

9. Match: The Linux command chmod is used to:

A Change the directory
B Copy files
C Change file permissions
D Create a new folder

10. True or False: In Windows, Shift + Delete permanently deletes a file without sending it to the Recycle Bin.

A True
B False
← Chapter 1: Basics of Computer Chapter 3: Word Processing →