DOS (Disk Operating System)
DOS (Disk Operating System)
What is DOS?
DOS is the acronym for disk operating system. Was designed principally to perform a single task for a single user. In the old days, before the graphical user interface (GUI) came out, there was no mouse, only keyboard was used to give instruction to the pc. The screen was monochrome means everything was black and white (or green and black). There's no colorful menu or icons. Those was the era of MS-DOS .
What is DOS?
Using mouse to give instruction is like driving an auto car; using keyboard is like driving a manual car.
Using keyboard is slower and troublesome because you have to type and remember the commands.
As with any other operating system, its function is to oversee the operation of the system by providing support for executing programs, controlling I/O devices, handling errors, and providing the user interface.
MS-DOS is a disk-based, single-user, single-task operating system. These qualities make it one of the easiest disk operating systems to understand.
DOS FILES
MS-DOS is a "Disk Operating System". That means it is simply: "a System for Operating the Disks. In practice however, just as Windows does more than just print windows, DOS does more than just operate the disks. It enables the user to organize data files, load and execute (run) program files, and control the input and output devices attached to the computer. DOS is an entirely text based system. All it provides for the user is a prompt: "C:>" or "A:>", where the user can type in commands from the keyboard.
The main portions of MS-DOS are the IO.SYS, MSDOS.SYS, and COMMAND.COM files. IO.SYS and MSDOS.SYS are special, hidden system files The IO.SYS file moves the systems basic I/O functions into memory and then implements the MS-DOS default control programs, referred to as device drivers, for various hardware components. These include the following: The boot disk drive The console display and keyboard The systems time-of-day clock
9
COMMAND.COM
The COMMAND.COM command interpreter accepts commands issued through the keyboard, or other input device, and carries them out according to the commands definition When DOS runs an application, COMMAND.COM finds the program, loads it into memory, and then gives it control of the system. When the program is shut down, it passes control back to the command interpreter.
10
Loading of DOS
The system start-up routine of ROM runs a test called Power On Self Test (POST) which check whether peripherals connected to the computer are working or not & RAM memory. The ROM bootstrap loader attempts to read the Boot record and if successful, passes the control on to it. The instructions/programs in the boot record then load the rest of the program. The boot tries to load the DOS into the memory by reading the two hidden files IO.SYS, MSDOS.SYS, If these two are found, they are loaded along with the DOS command interpreter COMMAND.COM.
11
12
Examples:
Filename
Employee
Employee.Exe Employee.Dbf
Separator
Secondary Name
. Exe . Dbf
13
DOS has a way of showing which disk drive is currently active. The floppy disk drives are assigned alphabets A and B, whereas the hard disk drive is assigned the alphabet C.
Ex: If your PC includes a hard disk, besides a FDD (Floppy Disk Drive), the drive names would be A and C. If the prompt is A, then it implies that the first floppy disk drive is active. Where as the DOS prompt would be C, if the hard disk is active. Data as well as instructions reside in a file stored in a disk.
14
DOS enables the user to organize the files in a disk into directories and sub-directories
A directory within another directory is called a subdirectory Of course, there may be sub-directories of subdirectories, sub-sub-directories.
15
16
DIRECTORY COMMAND
The directory, the user is in at any point of time, is called the WORKING/PRESENT/CURRENT directory.
DOS indicates which directory you are in by displaying the directory's name in the command prompt.
For example, the following command prompt indicate that you are in the DOS directory: C:\DOS>. Knowing which directory is current helps you find files, and to move from one directory to another more easily.
Typically, the ROOT DIRECTORY (\) is the initial working directory. The entire specification of directory from root is called a PATH. By itself, the DIR command is applicable to the working/present directory. The names of the sub-directories at adjacent levels are separated by backslash 18 (\), while specifying the path to be followed while traveling to a sub-directory.
file
19