Table of Contents
An Operating System (OS) is a fundamental software component that manages a computer's physical hardware. It serves as a critical intermediary between the human user and the complex hardware components of the machine.
Purpose of an Operating System
The primary objective of an operating system is to establish an environment where a user can execute various programs in a manner that is both convenient and efficient. To achieve this, the hardware must include mechanisms that ensure correct operation and prevent user-level programs from interfering with the overall stability of the system.
Three Primary Functions:
- Convenience: It simplifies the user experience, making the computer more accessible.
- Efficiency: It manages system resources (like CPU time and memory) to ensure they are used effectively.
- Ability to Evolve: A well-designed OS is modular, allowing for the development, testing, and implementation of new functions without disrupting existing services.
Understanding the Disk Operating System (DOS)
A Disk Operating System (abbreviated DOS) is an operating system specifically designed to reside on and utilize disk storage devices. These devices traditionally include:
- Floppy disks.
- Hard disk drives.
- Optical discs.
Operational Requirements and Context
A DOS must inherently provide a file system. This system is responsible for organizing, reading, and writing data files onto the storage media. While the term "DOS" is strictly used for older generations of operating systems and does not accurately describe modern versions of Microsoft Windows, it remains a foundational concept in computing history.
How DOS Works?
The operation of DOS follows a specific cycle of communication between the user and the hardware:
- Command Input: Users enter commands via the keyboard or mouse.
- Translation: DOS translates these human-readable inputs into electronic signals that the computer's circuitry can interpret.
- Processing: The Central Processing Unit (CPU) receives these signals, processes them, and calculates the result.
- Feedback: The system returns the final result to be displayed on the monitor.
- Hardware Driving: The "System Unit," which contains the brain of the PC (the CPU and hard disk), is driven by DOS, which in turn follows the specific directions provided by the user's typed commands.
Classification of DOS Commands
DOS commands are split into two categories: Internal and External. The primary difference lies in how they are stored and loaded into the computer's memory.
1. Internal Commands
Internal commands are considered "resident DOS" because they are loaded into the computer's internal memory (RAM) the moment the system is powered on. DOS does not need to load these from a disk before execution; they are always ready. They do not require any additional files to run. To execute them, the user simply types the command at the prompt.
Detailed Internal Command Reference
These commands are always accessible to the user without needing extra files.
|
Command |
Function |
|
PROMPT |
Changes the MS-DOS command prompt. |
|
CLS |
Clears the screen. |
|
DATE |
Displays the current system date or allows the user to set a new one. |
|
TIME |
Displays the current system time or allows the user to set a new one. |
|
DIR |
Displays a list of files and subdirectories in a directory. |
|
REN |
Renames an existing file or a group of files. |
|
DEL |
Deletes one or more files. |
|
MD |
Creates (Makes) a new directory or subdirectory. |
|
CD |
Displays the name of or changes the current directory. |
|
RD / RMDIR |
Removes (Deletes) a directory. |
|
COPY |
Copies one or more files to another location. |
|
TYPE |
Displays the contents of a text file. |
|
VOL |
Displays a disk volume label and serial number. |
|
VER |
Displays the MS-DOS version. |
|
PATH |
Displays or sets a search path for executable files. |
Pro-Tip: Subdirectory Shortcuts
Every subdirectory contains a "dot-dot" (..) file. This is a linkage to the parent directory. The root directory is the only one without a dot-dot file because it has no parent. You can use CD .. as a shortcut to move up one level without needing to type the parent directory's name.
2. External Commands
External commands are not part of the resident DOS and are stored individually on the disk. Each command is saved in a specific "command file". On MS-DOS systems, these files carry a .COM or .EXE extension. Before execution, DOS must locate the file (usually in a specific DOS directory) and load it into the internal memory.
These commands are version-specific. Using an external command file from a different DOS version than the one installed can result in an "Incorrect version" error message.
Detailed External Command Reference
These commands require specific files (like .EXE or .COM) to be present on the disk to function.
|
Command |
Function |
|
XCOPY |
Copies files (except hidden and system files) and directory trees. |
|
DELTREE |
Deletes a directory and all the files and subdirectories in it. |
|
FORMAT |
Formats a disk for use with MS-DOS. |
|
CHKDSK |
Checks a disk and displays a status report. |
|
DISKCOPY |
Copies the contents of one floppy disk to another. |
|
DISKCOMP |
Compares the contents of two floppy disks. |
|
SCANDISK |
Checks a drive for errors and repairs any problems it finds. |
|
TREE |
Graphically displays the directory structure of a drive or path. |
|
APPEND |
Allows programs to open data files in specified directories as if they were in the current directory. |
|
ATTRIB |
Displays or changes file attributes. |
|
LABEL |
Creates, changes, or deletes the volume label of a disk. |
|
EDIT |
Starts MS-DOS Editor, which creates and changes ASCII files. |
|
DOSKEY |
Edits command lines, recalls MS-DOS commands, and creates macros. |