M1-R5.1 · Unit 2 of 9 10 Marks (w/ Unit 1) 4h Theory · 6h Practical

Unit 2: Introduction to Operating System (Windows & Linux)

Master OS fundamentals, functions (process, memory, file & security), Desktop/Mobile OS platforms (Windows 10/11, Ubuntu Linux, macOS, Android, iOS), GUI vs CUI, Linux directory tree, CUI commands (chmod, grep, touch, ls), printer sharing, and file extensions.

Written Marks 10M (w/ U1)
Learning Hours 10 Hours
Platforms Win 11 · Ubuntu · Mobile
Diagrams & Maps 2 SVGs + Mindmap
01

Operating System Stack & Core Functions

System Software
An Operating System (OS) is system software acting as the mandatory interface between the User / Applications and computer Hardware. Without an OS (e.g., Windows, Linux, Android), no application program can run. When powered on, firmware (BIOS/UEFI) runs POST (Power-On Self Test) and loads the OS Kernel into RAM during Booting.
Operating System Layered Stack and Linux Architecture Left side shows User interacting with Applications, Operating System Kernel, Utilities/Drivers, and Physical Hardware. Right side shows Linux Shell, System Libraries, Kernel, and Core OS Managers. OS Layered Interaction Model & 6 Core Resource Managers 1. End User (GUI / CUI Shell) 2. Application Software (LibreOffice, Chrome) 3. Operating System (Kernel + System Calls) 4. Device Drivers & Utilities 5. Physical Hardware (CPU, RAM, I/O, Disk) 6 Essential Operating System Functions Process Management CPU Scheduling & Deadlock Memory Management RAM Allocation & Paging File Management Directories, Permissions, Paths Device & I/O Control Drivers, Spooling, Printers Security & Auth Passwords, Access Control Error & Job Accounting Fault Logs & Time Tracking
Figure U2.1: Operating System hardware abstraction stack and the 6 primary resource management modules.

Cold vs Warm Booting

Cold Boot: Starting computer from completely powered-off state. Warm Boot: Restarting an active machine (Ctrl+Alt+Del / Restart) without full power cut.

Process, Thread & Spooling

A Process is a program in execution. Spooling buffers print jobs on disk so slow printers don't block the fast CPU.

02

Types of OS, Desktop Platforms & Mobile Operating Systems

RTOS · Windows · Android · iOS

Batch Operating System

Groups similar jobs into batches run sequentially without direct user interaction (early mainframes, payroll).

Time-Sharing (Multitasking)

Assigns tiny CPU time slices (quantum) to each task/user rapidly so multiple users interact seamlessly (Linux, Windows).

Real-Time OS (RTOS)

Guarantees deterministic response within strict microseconds/milliseconds deadlines (medical pacemakers, flight control, air-bag triggers).

Distributed & Network OS

Distributed: Multiple networked CPUs appear as one single machine. Network OS: Server OS sharing files, printers & authentication.

MS-DOS (CUI)

Single-user, single-tasking command-line OS (1981). Uses backslash \ paths (C:\>) and commands like DIR, MD, CD, RD, COPY, DEL, CLS.

Windows 10 / 11 (GUI)

Commercial GUI multitasking OS by Microsoft featuring Start Menu, Taskbar, File Explorer, Snap Layouts, Windows Defender, and Settings app.

macOS (Apple Desktop)

Unix-based (Darwin) commercial OS for MacBooks & iMacs using the Aqua GUI, Dock, and Finder.

Android OS (Google)

Linux-kernel based open-source mobile OS powering smartphones, tablets & wearables via Google Play Store (APK/AAB apps).

iOS (Apple Mobile)

Closed proprietary OS exclusively for iPhone/iPad (derived from macOS/Unix), installing apps only from Apple App Store.

Chrome OS & HarmonyOS

Lightweight cloud/web-centric Chromebooks (Chrome OS) and distributed IoT/mobile platforms (HarmonyOS, Symbian/BlackBerry legacy).

03

Linux Operating System, Ubuntu Desktop (Unity/GNOME) & Architecture

Linus Torvalds (1991)

Created by Linus Torvalds in 1991 (POSIX-compliant Unix-like kernel released under GNU GPL), Linux is portable, multi-user, case-sensitive, uses forward slashes /, and treats hardware devices as files. Its core architecture comprises three components: Kernel (hardware manager), System Libraries, and Shell (command interpreter: bash, zsh).

FeatureLinux / UbuntuMicrosoft Windows
License & CostFree & Open Source (Canonical sponsors Ubuntu)Proprietary & paid commercial license
Path & Case SensitivityForward slash / · Strictly Case-Sensitive (File ≠ file)Backslash \ · Case-Insensitive
File Manager / TerminalNautilus (Files) · Terminal shortcut Ctrl+Alt+TFile Explorer · CMD / PowerShell (Win+R → cmd)
Superuser & Packagesroot / sudo · apt install pkg / Ubuntu SoftwareAdministrator · .exe / .msi / Microsoft Store

Ubuntu Unity / GNOME Desktop

Features top panel Menu Bar (Clock, Network, Sound, Text Entry, Session Indicator), vertical Launcher / Dock on the left ("Lock to Launcher" / "Unlock"), and Dash / Activities Search (Super/Windows key) to find apps & files quickly.

Popular Linux Distros

Ubuntu, Fedora, Debian, Linux Mint, Red Hat (RHEL), BOSS Linux (C-DAC India's indigenous Bharat OS Solutions), and Kali Linux.

04

User Interface (GUI/CUI), Taskbar, Icons & Windows Accessories

Desktop Controls

CUI vs GUI

CUI: Text commands via keyboard (DOS, Linux Bash terminal). GUI: WIMP model (Windows, Icons, Menus, Pointer) via mouse/touch.

Taskbar (Windows & Linux)

Bottom strip holding Start button, Search box, Pinned apps, Active windows, System Tray / Notification Area & Clock. Ubuntu optional Windows-style panel: sudo apt-get install tint2.

3 Types of Desktop Icons

System Icons (This PC, Recycle Bin, Network, Control Panel), User Icons, and Shortcuts (marked with curved northeast arrow; deleting shortcut keeps original target intact).

Windows Accessories

Notepad (plain ASCII/UTF-8 .txt, F5 inserts Time/Date), MS Paint (raster drawing), Calculator (Standard/Scientific/Programmer), Snipping Tool (Win+Shift+S).

Topic: OS UI & Taskbar Basics →
05

OS Simple Settings, Personalization, Programs & Printer Sharing

Settings & Control Panel

Mouse, Date/Time & Display

Control Panel → Mouse Properties (Pointer look, Double-click speed, Left/Right primary button swap). Right-click Taskbar Clock → Adjust Date/Time. Display → Resolution, Scaling & Night Light.

Personalization & Screensaver

Right-click Desktop → Personalize (Windows) or Settings → Background (Ubuntu) to adjust Wallpaper, Lock Screen, Themes, and Screensaver wait timeout.

Add / Remove Programs

Windows: Settings → Apps → Installed apps (or Control Panel → Programs & Features). Ubuntu: Ubuntu Software Center or sudo apt install/remove appname.

Add, Remove & Share Printers

Windows: Settings → Bluetooth & devices → Printers & scanners → Printer properties → Share this printer. Ubuntu: Printers → Server Settings → Publish shared printers (ipp://IP/printers/Name).

06

File & Folder Management (File Explorer & Nautilus)

Win+E · Ctrl+Shift+N
  • Windows File Explorer (Win + E): Manages drives, Quick Access, sorting by Name/Date/Type. Ctrl+Shift+N creates a New Folder; F2 renames selected item; Shift + Delete deletes permanently bypassing Recycle Bin!
  • Ubuntu Nautilus (Files): Supports tree view, bookmarks, right-click → Create Folder, F2 rename, and graphical file permission tabs.
07

Linux Directory Hierarchy, CUI Commands & File Permissions

High-Yield Exam Topic
Linux Root File Hierarchy and chmod Octal Permission Matrix Left box illustrates the Linux / root tree (/bin, /dev, /etc, /home, /root, /tmp, /usr, /var, /mnt). Right box explains chmod r=4, w=2, x=1 across Owner (u), Group (g), Others (o) with example chmod 755 and 777. Linux Directory Hierarchy (/) & File Permission Bitmask (chmod) / (Root Directory Tree) ├── /bin → Essential user executable commands ├── /etc → System configuration files ├── /home → Normal user home folders (/home/user) ├── /root → Superuser (Admin) home directory ├── /dev → Device files (disks sda, printers lp0) ├── /tmp → Temporary files cleared on reboot ├── /lib → Shared kernel & library modules └── /mnt → Mount point for external USB/CD drives chmod Octal Formula (r=4, w=2, x=1) u = Owner (User) · g = Group · o = Others · a = All r (Read) = 4 | w (Write) = 2 | x (Execute) = 1 • chmod 777 file → 7(rwx) 7(rwx) 7(rwx) Full to all • chmod 755 file → Owner 7(rwx), Group/Other 5(r-x) • chmod +x script.sh → Adds execute permission
Figure U2.2: Standard Linux filesystem hierarchy starting at / and octal chmod permission calculation.
CommandPurposeExample & Repeated PYQ Fact
pwdPrint Working DirectoryDisplays absolute path of current folder (e.g., /home/student).
lsList directory contentsls -l long details; ls -a shows hidden dotfiles (e.g. .bashrc).
cdChange directorycd .. moves one level up to parent directory; cd ~ goes to Home.
mkdir / rmdirCreate / Delete directoryrmdir removes ONLY an empty directory; use rm -r dir if non-empty.
touchCreate empty file / timestampRepeated PYQ: "Which command creates a zero-byte empty file?" → touch abc.
catCreate, concatenate or read filecat > abc creates file; cat abc displays contents on screen.
cp / mv / rmCopy / Move or Rename / Removemv old new renames files! rm permanently deletes files.
grepGlobal pattern searchSearches matching text lines inside files (grep "error" log.txt).
chmod / chownPermissions / Ownershipchmod 755 app.sh sets rights; chown user file changes file owner.
who / ps / manUsers / Processes / Manualwho lists logged-in users; ps lists running processes; man cmd opens help.
Full DOS & Linux Commands Cheatsheet →
08

Types of File Extensions & Quick Exam Points

ODF & System Formats
ExtensionFormat DescriptionExtensionFormat Description
.odt / .ottLibreOffice Writer Text / Template.ods / .otsLibreOffice Calc Sheet / Template
.odp / .otpLibreOffice Impress Pres / Template.odb / .odfLibreOffice Base DB / Math Formula
.oxtLibreOffice / OpenOffice Extension.csvComma Separated Values (plain data)
.txt / .rtfPlain Text / Rich Text Format.pdf / .epubPortable Document / e-Book Format
.bmp / .jpg / .pngBitmap / Lossy JPEG / Lossless PNG.wav / .mp3 / .mp4Uncompressed Audio / Compressed Audio / Video
Important Unit 2 Exam Points: First Linux kernel released by Linus Torvalds in 1991 · Ubuntu sponsored by Canonical Ltd. · Terminal shortcut in Ubuntu: Ctrl+Alt+T · Mac OS uses Aqua UI · Root user super-account in Linux is root (sudo) · Command to view file text: cat · Command to create an empty file: touch · Write permission octal value = 2 (Read=4, Execute=1).
09

Unit 2 Operating System Revision Mindmap

Interactive Tree
Unit 2: Introduction to Operating System
Operating Systems (Windows 10/11, Linux Ubuntu, Mobile)
Process, Memory, File, Device & Security Management
  • Batch, Time-Sharing, Distributed, Network, RTOS (strict deadlines)
  • Booting: BIOS/UEFI → POST → Kernel into RAM
  • Cold Boot (power-on) vs Warm Boot (restart)
  • DOS: CUI single-tasking · Windows: Commercial GUI
  • Ubuntu: Free Linux by Canonical (Unity/GNOME, Nautilus)
  • Mobile: Android (Open/Linux), iOS (Apple closed), BOSS (India)
  • Case-sensitive · Uses forward slash /
  • pwd, ls -la, cd .., mkdir, rmdir, touch, cat, mv, rm, grep
  • Permissions: r=4, w=2, x=1 (chmod 755/777)
  • Writer: .odt / .ott · Calc: .ods / .ots
  • Impress: .odp / .otp · Base: .odb
  • Extension pkg: .oxt · Perm Delete (Win): Shift+Delete
10

Unit 2 Solved Previous Year Questions (OS & Linux)

10 Exam MCQs

Unit 2 Operating System & Linux Drill

Click any option to verify NIELIT M1-R5.1 PYQ answers instantly.
Score: 0 / 10
Q1. Which Linux command is used to create a new zero-byte empty file quickly?
Answer Explanation: The touch command creates an empty file if it does not exist, or updates its timestamp if it already exists.
Q2. In Linux octal file permissions (chmod), what numeric values correspond to Read, Write, and Execute?
Answer Explanation: Read (r) = 4, Write (w) = 2, and Execute (x) = 1. Thus rwx sums to 4+2+1 = 7.
Q3. Which Linux command searches for a specific text pattern or keyword inside a file?
Answer Explanation: grep (Global Regular Expression Print) searches text lines matching a pattern inside files.
Q4. Which Linux command deletes ONLY an empty directory?
Answer Explanation: rmdir deletes empty directories; use rm -r for non-empty directory trees.
Q5. What is the shortcut key to open a Terminal window in Ubuntu Linux?
Answer Explanation: Pressing Ctrl + Alt + T launches the Terminal emulator on Ubuntu desktop.
Q6. Which Windows shortcut permanently deletes selected files without sending them to the Recycle Bin?
Answer Explanation: Shift + Delete bypasses the Recycle Bin and deletes the item immediately.
Q7. What is the extension used by LibreOffice / OpenOffice plugin/extension packages?
Answer Explanation: .oxt is the package extension for LibreOffice/OpenOffice extensions.
Q8. Which type of Operating System is designed specifically for strict deadline-critical environments like air-traffic or robotics control?
Answer Explanation: Real-Time Operating Systems (RTOS) guarantee deterministic processing within rigid time limits.
Q9. Who created the Linux kernel in 1991?
Answer Explanation: Linus Torvalds released the first Linux kernel in 1991 while a student at the University of Helsinki.
Q10. What does the command pwd stand for and display in Linux?
Answer Explanation: pwd prints the full pathname of the current working directory.