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
20.1 MS-DOS
MS-DOS (Microsoft Disk Operating System) is a single-user, single-tasking, CLI operating system released in 1981 for the IBM PC.
- Microsoft bought its base, 86-DOS (QDOS), from Seattle Computer Products (written by Tim Paterson).
- IBM sold its own version, PC-DOS (also called IBM-DOS), with the original IBM PC in 1981. MS-DOS is Microsoft’s version.
- Last standalone version: MS-DOS 6.22 (1994); Windows 95/98/ME still ran on a DOS base.
- File names used the 8.3 format (8-character name + 3-character extension).
- File names cannot contain spaces or these characters:
\ / : * ? " < > |. - DOS file names are not case-sensitive, so
FILE.TXTandfile.txtare the same file. - Default prompt: C:>
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
- > sends a command’s output to a file or device instead of the screen (e.g.,
DIR > LIST.TXT). - >> appends output to the end of an existing file.
- < takes input from a file instead of the keyboard.
- | (pipe) sends the output of one command as the input of another command.
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
- Developed in 1969 at AT&T Bell Labs by Ken Thompson and Dennis Ritchie.
- Rewritten in C in 1973 — this made it portable.
- Multi-user, multitasking, stable and secure; widely used on servers.
- Variants: BSD, Solaris (Oracle), AIX (IBM), HP-UX; macOS is a certified Unix.
- Dennis Ritchie devised the C language in the early 1970s as the system programming language for Unix.
- Unix grew out of the earlier time-sharing system Multics.
- The BSD family (FreeBSD, OpenBSD, NetBSD, PC-BSD) is a set of open-source, Unix-based operating systems.
- Unix programming tools include lint, which checks C source code for errors, and the C shell (csh), a command interpreter with C-like syntax.