DIGITAL LITERACY · FOUNDATION SERIES

Operating Systems: Functions, Types, Windows, Linux and DOS Commands

A simple guide to the operating system: what it does, its types, Windows, Linux, Unix and mobile systems, CLI and GUI, DOS and Unix commands, and the Windows desktop and settings.

Punjab PolicePSSSB15 MIN READਪੰਜਾਬੀ ਵਿੱਚ ਪੜ੍ਹੋ
A black terminal window with white text: typed Unix commands and a list of files
An early version of Unix (Version 5, from the 1970s) running in an emulator today. There are no icons and no mouse: you type a command and the system answers. This is a command-line interface. Image: Huihermit, Wikimedia Commons · CC0

An operating system (OS) is the main system software of a computer or phone. It sits between you and the hardware. It runs your programs, manages memory and devices, keeps files in order and gives you a screen to work with. Windows, Linux, Unix, macOS and Android are operating systems. Papers ask about OS functions and types, Windows features and settings, and a few DOS and Unix commands. This page covers them all.

42
Past questions on this page
Punjab Police SI & Constable
1985
Windows 1.0 released
By Microsoft
1991
Linux first released
By Linus Torvalds
1969
Unix begun
Bell Labs, USA

What an operating system is and does

The manager between you and the machine.

WHERE THE OS SITS
  1. User
    You give a command: click, tap or type.
  2. Applications
    Word, a browser, a game.
  3. OS
    Operating system
    Manages the hardware and the applications.
  4. Hardware
    CPU, memory, disk, screen, printer.
Textbook definition: the OS is an interface between the user and the hardware.
Function of the OSWhat it means
Process managementStarts, runs and stops programs; decides which one gets the CPU
Memory managementGives RAM to each program and takes it back
File managementCreates, saves, finds and deletes files and folders
Device managementControls printers, keyboards, disks through device drivers
User interface and command interpretationGives you a screen (GUI) or a prompt (CLI) and acts on your commands
SecurityPasswords and permissions: who may open which file
IS IT AN OS JOB?
OS job
NOT an OS job
Running programs
Yes
—
Doing arithmetic
—
Done by the ALU in the CPU
Compiling a program
—
Done by a compiler
The OS manages; it does not do the sums or translate programs itself.
KEY TERM
Device driver

A device driver is a small piece of system software that lets the OS talk to one piece of hardware, such as a printer or graphics card. Its purpose is to manage hardware resources.

OS→Driver→Printer
  • Is it an OS? Linux, Windows, Unix: yes. Safari and Edge are web browsers and GIMP is an image editor: these are application software.
  • Software that manages the computer hardware and user applications is the operating system, not a client, server or "web".
QUICK CHECK
An operating system can be defined as an interface between ______ and ______.
Tap an option to answer
QUICK CHECK
Which of the following is NOT a function of an operating system?
Tap an option to answer
QUICK CHECK
Which of the following is the purpose of a device driver in an operating system?
Tap an option to answer

Types of operating system and a short history

Batch, time-sharing, real-time, multitasking, and the people behind Unix and Linux.

TypeIn simple wordsRemember
Batch OSJobs are grouped and run one after another, with no user sitting at the machineSecond generation
Time-sharing OSCPU time is split into small slices shared by many usersThird generation
Real-Time OS (RTOS)Must respond within a strict, predictable timeMedical devices, machines, air-bags
Distributed OSMany connected computers work together like oneNetworks of machines
MultitaskingOne user runs more than one program at a timeMusic + browser together
MultiprocessingUses two or more processors (CPUs) at onceLinux supports it
REMEMBER

Batch = 2nd, Time-sharing = 3rd: "B before T", just like in the alphabet.

Who made Unix and Linux
Old photograph of Ken Thompson (left) and Dennis Ritchie (right)
Ken Thompson and Dennis Ritchie
Creators of Unix at Bell Labs
  • Began Unix at AT&T Bell Labs, USA, in 1969
  • Dennis Ritchie also created the C programming language
Linus Torvalds speaking at a conference
Linus Torvalds
Creator of the Linux kernel
  • Released Linux in 1991 as free, open-source software
  • Anyone may read, change and share its source code
MILESTONES OF OPERATING SYSTEMS
  1. 1969
    Unix

    Begun at Bell Labs by Thompson and Ritchie. Command-line first.

  2. 1975
    Microsoft founded

    By Bill Gates and Paul Allen.

  3. 1981
    MS-DOS

    Microsoft Disk Operating System: typed commands only.

  4. 1985
    Windows 1.0

    Microsoft's first Windows: multitasking through a graphical user interface.

  5. 1991
    Linux

    Linus Torvalds releases the Linux kernel.

  6. 2001
    Windows XP

    Built mainly for keyboard and mouse.

  7. 2004
    Ubuntu

    A popular desktop Linux, from Canonical.

  8. 2015
    Windows 10

    The version most Windows questions in these papers are about.

  9. 2021
    Windows 11

    The newer version. Some Settings paths look different from Windows 10, but the past questions on this page ask about Windows 10.

QUICK CHECK
Consider an embedded system designed for an important real-time medical device. Which type of software architecture would be most important to ensure predictable and timely responses to sensor inputs?
Tap an option to answer
QUICK CHECK
Which of the following combination is NOT correct? I. Batch operation system - Second generation. II. Time sharing operating system - Third generation.
Tap an option to answer

Windows, Linux, Unix and mobile systems

Who makes which OS, and which ones run on desktops or phones.

DESKTOP OS VS MOBILE OS
Desktop / laptop
Mobile phone
Examples
Windows, macOS, Ubuntu, Chrome OS
Android, iOS, Symbian
Older ones
MS-DOS
BlackBerry OS, Bada, MeeGo
Ubuntu is a desktop Linux. iOS, Android and Symbian are mobile systems.
OSMade by
WindowsMicrosoft
macOS, iOSApple
Android, Chrome OSGoogle
BadaSamsung (its own mobile OS, used around 2010; later replaced by Tizen)
BlackBerry OSBlackBerry (earlier called Research In Motion)
SymbianSymbian Ltd, used mostly on Nokia phones
UbuntuCanonical (a Linux distribution)
LinuxLinus Torvalds and a worldwide open-source community
A cartoon penguin sitting upright, black and white with a yellow beak and feet
Tux the penguin is the mascot of Linux. Linux is open source, multitasking and multiprocessing. Android is also built on the Linux kernel. Image: OpenClipart-Vectors (Pixabay), based on Tux by Larry Ewing, Wikimedia Commons · CC0
KEY TERM
Open source

Open-source software publishes its source code. Anyone may read it, change it and share it. Linux is the best-known open-source OS. Windows and macOS are proprietary (owned and closed).

Source code→open to all→Linux
COMMON TRAPS
  • Windows is the product; Microsoft is the company that made it.
  • There is no "Dell OS". Dell makes computers and ships them with Windows or Linux.
  • In 1985 Microsoft launched Windows. Unix is older (1969) and Linux is newer (1991).
QUICK CHECK
Which of the following is a proprietary operating system developed by Samsung for mobile phones?
Tap an option to answer
QUICK CHECK
Which of the following statement is correct? I. Linux is an open-source operating system. II. Linux is a multitasking and multiprocessing operating system.
Tap an option to answer

CLI and GUI, with DOS and Unix commands

Typing commands vs clicking icons, and the commands papers ask.

TWO WAYS TO TALK TO THE OS
CLI
GUI
Full form
Command Line Interface
Graphical User Interface
You use
Typed commands
Icons, menus, windows
Examples
MS-DOS, Command Prompt
Windows, macOS, Chrome OS
MS-DOS comes only with a command line. Windows XP, macOS Catalina and Chrome OS are GUI systems. In Windows, Command Prompt is the CLI; Control Panel and File Explorer are GUI tools. (Finder is the Mac file manager, not a Windows program.)
KEY TERM
GUI

The GUI lets users run programs and give instructions through icons, menus and other visual options. The mouse is only the hardware you point with; the GUI is the software you point at.

Icon→Click→Program opens
DOS COMMANDS: INTERNAL VS EXTERNAL
Internal
External
Lives in
Memory (always loaded)
A file on disk
Examples
DIR, COPY, DEL, CLS, CD
FORMAT, XCOPY, CHKDSK
If a question says "internal = on disk, external = in memory", it has swapped them. Both are wrong.
JobWindows / DOSUnix / Linux
List filesDIRls
Make a new folderMKDIR (or MD)mkdir
Change folderCDcd
Copy a fileCOPYcp
Delete a fileDELrm
Rename or move a fileREN / MOVEmv
QUICK CHECK
Which of the following operating systems comes only with a command-line interface?
Tap an option to answer
QUICK CHECK
Which of the following pair is correct regarding DOS commands? I. Internal command – Resides on disk II. External command – Resides always in memory
Tap an option to answer
QUICK CHECK
Which of the following command is used to rename a file in Unix?
Tap an option to answer

The Windows desktop: taskbar, Recycle Bin and File Explorer

What you see after Windows starts, and where things go.

THE WINDOWS 10 TASKBAR, LEFT TO RIGHT
  1. Start button
    Far left. Opens the Start menu.
  2. Search box
    Type to find apps and settings.
  3. Open programs
    A button for every program you have open now, plus pinned ones.
  4. system tray
    Notification area
    Far right: clock, internet, battery %, volume icons.
The notification area was earlier called the system tray.
First screen
Desktop

The first screen you see after Windows loads: wallpaper, icons and the taskbar.

Deleted files
Recycle Bin

Delete key or right-click → Delete sends a file here. You can restore it. Shift + Delete skips the bin.

When idle
Screen saver

A moving picture that appears when the computer is left idle for some time.

Always there
Wallpaper

The background picture of the desktop, shown all the time.

FILE EXPLORER: TOP VS BOTTOM
Address bar
Status bar
Where
Near the top
At the bottom
Shows
The location (path) of the folder
Number of items
The taskbar belongs to the desktop, not to the File Explorer window.
KEY TERM
Clipboard

When you select text and press Ctrl + C, the copy goes to the operating system's clipboard, a temporary store in memory. Ctrl + V pastes it, even into another program.

Ctrl + C→Clipboard→Ctrl + V
QUICK CHECK
In Windows OS, the area at the extreme right of the taskbar, which contains a clock and a group of icons, is called _______.
Tap an option to answer
QUICK CHECK
In the Windows OS, when you delete an item from any of the drives on your computer by making use of the Delete key or even by simply right-clicking and selecting the ‘Delete’ option, the file is moved to ________.
Tap an option to answer
QUICK CHECK
A moving picture that appears on a computer screen when the user does not use the computer for a while is:
Tap an option to answer

Windows 10 settings and Control Panel paths

Mouse, date and time, display, printers and the version number.

TaskPath in Windows 10
Mouse settings (quick)Start → Settings → Devices → Mouse
Mouse properties (classic)Control Panel → Hardware and Sound → Devices and Printers → Mouse → Apply
Add or remove a printerControl Panel → Hardware and Sound → Devices and Printers
Time and time zoneStart → Settings → Time & Language → Date & time
Change date and time (other ways)Right-click the clock → Adjust date/time; or Control Panel → Clock, Language and Region → Date and Time
Display / appearanceRight-click the desktop → Personalize (or Display settings)
Windows FeaturesControl Panel → Programs → Programs and Features; or Settings → Apps → Apps and features → Optional features; or search "Windows Features"
Computer name, hardware, remote, protectionSystem Properties
See the Windows versionWin + R (Run) → type winver
COMMON TRAPS
  • The Settings app has no "Programs" section. "Programs and Features" is in Control Panel. Settings uses Apps.
  • Mouse and printers are hardware: look under Devices (Settings) or Hardware and Sound (Control Panel).
  • The label is Date & time, date first. "Day & Time" and "Time & Date" are made up.
  • Right-clicking the clock gives date/time options, not display settings.
QUICK CHECK
Which of the following are the correct steps for changing mouse properties in Windows 10? (i) Go to ‘Control Panel’ from the Start menu. (ii) Click on ‘Mouse’ under Devices and Printers. (iii) Select ‘Hardware and Sound’. (iv) Change required mouse properties and ‘Apply’ changes.
Tap an option to answer
QUICK CHECK
In the Run dialog box, which command is used to identify the Windows operating system version?
Tap an option to answer

Quick revision

Full forms, traps and one-line facts.

FLASHCARDS
Tap to check
OS
Operating System
MS-DOS
Microsoft Disk Operating System
GUI
Graphical User Interface
CLI
Command Line Interface
RTOS
Real-Time Operating System
Who made Windows?
Microsoft (Windows 1.0, 1985)
Who made Linux?
Linus Torvalds (1991)
Samsung's mobile OS
Bada
Rename a file in Unix
mv
New folder in Windows CMD
MKDIR (MD)
Windows version in Run
winver
Clock and battery icons
Notification area
COMMON TRAPS
  • The taskbar shows the programs you have open now, not every program ever installed or used.
  • Screen saver = when idle. Wallpaper = always.
  • The ALU does arithmetic and the compiler translates programs. Neither is an OS function.
  • Batch = 2nd generation, time-sharing = 3rd generation.
Also asked onceTap to open
  • Touch: desktop Windows XP was built for keyboard and mouse, without a touch interface. Windows 7 brought multi-touch gestures, and Windows 10 supports touch too.
  • System Properties is the Windows section for the computer name, hardware settings, user profiles, system protection and remote (connectivity) settings.
  • In File Explorer, the folder's location appears in the address bar near the top of the window.
  • Ubuntu is an example of a desktop operating system (iOS, Symbian and Android are mobile).
  • Multitasking = the ability to run more than one program at a time. (Overloading, reading and scanning are not.)
CHECK YOURSELF

You deleted an important file by pressing Delete. Where will you find it, and how is Shift + Delete different?

Show answer

It is in the Recycle Bin; open it, right-click the file and choose Restore. Shift + Delete skips the Recycle Bin and deletes the file permanently.

Frequently Asked Questions

What is an operating system in simple words?

An operating system is the main system software that works as an interface between the user and the hardware. It runs programs and manages memory, files and devices. Windows, Linux and Android are examples.

What are the main functions of an operating system?

Process management, memory management, file management, device management through drivers, security, and providing a user interface. Arithmetic (done by the ALU) and compiling (done by a compiler) are not OS functions.

What is a real-time operating system?

A real-time operating system (RTOS) must respond within a strict, predictable time. It is used where delay is dangerous, such as in medical devices and machine control.

Who developed Windows and when?

Microsoft developed Windows. Windows 1.0 was released in 1985 and offered multitasking through a graphical user interface.

Is Linux open source?

Yes. Linux, first released by Linus Torvalds in 1991, is open source: anyone may read, change and share its code. It is also a multitasking and multiprocessing OS.

What is the difference between CLI and GUI?

In a CLI (Command Line Interface) you type commands, as in MS-DOS or Command Prompt. In a GUI (Graphical User Interface) you use icons, menus and windows, as in Windows.

What is the difference between internal and external DOS commands?

Internal commands such as DIR, COPY and CLS are always loaded in memory. External commands such as FORMAT and XCOPY are separate files on disk and load only when used.

Which command renames a file in Unix?

The mv (move) command. Typing mv oldname newname moves the file to a new name, which renames it.

What is the notification area in Windows?

It is the far right part of the taskbar, with the clock and icons for internet connection, battery and volume. It was earlier called the system tray.

Where do deleted files go in Windows?

Files deleted with the Delete key or right-click Delete go to the Recycle Bin, from where they can be restored. Shift + Delete removes a file permanently.

← All Operating Systems notes