Ez Computerहिन्दीOpen app

MS-DOS, Linux, Unix, macOS and Mobile Operating Systems

Preview Part E: Operating Systems · Chapter 20 · 17 min read · 76 practice questions

After this chapter you will be able to

  • describe MS-DOS and distinguish internal and external commands
  • recall key facts about Unix and Linux, including distributions and commands
  • identify macOS and mobile operating systems and their makers
  • recall Indian operating-system initiatives
  • compare popular operating systems in one table
OS basicsMS-DOSReleased 1981Internal: DIR, COPYExternal: FORMATUnix & LinuxUnix: 1969, Bell LabsLinux kernel: 1991Mascot: Tux (penguin)Linux commandsls, cd, pwd, cpchmod: permissionsCase-sensitivemacOS & mobilemacOS: Apple, UnixAndroid: Google, LinuxiOS: Apple, 2007OS milestones1956: GM-NAA I/O1974: CP/M2008: Android phonePlatformsPlatform = HW + OSEmulator copiesSimulator imitates one
Chapter 20 at a glance Recall the key names and dates: MS-DOS commands, Unix and Linux, Linux commands, macOS and mobile systems, OS milestones and platforms.

20.1 MS-DOS

Internal commands In memory (RAM) COMMAND.COM DIR COPY DEL REN CLS Always ready to run Example: DIR, COPY External commands On the disk .COM / .EXE files FORMAT CHKDSK XCOPY DISKCOPY Must be found on disk Example: FORMAT, CHKDSK
Internal vs external DOS commands Internal commands live inside COMMAND.COM and are always ready. External commands are separate program files on disk, such as FORMAT and CHKDSK.
DIR > LIST.TXT > sends output to a file or device DIR >> LIST.TXT >> adds output to the end of a file file.txt < Command < takes input from a file, not the keyboard Command 1 | Command 2 | sends one command's output into the next
Redirection and pipes Redirection changes where a command reads from or writes to. A pipe (|) sends one command's output straight into another.

MS-DOS (Microsoft Disk Operating System) is a single-user, single-tasking, CLI operating system released in 1981 for the IBM PC.

Key DOS system files

File Job
IO.SYS Handles input/output with hardware
MSDOS.SYS DOS kernel
COMMAND.COM Command interpreter — reads and runs typed commands
CONFIG.SYS Configuration settings at start-up
AUTOEXEC.BAT Batch file that runs automatically at start-up

Internal vs External Commands

Feature Internal commands External commands
Stored in COMMAND.COM (loaded in memory) Separate files on disk (.COM / .EXE)
Available Always, instantly Only if the file is present
Examples DIR, CD, MD, RD, COPY, DEL, REN, TYPE, CLS, DATE, TIME, VER, VOL, ECHO, PATH, PROMPT FORMAT, CHKDSK, XCOPY, DISKCOPY, ATTRIB, TREE, LABEL, EDIT, SYS, FDISK, SCANDISK, MORE, SORT
Command Action
DIR Lists files and folders
CD / CHDIR Changes directory (CD.. = go up one level; CD = go to root)
MD / MKDIR Makes a directory
RD / RMDIR Removes an empty directory
COPY Copies files
XCOPY Copies files and sub-folders
DEL / ERASE Deletes files
REN / RENAME Renames a file
TYPE Shows the contents of a text file
CLS Clears the screen
DATE / TIME Shows or sets date / time
VER Shows the DOS/Windows version
VOL Shows the disk volume label and serial number
FORMAT Prepares (formats) a disk
CHKDSK Checks a disk for errors
ATTRIB Shows or changes file attributes (read-only, hidden…)
TREE Shows folder structure graphically
DISKCOPY Copies an entire floppy disk
EDIT Opens a text editor

Wildcards: * = any number of characters (e.g., *.txt); ? = exactly one character (e.g., file?.doc).

Redirection and Pipes

DOS File Extensions

Extension Meaning
.COM Command file (a small program)
.EXE Executable (program) file
.BAT Batch file — a list of commands run one after another
.SYS System or device driver file

More DOS Commands

Command Action
HELP Shows details about a command
EXIT Ends the COMMAND.COM session
SYS Copies DOS system files to a disk so that it can boot
VSAFE Basic virus protection for DOS
EXPAND Extracts files from Microsoft CAB files
GOTO Jumps to a labelled line in a batch file
CHOICE Shows a list of choices inside a batch file
LABEL Creates, changes or deletes the volume label (name) of a disk
DELTREE Deletes a directory together with all its sub-directories and files (external)

★ EXAM POINT — COMMAND.COM is the DOS command interpreter; DIR, COPY, DEL, REN, CLS are internal; FORMAT, CHKDSK, XCOPY, DISKCOPY are external. DOS was single-user, single-task.

Modern Windows still has a command line — Command Prompt (cmd.exe) and PowerShell — which accept many DOS-style commands.

20.2 Unix

What the full chapter covers

The full chapter has these sections:

  1. 20.1 MS-DOS
  2. 20.2 Unix
  3. 20.3 Linux
  4. 20.4 macOS
  5. 20.5 Mobile Operating Systems
  6. 20.6 OS Comparison Table
  7. 20.7 Operating System Milestones
  8. 20.8 Platforms, Emulators and Simulators
  9. 20.9 More Exam Facts
  10. Chapter Quick Revision
  11. Most Important Terms
  12. Common Confusions
  13. Rapid Recall

Sample questions from this chapter

1. Maximum characters in a DOS file extension?

  1. 10
  2. 8
  3. 3
  4. 4
Show answer

Answer: C. 3

The extension of a DOS file name can have up to 3 characters, as in the 8.3 format.

2. Android version code-named Nougat?

  1. 7.0
  2. 6.0
  3. 5.0
  4. 8.0
Show answer

Answer: A. 7.0

Nougat is Android 7.0, which came between Marshmallow (6.0) and Oreo (8.0).

3. Full form of APK?

  1. Android Package Key
  2. Android Program Kit
  3. Application Package Kit
  4. Android Package Kit
Show answer

Answer: D. Android Package Kit

APK (Android Package Kit) is the file format used to install apps on Android devices.

4. Linux GNOME shortcut for the Run Command box?

  1. Ctrl + F2
  2. Alt + F4
  3. Alt + F2
  4. Alt + F1
Show answer

Answer: C. Alt + F2

In GNOME, Alt + F2 opens the Run Command dialog.

5. Handheld OS used on early PDAs such as Palm?

  1. Palm OS
  2. Chrome OS
  3. Fire OS
  4. Tizen
Show answer

Answer: A. Palm OS

Palm OS was the handheld OS used on early PDAs such as the Palm.