Chapter 3: Operating Systems
What to remember
- An operating system (OS) is system software that manages hardware, runs programs and gives the user an interface. Windows is a GUI-based OS from Microsoft; Linux is open source and is a UNIX-like OS; MS-DOS is a command-line OS.
- Know the file and folder basics: file extensions, Recycle Bin, Task Manager, Control Panel and the main DOS commands (DIR, CD, MD, COPY, DEL, CLS, REN).
- Shortcut keys are frequently asked: Ctrl+C copy, Ctrl+X cut, Ctrl+V paste, Ctrl+Z undo, Alt+Tab switch window, Windows key + D show desktop.
Operating system basics
An operating system sits between the user and the hardware. When the computer starts, the boot process loads the OS into RAM. Without an OS, a computer cannot run application programs.
Main functions of an OS:
- Process management: decides which program gets the CPU and for how long.
- Memory management: gives and takes back RAM for programs.
- File management: creates, stores, names, finds and deletes files and folders.
- Device management: controls input and output devices through programs called drivers.
- Security: user accounts, passwords and permissions.
- User interface: a way for the user to give commands.
Types of OS by use:
- Single-user: one user at a time, such as MS-DOS.
- Multi-user: many users share one computer, such as UNIX and Linux.
- Multitasking: runs several programs at once, such as Windows.
- Batch: jobs are collected and run together, with no user interaction.
- Real-time (RTOS): gives results within a fixed time, used in missiles, medical devices and industrial control.
- Time-sharing: the CPU time is divided in small slices among many users.
- Mobile OS: Android and iOS.
Interfaces: a CLI (Command Line Interface) needs typed commands, as in DOS. A GUI (Graphical User Interface) uses windows, icons, menus and a pointer, as in Windows. The kernel is the core of the OS that talks to the hardware. The shell is the part that takes the user's commands and passes them to the kernel.
Windows
Windows is a multitasking GUI operating system made by Microsoft. Its first big success came with Windows 3.0 (1990); Windows 95 introduced the Start button and taskbar. Later versions include Windows XP, 7, 8, 10 and 11.
Key parts of the Windows screen:
- Desktop: the main screen where icons are placed.
- Icon: a small picture for a file, folder or program.
- Taskbar: the strip at the bottom that shows the Start button, running programs and the notification area.
- Start menu: opens programs, settings and the power options.
- Recycle Bin: holds deleted files. Files can be restored from here until it is emptied. Pressing Shift+Delete deletes a file directly without sending it to the Recycle Bin.
- Control Panel and Settings: change system options such as display, users and uninstalling programs.
- Task Manager: shows running programs and processes and lets you end a program that has stopped responding. It opens directly with Ctrl+Shift+Esc, or from the screen shown by Ctrl+Alt+Delete.
- File Explorer (Windows Explorer): the tool for browsing files and folders.
- Notepad: a simple text editor. WordPad and Paint are other built-in programs.
Windows has window controls: minimise, maximise or restore, and close. A dialog box asks the user for choices. A folder holds files and other folders. A path is the address of a file, such as C:\Users\Ravi\Documents\letter.docx. The drive letters C: and D: name disk partitions; A: and B: were used for floppy disks.
Linux and UNIX basics
UNIX is a powerful multi-user, multitasking OS first created at Bell Labs. Linux is a free and open source UNIX-like kernel created by Linus Torvalds. Anyone can see, change and share its source code. Linux comes in many flavours called distributions, such as Ubuntu, Fedora, Debian and Red Hat. Android is also built on the Linux kernel. Linux is widely used on servers because it is stable and secure. Its mascot is a penguin called Tux. Open source means the source code is free for all to use and modify.
File system: Linux has a single tree with the root directory shown as "/". Users' home folders are inside /home. Names are case sensitive, so "File" and "file" are different.
Common Linux commands:
| Command | Use |
|---|---|
| ls | list files |
| cd | change directory |
| pwd | show present working directory |
| mkdir | make a directory |
| rm | remove a file |
| cp | copy a file |
| mv | move or rename |
| cat | show file content |
| chmod | change file permissions |
| sudo | run a command as administrator |
DOS commands
MS-DOS (Microsoft Disk Operating System) is a single-user, single-tasking, command-line OS. The prompt looks like C:\>. Commands are of two kinds. Internal commands are built into the command interpreter (COMMAND.COM) and are always available. External commands are separate program files that must be present on the disk.
| Command | Type | Use |
|---|---|---|
| DIR | Internal | list files and folders |
| CD or CHDIR | Internal | change directory |
| MD or MKDIR | Internal | make a directory |
| RD or RMDIR | Internal | remove an empty directory |
| COPY | Internal | copy files |
| DEL or ERASE | Internal | delete files |
| REN or RENAME | Internal | rename a file |
| CLS | Internal | clear the screen |
| DATE, TIME | Internal | show or set date and time |
| TYPE | Internal | show contents of a text file |
| VER | Internal | show DOS version |
| FORMAT | External | prepare a disk for use |
| XCOPY | External | copy folders with files |
| CHKDSK | External | check a disk |
| DISKCOPY | External | copy a whole disk |
| TREE | External | show folder structure |
Wildcards: * stands for any group of characters, and ? stands for one character. For example, DIR *.TXT lists all text files. A batch file has the extension .BAT and holds a list of DOS commands. AUTOEXEC.BAT and CONFIG.SYS are start-up files of DOS.
File management
A file is a named collection of data stored on a disk. The file name has two parts: the name and the extension, separated by a dot. The extension tells the type.
| Extension | File type |
|---|---|
| .docx | Word document |
| .xlsx | Excel workbook |
| .pptx | PowerPoint presentation |
| .txt | plain text |
| portable document | |
| .jpg, .png, .gif | image |
| .mp3 | audio |
| .mp4 | video |
| .exe | program that can run |
| .zip | compressed folder |
| .html | web page |
Basic operations are create, open, save, copy, move, rename, delete and search. Copy leaves the original in place; cut and paste moves it. Rename can be done with F2. A shortcut is a link to a file placed elsewhere, such as on the desktop. Properties show size, type and date. Compression (ZIP) reduces file size. Defragmentation arranges scattered pieces of files on an HDD to speed it up. Formatting prepares a disk with a file system, such as NTFS or FAT32; it erases data. NTFS is the modern Windows file system.
Shortcut keys
| Keys | Action |
|---|---|
| Ctrl+C | copy |
| Ctrl+X | cut |
| Ctrl+V | paste |
| Ctrl+Z | undo |
| Ctrl+Y | redo |
| Ctrl+A | select all |
| Ctrl+S | save |
| Ctrl+P | |
| Ctrl+F | find |
| Alt+Tab | switch between open windows |
| Alt+F4 | close the active window |
| Windows key + D | show the desktop |
| Windows key + E | open File Explorer |
| Windows key + L | lock the computer |
| F2 | rename |
| F5 | refresh |
| Ctrl+Shift+Esc | open Task Manager |
| Shift+Delete | delete permanently |
| Print Screen | copy the screen as a picture |
Exam traps
- DOS is command-line and single-tasking; Windows is GUI and multitasking.
- Shift+Delete skips the Recycle Bin; plain Delete sends the file there.
- Cut and paste moves a file; copy and paste keeps the original.
- Linux is open source and free; Windows is proprietary.
- Linux file names are case sensitive; Windows file names are not.
- DIR, COPY, DEL, REN and CLS are internal commands; FORMAT, XCOPY and CHKDSK are external.
- The kernel talks to hardware; the shell talks to the user.
- Ctrl+Y is redo; Ctrl+Z is undo. Alt+F4 closes a window, but Ctrl+F4 closes only the document inside a program.
- Linus Torvalds made Linux; he did not make UNIX.
One-liners
- 1. An OS manages hardware and software resources of a computer.
- 2. Linux was created by Linus Torvalds.
- 3. MS-DOS is a single-user, command-line OS.
- 4. The Recycle Bin keeps deleted files until it is emptied.
- 5. Task Manager can end a program that is not responding.
- 6. The extension of a Word file is .docx and of Excel is .xlsx.
- 7. In DOS, CLS clears the screen.
- 8. The wildcard * stands for any number of characters.
- 9. Alt+Tab switches between open programs.
- 10. Android is built on the Linux kernel.
- 11. The root directory in Linux is written as "/".
- 12. A driver is a program that lets the OS control a device.
Practice questions
Which of the following is system software?
- Media player
- MS Word
- Tally
- Operating system
Answer
D. Operating system
An OS manages the computer and is system software.
Who created the Linux kernel?
- Dennis Ritchie
- Bill Gates
- Linus Torvalds
- Steve Jobs
Answer
C. Linus Torvalds
Linus Torvalds released Linux as a free UNIX-like kernel.
MS-DOS is an example of a
- graphical OS
- mobile OS
- command line interface OS
- real-time OS only
Answer
C. command line interface OS
DOS needs typed commands.
Which keys copy the selected item?
- Ctrl+Z
- Ctrl+C
- Ctrl+X
- Ctrl+V
Answer
B. Ctrl+C
Ctrl+C copies; Ctrl+V pastes.
Which shortcut undoes the last action?
- Ctrl+U
- Ctrl+D
- Ctrl+Y
- Ctrl+Z
Answer
D. Ctrl+Z
Ctrl+Z is undo; Ctrl+Y is redo.
Which shortcut switches between open windows?
- Ctrl+Tab
- Alt+Tab
- Shift+Tab
- Alt+Esc only
Answer
B. Alt+Tab
Alt+Tab cycles through open programs.
Which DOS command clears the screen?
- VER
- DEL
- CLS
- DIR
Answer
C. CLS
CLS means clear screen.
Which DOS command lists files and folders?
- MD
- TYPE
- REN
- DIR
Answer
D. DIR
DIR shows the directory listing.
The extension of a Microsoft Word file is
- docx
- txt
- pptx
- xlsx
Answer
A. docx
Word uses .docx.
Deleted files in Windows first go to the
- Control Panel
- Recycle Bin
- Task Manager
- Clipboard
Answer
B. Recycle Bin
The Recycle Bin allows restoring deleted files.
Which program is used to end a program that is not responding?
- Recycle Bin
- Notepad
- Task Manager
- Paint
Answer
C. Task Manager
Task Manager lists processes and lets you end a task.
The strip at the bottom of the Windows screen is called the
- Status bar
- Menu bar
- Title bar
- Taskbar
Answer
D. Taskbar
The taskbar holds the Start button and running programs.
Linux is an example of
- open source software
- proprietary software
- shareware only
- firmware
Answer
A. open source software
Its source code is free to view and change.
Which of the following is a Linux distribution?
- Paint
- Ubuntu
- Windows XP
- MS-DOS
Answer
B. Ubuntu
Ubuntu, Fedora and Debian are distributions.
Which key combination permanently deletes a file without using the Recycle Bin?
- Delete
- Ctrl+Delete
- Shift+Delete
- Alt+Delete
Answer
C. Shift+Delete
Shift+Delete bypasses the Recycle Bin.
Which function key renames a selected file in Windows?
- F12
- F1
- F5
- F2
Answer
D. F2
F2 starts rename; F5 refreshes.
Which Linux command shows the present working directory?
- pwd
- ls
- cd
- cat
Answer
A. pwd
pwd means print working directory.
Which Linux command lists files in a directory?
- cp
- ls
- rm
- mv
Answer
B. ls
ls lists directory content.
Which of the following is an external DOS command?
- COPY
- DIR
- FORMAT
- CLS
Answer
C. FORMAT
FORMAT is a separate program file, not built into COMMAND.COM.
Which of the following is an internal DOS command?
- REN
- CHKDSK
- TREE
- XCOPY
Answer
A. REN
REN is built into COMMAND.COM.
In DOS, the wildcard symbol that stands for any group of characters is
- #
- *
- ?
- $
Answer
B. *
* matches many characters; ? matches exactly one.
The core part of an OS that directly controls hardware is the
- shell
- driver
- compiler
- kernel
Answer
D. kernel
The kernel is the heart of the OS.
The part of an OS that accepts and interprets user commands is the
- shell
- driver
- kernel
- BIOS
Answer
A. shell
The shell passes commands to the kernel.
An OS in which many programs run at the same time is called
- single tasking
- batch only
- simplex
- multitasking
Answer
D. multitasking
Windows is a multitasking OS.
An OS that must respond within a fixed time limit is a
- real-time OS
- batch OS
- single-user OS
- network OS only
Answer
A. real-time OS
Used in control systems and medical devices.
A program that lets the OS control a hardware device is called a
- assembler
- driver
- browser
- compiler
Answer
B. driver
Device drivers connect the OS to hardware.
Which file extension denotes a program that can be run directly?
- jpg
- exe
- txt
Answer
C. exe
.exe is an executable file.
Which shortcut opens Task Manager directly?
- Ctrl+Esc
- Ctrl+Shift+Esc
- Ctrl+Alt+Tab
- Alt+F4
Answer
B. Ctrl+Shift+Esc
Ctrl+Shift+Esc opens Task Manager.
Which shortcut shows the desktop in Windows?
- Windows key + E
- Windows key + L
- Windows key + D
- Windows key + R
Answer
C. Windows key + D
Win+D minimises all windows. Win+E opens File Explorer; Win+L locks.
Defragmentation is done to
- delete old files
- compress files
- install drivers
- arrange scattered file pieces on a disk
Answer
D. arrange scattered file pieces on a disk
It improves access speed on an HDD.
The file system commonly used by modern Windows is
- EXT only
- HFS
- NTFS
- ISO
Answer
C. NTFS
NTFS is the standard Windows file system.
Which command creates a new folder in DOS?
- CD
- MD
- DIR
- RD
Answer
B. MD
MD means make directory; RD removes one.
In Linux, which command is used to change file permissions?
- chmod
- chown only
- mkdir
- sudo
Answer
A. chmod
chmod changes read, write and execute permissions.
The root directory of a Linux file system is written as
- \
- C:\
- ~
- /
Answer
D. /
Linux has one tree starting at /.
Which of the following is a batch file extension in DOS?
- bas
- bat
- bak
- bin
Answer
B. bat
Batch files carry the .BAT extension.
The mobile operating system Android is based on the
- Symbian kernel
- UNIX Windows kernel
- DOS kernel
- Linux kernel
Answer
D. Linux kernel
Android is built on the Linux kernel.
Statements: 1. Linux file names are case sensitive. 2. Windows is open source. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
Windows is proprietary; Linux is open source.
Statements: 1. DIR is an internal DOS command. 2. FORMAT is an internal DOS command. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
FORMAT is an external command.
Statements: 1. Cut and paste moves a file. 2. Copy and paste keeps the original. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
C. Both 1 and 2
Both describe the operations correctly.
Statements: 1. Ctrl+Y is undo. 2. Ctrl+Z is undo. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
B. 2 only
Ctrl+Z is undo; Ctrl+Y is redo.
Statements: 1. The kernel interacts with hardware. 2. MS-DOS is multi-user. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
MS-DOS is single-user.
Statements: 1. A GUI uses icons and windows. 2. A CLI needs typed commands. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
C. Both 1 and 2
These are the standard descriptions.
Statements: 1. Alt+F4 closes the active window. 2. Shift+Delete sends a file to the Recycle Bin. Which is/are correct?
- 1 only
- 2 only
- Both 1 and 2
- Neither 1 nor 2
Answer
A. 1 only
Shift+Delete deletes permanently.
Match the pair: which pair is correct?
- TYPE - deletes a file
- VER - renames a file
- TREE - clears the screen
- XCOPY - copies folders with files
Answer
D. XCOPY - copies folders with files
TYPE shows file contents; VER shows version; TREE shows folder structure.
Which Windows key combination locks the computer?
- Alt+F4
- Windows key + D
- Windows key + E
- Windows key + L
Answer
D. Windows key + L
Win+L locks the screen.