Class 9Computer ScienceFull chapter

Operating System and File Management

Your operating system quietly runs every program you open and keeps every file you save. Learn what it manages, how a CLI differs from a GUI, and how to name, path, search, compress and back up files — in the exact shape CBSE asks for.

What an Operating System Does

Quick answer An operating system is the system software that manages a computer's hardware and software and gives the user a way to work with the machine. Learn its five standard functions by name.

A computer system is made of hardware (the physical parts) and software (the programs). Software is divided into system software, which runs and manages the machine itself, and application software, which does a job for the user — a word processor, a browser, a payment app. The most important piece of system software is the operating system (OS).

An operating system is the system software that manages all the hardware and software resources of a computer and provides an interface between the user and the machine. Nothing else can run until it is loaded. Booting is the process of starting the computer and loading the operating system from secondary storage (the hard disk or SSD) into RAM (Random Access Memory), the fast temporary memory that the CPU (Central Processing Unit) works from. Starting a computer that was switched off is a cold boot; restarting one that is already on is a warm boot.

Examiners normally ask you to name the functions of an operating system and write one line on each. Learn these five in order.

  • Process management. A process is a program that is currently in execution. A computer runs many processes at once, but a CPU core can attend to only one instruction stream at a time. The OS therefore schedules processes — it decides which process gets the CPU, for how long and in what order, and switches between them so quickly that they appear to run together. This is called multitasking. It also starts and ends processes and settles conflicts over shared resources.
  • Memory management. The OS keeps track of every part of RAM: which part is free and which part is allotted to which program. It loads a program into memory when you open it, frees that memory when you close it, and stops one program writing into another's memory area. When RAM runs short, most operating systems use virtual memory — a reserved area of disk used as though it were extra RAM.
  • File management. The OS organises data into files and folders, records where each file is physically stored, and carries out creating, opening, saving, copying and deleting. It also controls access permissions, so that one user of a shared computer cannot read another user's private files.
  • Device management. Keyboard, mouse, printer, pen drive, webcam — each must be controlled. The OS does this through device drivers: small programs that translate its general instructions into the exact signals one particular device understands. It also handles spooling, for example queueing several print jobs so that users need not wait at the printer.
  • Providing a user interface. The OS gives the user a way to issue commands — by typing them or by clicking on pictures. That is the subject of the next section.

Two further duties are worth a line in a long answer: security (user accounts, passwords and permissions) and error handling (noticing a failed disk read or a crashed program and reporting it instead of freezing the machine).

To remember where the OS sits: the user talks to the application, the application talks to the OS, and the OS talks to the hardware. Because it stands in the middle, it is described both as a resource manager and as an interface.

Operating system OS = resource manager + user interface the standard one-line definition an examiner accepts
Booting Secondary storage → RAM the OS is copied into memory at start-up; cold boot from off, warm boot from a restart
Process Process = program in execution a program on disk is not a process until it is running
Software classes System software vs application software OS, drivers and utilities are system software; a spreadsheet package is application software
Remember
  • An operating system is system software that manages hardware and software resources and provides an interface between user and machine.
  • Booting is loading the OS from secondary storage into RAM at start-up; no other program can run before it.
  • Name five functions: process management, memory management, file management, device management and the user interface.
  • A process is a program in execution; rapid switching between processes gives the effect of multitasking.
  • Device drivers let the OS control particular hardware; virtual memory uses disk space when RAM falls short.
  • System software runs the machine (OS, drivers, utilities); application software does a job for the user.

CLI versus GUI, and Common Operating Systems

Quick answer A Command Line Interface takes typed commands; a Graphical User Interface uses windows, icons, menus and a pointer. Both are still in daily use, on desktops and on phones.

The user interface is the part of the operating system through which you give instructions and receive results. There are two families of interface, and examiners almost always ask you to compare them.

A CLI (Command Line Interface) displays a text prompt and waits for you to type a command and press Enter. The OS reads the command, carries it out and prints text output. Windows provides Command Prompt and PowerShell; Linux and macOS provide a shell inside a Terminal window. The commands differ from system to system, so always say which system a command belongs to.

Windows Command Prompt        Linux / macOS shell
----------------------------  ----------------------------
dir                           ls          (list what is here)
cd Documents                  cd Documents (change folder)
md Project                    mkdir Project (make a folder)
copy notes.txt backup.txt     cp notes.txt backup.txt
del old.txt                   rm old.txt   (delete a file)

A GUI (Graphical User Interface) shows your work on screen as pictures that you act on with a pointing device. It is summed up by the initials WIMPWindows, Icons, Menus and a Pointer. Instead of recalling whether the copy command is copy or cp, you drag the file or right-click it and choose Copy.

The comparison an examiner wants:

  • Ease of learning. A GUI is far easier for a beginner, because the available choices are visible on the screen and can be discovered by looking. A CLI must be learnt, since nothing on screen tells you which commands exist.
  • Speed for a skilled user. One typed command can act on hundreds of files at once, which would need a great many clicks in a GUI.
  • Repeating work. Commands can be stored in a script file and run again later, so the same job is performed identically every time. Mouse clicks cannot be saved in that way.
  • Use of resources. A CLI needs very little memory and no graphics support, so it suits servers and low-powered machines; a GUI needs more RAM and more processing power.
  • Risk. A mistyped delete command can remove a great deal very quickly and often gives no second chance, whereas a GUI usually asks for confirmation first.

Almost every modern system offers both.

Common desktop operating systems include Microsoft Windows, macOS from Apple, several distributions of Linux such as Ubuntu and Fedora, and ChromeOS on Chromebooks. India also has BOSS (Bharat Operating System Solutions), a Linux distribution developed by C-DAC and used in some government offices and school computer labs.

Common mobile operating systems are Android, which is built on the Linux kernel and used by many smartphone brands, and iOS, used on the iPhone. A mobile OS is designed for touch input, a small screen and a battery, so it manages power carefully and usually keeps each app inside its own storage area for safety.

Two further classifications are worth a line. Software may be proprietary — owned by a company, with the source code not published, as with Windows and macOS — or open source, where the source code is published and anyone may study, modify and redistribute it under its licence, as with Linux. Operating systems are also described as single-user or multi-user, and as single-tasking or multitasking, depending on how many people and how many programs they serve at a time.

CLI Command Line Interface text prompt; commands typed and executed one line at a time
GUI Graphical User Interface remembered as WIMP: Windows, Icons, Menus, Pointer
List files dir (Windows) = ls (Linux/macOS) always state which system a command belongs to
Software licence types Proprietary vs open source open source publishes its source code for study and modification under a licence
OS categories Single-user / multi-user; single-tasking / multitasking a common one-mark definition question
Remember
  • CLI = Command Line Interface: typed commands at a prompt; GUI = Graphical User Interface: windows, icons, menus and a pointer (WIMP).
  • A GUI is easier to learn and discover; a CLI is faster for bulk work, can be scripted and uses fewer resources.
  • CLI commands differ by system: dir/cd/copy/del on Windows Command Prompt, ls/cd/cp/rm on Linux and macOS.
  • Desktop operating systems: Windows, macOS, Linux distributions such as Ubuntu, ChromeOS, and India's BOSS Linux.
  • Mobile operating systems: Android and iOS — built for touch, small screens and battery life.
  • Linux is open source (published, modifiable source code); Windows and macOS are proprietary.

The Desktop, Windows, Icons and Menus

Quick answer The parts of a graphical desktop have exact names, and the examiner tests the fine distinctions — shortcut versus file, minimise versus close, dialog box versus window.

When booting finishes, a graphical operating system shows the desktop: the main working screen on which windows, icons and the background wallpaper appear. Each item below has a proper name that you are expected to use.

An icon is a small picture that represents a file, a folder, a program or a device. Clicking or double-clicking it opens the item it stands for. A shortcut (called an alias on macOS and a symbolic link on Linux) is a special icon that only points to an item stored elsewhere. This distinction is a favourite examination question: deleting a shortcut does not delete the original file; it removes only the pointer. A shortcut icon is usually marked with a small arrow.

Along one edge of the desktop is a strip holding the button that opens the list of installed programs, buttons for running programs, and a clock and status area. It is the taskbar on Windows and most Linux desktops, and the Dock on macOS.

A window is a rectangular area of the screen in which one program or folder is displayed. Its usual parts are:

  • Title bar — carries the name of the document or folder and is used to drag the window about.
  • Minimise, maximise/restore and close buttonsminimise hides the window but the program keeps running in memory; maximise makes it fill the screen and restore returns it to its earlier size; close shuts the window and, on most systems, ends the program and frees its memory. Confusing minimise with close loses marks.
  • Menu bar or ribbon — the lists of commands the program offers, with a toolbar of buttons for the commands used most often.
  • Scroll bars — appear when the content is larger than the window, and move the view up, down or sideways.
  • Status bar — a strip at the foot showing information such as page number or word count.
  • Borders and corners — dragged to resize the window.

Several windows may be open at once, and you switch between them by clicking their taskbar buttons or by holding a switch key (Alt in most Windows and Linux desktops, Command on macOS) and pressing Tab. Only one window is active at a time; it receives whatever you type and usually has a highlighted title bar.

Menus are lists of commands, and their small signs carry meaning that examiners test:

  • A drop-down menu opens when you click a word on the menu bar.
  • A context menu (or shortcut menu) opens when you right-click an object and lists only the commands that apply to that object.
  • An arrow at the right of an entry means a submenu will open.
  • An ellipsis — three dots after the command name — means a dialog box will open and ask for more information before anything happens.
  • A dimmed (greyed-out) entry means that command is not available at the moment, for example Paste when the clipboard is empty.
  • A tick mark shows an option that is switched on; the keyboard shortcut for a command is printed beside it.

A dialog box is a small window that asks the user for information or a confirmation, such as the Save As box. Many dialog boxes are modal: you must answer or cancel them before returning to the program. Unlike a full window, a dialog box usually cannot be resized and has no minimise or maximise button.

WIMP Windows, Icons, Menus, Pointer the four building blocks of any graphical user interface
Shortcut Shortcut = pointer to a file, not the file deleting it leaves the original untouched
Minimise vs close Minimise = still in RAM; Close = removed from RAM a very common one-mark distinction
Ellipsis in a menu Command... → a dialog box opens the command needs more information before it can run
Context menu Right-click → commands for that object only also called the shortcut menu
Remember
  • The desktop is the main screen shown after booting; it carries icons, wallpaper and the taskbar or Dock.
  • A shortcut only points to a file — deleting the shortcut does not delete the original.
  • Minimise hides a window while the program keeps running; close shuts the window and, on most systems, ends the program and frees its memory.
  • Window parts to name: title bar, menu bar or ribbon, toolbar, scroll bars, status bar, borders.
  • Menu signs: ellipsis means a dialog box will open, an arrow means a submenu, dimmed means unavailable, a tick means switched on.
  • A dialog box is a small window that asks for information or confirmation and usually cannot be resized.

Files, Folders and File Extensions

Quick answer A file holds data; a folder holds files. The extension after the full stop tells the operating system what kind of data a file contains and which program should open it.

A file is a named collection of related data stored on a secondary storage device such as a hard disk, an SSD or a pen drive. Everything you keep on a computer is a file — a letter, a photograph, a song, a spreadsheet of marks, even the programs themselves. Files are needed because RAM is volatile: its contents vanish when power is switched off, so anything you wish to keep must be written to storage.

A folder (also called a directory) is a named container used to organise files and other folders; a folder inside another folder is a subfolder. Folders hold no data of their own and take up almost no space — they merely record which items belong together. The clearest way to state the difference in an examination: a file stores data, a folder stores files and other folders.

The name of a file usually has two parts joined by a full stop — the filename and the extension. In class9-marks.xlsx, class9-marks is the name you chose and xlsx is the extension.

Naming rules vary with the operating system, so state the system if you quote a rule:

  • A name may not be blank, and two items in one folder may not share exactly the same name.
  • Windows does not allow the characters \ / : * ? " < > | in a filename, because the OS uses them for its own purposes.
  • Case sensitivity differs. Linux treats Notes.txt and notes.txt as two different files; Windows and macOS normally treat them as the same name.
  • Very long names and stray spaces are legal but awkward; hyphens or underscores are safer, especially for files that will go on a website.

The extension is the part after the last full stop. It indicates the type of data the file contains and, through a table the OS keeps called file association, which program should open it by default. Common extensions to learn:

  • Text and documents: .txt plain text, .docx and .odt word processor documents, .pdf Portable Document Format, .rtf rich text.
  • Spreadsheets and presentations: .xlsx, .ods, .pptx, .odp.
  • Images: .jpg, .png, .gif, .bmp.
  • Sound and video: .mp3, .wav, .mp4, .mkv.
  • Web and programs: .html a web page, .css a style sheet, .py a Python program, .exe a program that runs directly on Windows.
  • Archives: .zip, .rar, .7z — several files packed into one compressed file.

A point examiners like: renaming the extension does not convert the file. If you rename song.mp3 to song.docx, not one byte of the audio changes; the operating system is simply misled and hands the file to a word processor, which fails to read it. Real conversion needs a program that reads one format and writes the other. For the same reason, be suspicious of an attachment named photo.jpg.exe — the true extension is the last one, and this is a program, not a picture.

Every file also carries properties (or attributes) that the OS maintains: its size in KB or MB, the dates it was created and last modified, its location, and flags such as read-only (it can be opened but not overwritten) and hidden (not shown unless you ask). Right-clicking a file and choosing Properties or Get Info shows them.

File name structure filename.extension e.g. class9-marks.xlsx — name chosen by you, extension chosen by the format
File vs folder File stores data; folder stores files folders themselves occupy almost no space
Storage units 1 KB = 1024 bytes; 1 MB = 1024 KB; 1 GB = 1024 MB bytes · used when reading a file's size in its Properties box
Document extensions .txt .docx .odt .pdf plain text, word processor documents, portable document format
True extension photo.jpg.exe is a program only the last extension counts — a common trick used by malware
Remember
  • A file is a named collection of related data on secondary storage; a folder is a container for files and subfolders.
  • Storage is needed because RAM is volatile — its contents are lost when the power goes off.
  • The extension after the last full stop shows the file type and decides which program opens it (file association).
  • Renaming an extension does not convert a file; it only misleads the operating system.
  • Naming rules vary: Linux is case-sensitive, Windows and macOS are usually not, and Windows bars characters such as \ / : * ? " |
  • File properties include size, created and modified dates, and read-only or hidden attributes.

The File System Tree: Absolute and Relative Paths

Quick answer Folders form a tree that starts at a root. An absolute path gives a file's address from that root; a relative path gives it from the folder you are currently in.

Folders are arranged in a hierarchical structure — a tree. The topmost point of the tree is called the root. On Windows each storage device receives a drive letter, so the root of the main disk is C:\ and a pen drive may appear as E:\. On Linux and macOS there is a single tree whose root is written /, with other devices attached inside it. The separator between folder names is the backslash \ on Windows and the forward slash / on Linux and macOS.

Here is a small tree:

C:\
|-- Users
|   |-- Anita
|       |-- Documents
|       |   |-- Projects
|       |       |-- report.docx
|       |-- Pictures
|           |-- logo.png
|-- Windows

A path is the address that tells the operating system where a file or folder lies in this tree. There are two kinds.

An absolute path (also called a full path) states the complete route from the root, naming every folder along the way. For the file above:

C:\Users\Anita\Documents\Projects\report.docx        (Windows)
/home/anita/Documents/Projects/report.docx           (Linux)

An absolute path is unambiguous: it identifies exactly one file, and it means the same thing whichever folder you happen to be working in. You can recognise it because it begins with a drive letter and a backslash on Windows, or with a forward slash on Linux and macOS.

A relative path states the route from the current working directory — the folder you are in at that moment. It does not begin at the root. Two special names are used:

  • . (a single dot) means this folder, the current folder.
  • .. (two dots) means the parent folder, one level up.

Suppose the current folder is C:\Users\Anita\Documents. Then:

  • Projects\report.docx refers to the same report — go down into Projects and take the file.
  • ..\Pictures\logo.png means go up one level to C:\Users\Anita, then down into Pictures and take logo.png.
  • ..\..\ would move up two levels, to C:\Users.

Each kind has its own advantage, and examiners ask for one of each:

  • An absolute path works from anywhere and never becomes ambiguous, which is why it is used in settings files and in system commands.
  • A relative path is shorter to write and, more importantly, stays valid if the whole folder is moved or copied elsewhere, because the internal arrangement of the folder does not change.

That second point is the reason relative paths are used inside web pages. If a page stores its pictures in a subfolder called images, it refers to one as images/logo.png. Copy the entire site folder to a pen drive or to a web server, and every such link still works. Had the page used the absolute path C:\Users\Anita\site\images\logo.png, every picture would break the moment the site left that computer. Paths written inside web pages always use forward slashes, whatever the operating system.

Two smaller points. A file's full name is really its path plus its filename, which is why two files may share the name notes.txt provided they sit in different folders. And a file manager — File Explorer on Windows, Finder on macOS, Files on many Linux desktops — shows the current path in an address bar.

Absolute path (Windows) C:\Users\Anita\Documents\report.docx begins with a drive letter and backslash — valid from any folder
Absolute path (Linux/macOS) /home/anita/Documents/report.docx begins with the root slash
Current and parent folder . = this folder, .. = one level up the two special names used in every relative path
Relative path ..\Pictures\logo.png read from the current working directory, not from the root
Web page links images/logo.png relative, with forward slashes, so the site works after it is copied elsewhere
Remember
  • Folders form a tree whose top is the root: C:\ on Windows, / on Linux and macOS.
  • Windows separates folder names with a backslash \, Linux and macOS with a forward slash /.
  • An absolute path starts from the root and identifies a file uniquely from anywhere.
  • A relative path starts from the current working directory and uses . for the current folder and .. for the parent.
  • Relative paths survive the folder being moved or copied, which is why web pages use them for links and images.
  • Two files may share a filename provided their paths differ — the path plus the name is the true identity.

Creating, Renaming, Copying, Moving, Deleting and Searching

Quick answer The everyday file operations, the clipboard behind cut and paste, what the Recycle Bin really does, and how wildcards make a search precise.

Creating. A folder is made by right-clicking an empty part of a folder window, choosing New and then Folder, and typing a name; at a command line the instruction is md or mkdir. A file is normally created by an application: you type your work and choose Save As, which asks for a filename, a folder and sometimes a file type. Note the distinction — Save silently writes over the existing file, while Save As creates a fresh copy under a new name or place, leaving the earlier one untouched.

Renaming. Select the item and choose Rename from the context menu, or press the rename key your system uses (F2 on most Windows computers). Take care not to disturb the extension: if the file manager is set to hide extensions you may not even see it. Renaming changes only the label, never the contents.

Copying and moving. These two are constantly confused, so learn them precisely.

  • Copy makes a duplicate. The original stays where it was, so afterwards two copies exist.
  • Move (Cut) relocates the item. It disappears from the source folder, so afterwards only one copy exists.

Both work through the clipboard, a temporary area of RAM holding whatever was last cut or copied until something replaces it. On most Windows and Linux desktops the shortcuts are Ctrl+C copy, Ctrl+X cut and Ctrl+V paste; macOS uses Command in place of Ctrl. Because the clipboard lives in RAM, its contents are lost when the computer is shut down. Dragging with the mouse also works, but its meaning varies — within one drive a drag usually moves the item, to a different drive it usually copies — so cut/copy and paste are safer.

To act on several files at once, Ctrl+click scattered items, click the first and Shift+click the last for a whole run, or press Ctrl+A for everything in the folder.

Deleting and the Recycle Bin. Pressing Delete does not usually erase a file. It moves the file to a special folder — the Recycle Bin on Windows, the Trash on macOS and most Linux desktops — from which it can be restored to its original location. Three consequences are examined regularly:

  • A file in the Recycle Bin still occupies disk space. The space is released only when you empty the bin or delete the item from inside it.
  • Holding Shift while pressing Delete on most Windows systems removes the file permanently, bypassing the bin after a warning.
  • Files deleted from a pen drive, a memory card or a network drive are usually not placed in the bin, because the bin belongs to the computer's own disk. They are gone at once, so check twice before deleting from removable media.

On Windows the bin also has a size limit, and once it is full the oldest items are discarded to make room. The Recycle Bin is a safety net against a careless click, never a backup.

Searching. Every file manager has a search box, and most modern operating systems keep an index of filenames so that results appear quickly. You can search on part of a name and narrow the result with filters for date modified, size, file type or location. Two wildcard characters make a search exact:

  • * stands for any number of characters, including none. *.jpg finds every JPEG image; report* finds every name beginning with report.
  • ? stands for exactly one character. chap?.txt matches chap1.txt and chap7.txt, but not chap12.txt and not chap.txt.

Finally, a folder's contents can be sorted by name, date modified, size or type. Sorting by date modified is the quickest way to find yesterday's file when you cannot recall its name.

Copy vs move Copy → 2 copies; Move (Cut) → 1 copy the single most frequently asked distinction in this chapter
Clipboard shortcuts Ctrl+C copy, Ctrl+X cut, Ctrl+V paste Command key instead of Ctrl on macOS
Permanent delete Shift + Delete on most Windows systems, bypasses the Recycle Bin — no restore
Wildcards * = any number of characters; ? = exactly one *.jpg finds all JPEG images; chap?.txt does not match chap12.txt
Multiple selection Ctrl+click scattered, Shift+click a range, Ctrl+A all works in most file managers
Remember
  • Copy leaves two copies; move (cut) leaves one — the item disappears from the source folder.
  • Cut and copy use the clipboard, a temporary RAM area whose contents are lost at shutdown.
  • Save writes over the existing file; Save As creates a new file and leaves the old one intact.
  • Deleting sends a file to the Recycle Bin, where it still occupies disk space until the bin is emptied.
  • Files deleted from a pen drive or network drive usually skip the Recycle Bin and are gone at once.
  • Wildcards: * stands for any number of characters, ? stands for exactly one character.

Compressing Files, Safe Handling and Backups

Quick answer Compression squeezes files so they store and travel more easily; backups are the only real protection against losing them. Learn lossless versus lossy, and the habits examiners expect you to list.

Compression means reducing the size of a file, or of a group of files, so that it takes less storage space and less time to transfer. The tool packs the chosen files into a single archive, usually with the extension .zip, .rar or .7z. Most operating systems can create and open ZIP archives without extra software: select the files, right-click and choose the compress option. Opening the archive again is called extracting or unzipping, and it recreates the original files and folder arrangement.

There are two kinds of compression, and the difference is examined:

  • Lossless compression stores the same information in a cleverer way, so that on extraction the original is recovered exactly, byte for byte. Nothing is thrown away. ZIP archives and PNG images use lossless methods. Compression must be lossless for documents, spreadsheets and programs, where one changed byte could ruin the file.
  • Lossy compression permanently discards detail that eyes or ears are unlikely to notice, in exchange for a much smaller file. JPEG photographs, MP3 audio and MP4 video are lossy. The discarded detail can never be recovered, and re-saving the same JPEG repeatedly slowly degrades its quality.

How much a file shrinks depends on what is inside it. Plain text and spreadsheets compress a great deal, because they contain much repetition; JPEG photographs and MP4 videos barely shrink, because those formats are already compressed. Zipping still helps there, because it bundles many files into one attachment and keeps the folder structure intact.

Backups. A backup is an additional copy of your data, kept separately, so that it can be restored if the original is deleted by mistake, corrupted, stolen, destroyed by hardware failure or locked by malicious software. The essential word is separately: a second copy on the same disk protects you from a careless click, but not from that disk failing.

  • A full backup copies all the selected data every time. It is simple and quick to restore, but slow to make and large.
  • An incremental backup copies only what has changed since the previous backup. It is fast and small, but restoring means replaying the last full backup and the increments in order.
  • Backup media include an external hard disk, a pen drive, a writable disc and cloud storage — space on a provider's computers, reached over the internet. Official Indian certificates can also be kept in DigiLocker.
  • A widely taught rule of thumb: keep three copies of anything important, on two kinds of media, with one stored in a different physical place.

Safe file handling is the set of habits an examiner expects you to list:

  • Save your work often, and use Save As to keep dated versions such as science-project-2026-08-06.docx; a date written year-month-day sorts correctly by name.
  • Give files and folders meaningful names, organise them by subject, and avoid special characters and stray spaces.
  • Scan any pen drive with antivirus software before opening files from it, and never run an unexpected attachment — the last extension is the real one.
  • Use Safely Remove Hardware or Eject before pulling out a pen drive, so the operating system finishes writing; pulling it out mid-write commonly corrupts files.
  • Password-protect confidential documents, and never keep scans of an Aadhaar card, a bank passbook or similar identity papers in a shared folder — such documents are exactly what identity thieves look for.
  • Mark master copies read-only so they cannot be overwritten by accident, and keep the computer on a UPS so a power cut does not interrupt a save.
  • Never treat the Recycle Bin as a backup: it sits on the same disk, has a size limit, and is emptied without warning by clean-up tools.
Compression Many files → one smaller archive zipping packs and shrinks; extracting (unzipping) restores the files and folders
Lossless Original recovered byte for byte ZIP, PNG — required for documents, spreadsheets and programs
Lossy Some detail discarded permanently JPEG, MP3, MP4 — much smaller files, quality cannot be restored
Backup types Full vs incremental full copies everything; incremental copies only what changed since the last backup
Backup rule of thumb 3 copies, 2 kinds of media, 1 off-site a widely taught practice for data that must not be lost
Remember
  • Compression reduces file size so data occupies less space and transfers faster; the packed file is called an archive (.zip, .rar, .7z).
  • Lossless compression restores the original exactly (ZIP, PNG); lossy compression discards detail permanently (JPEG, MP3, MP4).
  • Already-compressed files such as JPEG and MP4 shrink very little, but zipping still bundles many files into one.
  • A backup is a separate extra copy kept so data can be restored after deletion, corruption, theft or hardware failure.
  • A full backup copies everything; an incremental backup copies only what changed since the last backup.
  • Eject removable media before removing it, scan pen drives, password-protect identity documents, and never rely on the Recycle Bin as a backup.

Quick reference

Every term, tag and rule from this chapter in one place — screenshot it before your exam.

OS = resource manager + user interface
Operating system
Secondary storage → RAM
Booting
Process = program in execution
Process
System software vs application software
Software classes
Command Line Interface
CLI
Graphical User Interface
GUI
dir (Windows) = ls (Linux/macOS)
List files
Proprietary vs open source
Software licence types
Single-user / multi-user; single-tasking / multitasking
OS categories
Windows, Icons, Menus, Pointer
WIMP
Shortcut = pointer to a file, not the file
Shortcut
Minimise = still in RAM; Close = removed from RAM
Minimise vs close
Command... → a dialog box opens
Ellipsis in a menu
Right-click → commands for that object only
Context menu
filename.extension
File name structure
File stores data; folder stores files
File vs folder
1 KB = 1024 bytes; 1 MB = 1024 KB; 1 GB = 1024 MB
Storage unitsbytes
.txt .docx .odt .pdf
Document extensions
photo.jpg.exe is a program
True extension
C:\Users\Anita\Documents\report.docx
Absolute path (Windows)
/home/anita/Documents/report.docx
Absolute path (Linux/macOS)
. = this folder, .. = one level up
Current and parent folder
..\Pictures\logo.png
Relative path
images/logo.png
Web page links
Copy → 2 copies; Move (Cut) → 1 copy
Copy vs move
Ctrl+C copy, Ctrl+X cut, Ctrl+V paste
Clipboard shortcuts
Shift + Delete
Permanent delete
* = any number of characters; ? = exactly one
Wildcards
Ctrl+click scattered, Shift+click a range, Ctrl+A all
Multiple selection
Many files → one smaller archive
Compression
Original recovered byte for byte
Lossless
Some detail discarded permanently
Lossy
Full vs incremental
Backup types
3 copies, 2 kinds of media, 1 off-site
Backup rule of thumb

Test yourself

Tap an answer to check it instantly — you'll see why it's right, and what to revise if it isn't.

0 correct · 0/12 answered
Q1 Types of software easy

Which of the following is an example of system software?

Q2 Functions of an OS easy

Deciding which program gets the CPU next, and for how long, is part of which function of the operating system?

Q3 Common operating systems easy

Which of these is primarily a mobile operating system?

Q4 CLI vs GUI medium

Which statement gives a genuine advantage of a Command Line Interface over a Graphical User Interface?

Q5 Paths easy

Which of the following is an absolute path?

Q6 Relative paths hard

The current folder is C:\School\Class9\Notes. Which file does the relative path ..\Labs\lab1.txt refer to?

Q7 Copy and move medium

You cut a file from folder A and paste it into folder B. How many copies of the file now exist?

Q8 Recycle Bin medium

On most Windows computers, a file deleted from a pen drive using the Delete key is

Q9 Backups medium

A student's only copy of a project is on her laptop's hard disk, and an older version happens to be sitting in the Recycle Bin. Why does this not count as a backup?

Q10 Searching with wildcards hard

Which files does the search pattern chap?.txt match?

Q11 Compression medium

ZIP compression is described as lossless because

Q12 File extensions medium

Renaming a file from song.mp3 to song.docx will

NCERT solutions & previous-year questions

Step-by-step model answers — tap a question to reveal the full solution.

NCERT questions 8

1 Define an operating system. State any four of its main functions.Functions of an OS

An operating system (OS) is the system software that manages all the hardware and software resources of a computer and provides an interface between the user and the machine. It is loaded into RAM during booting, and no other program can run until it is in place.

Four of its main functions are:

  1. Process management — it schedules the running programs, deciding which process gets the CPU and for how long, and switches between them so quickly that they appear to run at the same time.
  2. Memory management — it keeps track of which parts of RAM are free and which are allotted, loads a program into memory when it is opened and frees that memory when it is closed.
  3. File management — it organises data into files and folders, records where each file is stored and carries out creating, saving, copying and deleting, along with access permissions.
  4. Device management — it controls devices such as the printer, keyboard and pen drive through device drivers, and queues jobs where necessary.

A fifth function, often added, is providing a user interface — a command line or a graphical interface through which the user gives instructions.

2 Distinguish between a CLI and a GUI. Give one advantage of each.CLI vs GUI

A CLI (Command Line Interface) presents a text prompt at which the user types a command and presses Enter; the operating system carries it out and prints text output. Examples are Command Prompt on Windows and a shell in a Terminal window on Linux or macOS.

A GUI (Graphical User Interface) presents the work as pictures on the screen which the user acts on with a pointing device. It is summed up as WIMP — Windows, Icons, Menus and a Pointer.

Advantage of a GUI: it is much easier for a beginner, because the available choices are visible on the screen and can be found by looking, whereas a CLI gives no clue about which commands exist.

Advantage of a CLI: one typed command can act on hundreds of files at once, and commands can be stored in a script and run again exactly as before; it also uses far less memory and needs no graphics support, which suits servers and older machines.

3 What is a file? What is a folder? How do they differ?Files and folders

A file is a named collection of related data stored on a secondary storage device such as a hard disk, an SSD or a pen drive. Documents, photographs, songs and programs are all files. Files are necessary because RAM is volatile — its contents are lost when the power is switched off — so anything to be kept must be written to storage.

A folder, also called a directory, is a named container used to organise files and other folders. A folder inside another folder is called a subfolder.

Difference: a file stores the actual data, while a folder stores files and other folders. A folder holds no data of its own and occupies almost no space; it only records which items belong together. Files usually have an extension that shows their type, whereas folders normally do not.

4 What is a file extension? Why is it important? What happens if you change it?File extensions

A file extension is the part of a filename that follows the last full stop, as xlsx in class9-marks.xlsx.

It is important for two reasons. First, it tells the user what type of data the file contains — text, image, sound, program or archive. Second, the operating system keeps a table called file association which links each extension to the program that should open files of that type, so that double-clicking the file starts the right application.

If you change the extension, the contents of the file do not change at all. Renaming song.mp3 to song.docx leaves the audio data untouched; it only misleads the operating system, which then passes the file to a word processor that cannot read it. Real conversion requires a program that reads one format and writes the other. For the same reason an attachment called photo.jpg.exe should be treated with suspicion, because only the last extension counts and this file is a program.

5 Differentiate between an absolute path and a relative path, with one example of each.Paths

An absolute path gives the complete address of a file starting from the root of the file system and naming every folder along the way. It identifies exactly one file and means the same thing from any folder. Example: C:\Users\Anita\Documents\Projects\report.docx on Windows, or /home/anita/Documents/Projects/report.docx on Linux.

A relative path gives the address of a file starting from the current working directory. It uses . for the current folder and .. for the parent folder. Example: if the current folder is C:\Users\Anita\Documents, then Projects\report.docx refers to the same file, and ..\Pictures\logo.png means go up one level and then into Pictures.

Advantages: an absolute path is unambiguous and works from anywhere; a relative path is shorter and remains valid when the whole folder is moved or copied elsewhere, which is why web pages refer to their images as images/logo.png rather than by a full path.

6 Explain the difference between copying and moving a file. What role does the clipboard play?File operations

Copying makes a duplicate of the file. The original remains in its folder, so after a copy and paste there are two copies of the file in two places.

Moving (cut and paste) relocates the file. It is removed from the source folder, so afterwards only one copy exists, in the destination folder.

The clipboard is a temporary area of RAM that holds whatever was last cut or copied until the next cut or copy replaces it. Pasting places the clipboard's contents at the chosen destination. Because the clipboard is held in RAM, its contents are lost when the computer is shut down. On most Windows and Linux desktops the shortcuts are Ctrl+C to copy, Ctrl+X to cut and Ctrl+V to paste; macOS uses the Command key instead of Ctrl.

Dragging a file with the mouse also works but its meaning varies — within one drive it usually moves the file, while dragging to another drive usually copies it — so cut/copy and paste are the safer choice.

7 What is the Recycle Bin? Does sending a file to it free disk space? How can a file be deleted permanently?Recycle Bin

The Recycle Bin is a special folder on the computer's disk that holds files and folders you have deleted, so that they can be recovered if the deletion was a mistake. On macOS and most Linux desktops it is called the Trash. Right-clicking an item inside it and choosing Restore returns it to the folder it came from.

No — sending a file to the Recycle Bin does not free disk space. The file is only relabelled and relocated; it still occupies the same room on the disk. The space is released only when the bin is emptied, or the item is deleted from inside the bin. The bin itself has a size limit, and once it is full the oldest items in it are discarded automatically.

To delete permanently, hold Shift while pressing Delete on most Windows systems, which bypasses the bin after a warning, or empty the Recycle Bin afterwards. Note also that files deleted from a pen drive, a memory card or a network drive are usually not placed in the bin at all and are removed at once.

8 What is file compression? Differentiate between lossless and lossy compression, giving two examples of each.Compression

File compression is the process of reducing the size of a file, or of a group of files, so that it occupies less storage space and takes less time to transfer. The compressed result is a single archive file, usually with the extension .zip, .rar or .7z. Opening it again is called extracting or unzipping.

Lossless compression stores exactly the same information in a more efficient way, so that extraction recovers the original byte for byte. Nothing is discarded. Examples: .zip archives and .png images. It must be used for documents, spreadsheets and programs, where a single altered byte could ruin the file.

Lossy compression permanently throws away detail that the eye or ear is unlikely to notice, in return for a far smaller file. The discarded detail can never be recovered. Examples: .jpg photographs and .mp3 audio (.mp4 video is another).

How much a file shrinks depends on its contents: text and spreadsheets compress a great deal, whereas JPEG and MP4 files barely shrink because they are already compressed. Zipping them is still useful, because it bundles many files into one attachment and preserves the folder arrangement.

Previous-year board questions 6

Q1 Expand the following abbreviations: (i) OS (ii) GUI (iii) CLI (iv) RAM 2 marks
  • OS — Operating System
  • GUI — Graphical User Interface
  • CLI — Command Line Interface
  • RAM — Random Access Memory
Q2 Rohit deleted a file from his pen drive by mistake and could not find it in the Recycle Bin. Explain why this happened, and state one precaution he should take in future. 2 marks

Reason: the Recycle Bin is a folder that belongs to the computer's own hard disk. Files deleted from removable media such as a pen drive or a memory card, and from network drives, are generally not sent to it — they are removed straight away and cannot be restored from the bin.

Precaution (any one): copy files from the pen drive to the computer and delete them from there, so that a deleted item does reach the Recycle Bin; or keep a backup copy of important pen-drive files on the computer or in cloud storage; or read the confirmation dialog carefully before confirming a deletion from removable media.

Q3 Explain any three functions of an operating system. 3 marks

1. Process management. A process is a program in execution. The operating system decides which process receives the CPU and for how long, switching between processes so rapidly that several programs appear to run at once. It also starts and ends processes and settles conflicts over shared resources.

2. Memory management. The operating system records which parts of RAM are free and which are allotted to which program. It loads a program into memory when it is opened, releases that memory when it closes, and prevents one program from writing into another's memory area. When RAM is short it uses virtual memory, an area of disk treated as extra memory.

3. Device management. The operating system controls hardware such as the keyboard, printer and pen drive through device drivers, small programs that translate its general instructions into the signals each device understands. It also queues jobs, for example several documents waiting at a printer.

Q4 The current working folder is D:\Project\Images. A file report.docx is stored in D:\Project\Docs. (i) Write the absolute path of report.docx. (ii) Write a relative path to it from the current folder. (iii) State one advantage of using a relative path. 3 marks

(i) Absolute path: D:\Project\Docs\report.docx — it begins at the root of drive D and names every folder down to the file.

(ii) Relative path from D:\Project\Images: ..\Docs\report.docx — the two dots move up one level from Images to D:\Project, and the path then goes down into Docs.

(iii) Advantage: a relative path stays valid if the whole Project folder is moved or copied to another drive or another computer, because the arrangement of folders inside it does not change. It is also shorter to write. This is why web pages link to their images with relative paths such as images/logo.png.

Q5 Differentiate between lossless and lossy compression, giving one example of each. 2 marks

Lossless compression reduces the file size without discarding any information, so that extraction recreates the original exactly, byte for byte. Example: a .zip archive (a .png image is another). It is required for documents and programs.

Lossy compression reduces the file size by permanently discarding detail that the eye or ear is unlikely to miss; the removed detail can never be recovered. Example: a .jpg photograph (.mp3 audio is another). It gives much smaller files and is used for photographs, music and video.

Q6 Priya keeps her Class 9 project, her scanned certificates and her family photographs on one laptop. Describe any five safe file handling and backup practices she should follow. 5 marks

Any five of the following, each with a brief reason:

  1. Keep a backup on separate media. A backup is an extra copy kept apart from the original, on an external hard disk, a pen drive or cloud storage, so that a disk failure or theft does not destroy the only copy. A widely taught rule is three copies, on two kinds of media, with one kept in a different place.
  2. Do not treat the Recycle Bin as a backup. It sits on the same disk, has a size limit and is emptied without warning by clean-up tools.
  3. Save often and keep dated versions using Save As, for example project-2026-08-06.docx. A date written year-month-day also sorts correctly by name.
  4. Organise files in clearly named folders by subject, avoiding special characters and stray spaces, so that files can be found and searched for later.
  5. Protect identity documents. Scans of an Aadhaar card, bank passbook or mark sheet should be password-protected and never left in a shared folder, since such documents are exactly what identity thieves look for. Official certificates can also be kept in DigiLocker.
  6. Scan pen drives with antivirus software before opening files, and never run an unexpected attachment — remember that the last extension is the real one, so photo.jpg.exe is a program.
  7. Use Safely Remove Hardware or Eject before pulling out a pen drive, so the operating system finishes writing and files are not corrupted; a UPS similarly protects against a power cut during a save.
  8. Mark master copies read-only so that they cannot be overwritten by mistake.

Part of Priodemy for School

Interactive Maths & Science — free with every school on Priodemy EduSuite. Explore more chapters and labs on the Priodemy for School hub.

Ask AI