What is DOS
Computer Fundamental

What is DOS?

 

Disk Operating System (DOS command user interface) – it is a collection of special programs that supervise and control the operation of the personal computer.
Functions of DOS: (a.) interprets and executes commands. (b.) manages the disks, files and directories. (c.) oversees and communicates with peripheral devices.
Parts of DOS:

A) DOS System Files – it consists of three files: two hidden system files and visible system files:

  1. COMMAND.COM – this is the DOS Command Processor and is the interface between the user and DOS. As a command processor, it handles the execution of commands. It is loaded to the computer`s memory upon booting. It is responsible for displaying the system prompt. It accesses the key from the keyboard and interprets the commands so that they can be acted upon by DOS.
  • BIO.COM (Basic Input/Output) – handles the input and output between the computer and its peripheral devices like the disk or the printer. It is hard-coded in the ROM of the microcomputer and cannot be touched by the computer user. It provides basic functions for the computer to communicate with the user. It provides the background and foreground colors on a color monitor.
  • DOS.COM – forms the heart of DOS. It receives all requests for DOS service functions and converts them into a form understandable by BIO.COM. It reads and writes data on a storage device. It refers back to the BIOS(Basic Input Output System) to handle input and output(I/O) functions. Application programs could not run without DOS.

B) Internal(reside in memory ) DOS Commands –

these are the programs that reside(inside) in the memory of the computer. These commands are referred to (known as) to as `resident commands`. When you type in internal commands (like cls, del,mkdir)s, MS-DOS performs them immediately because they were loaded into the computer’s memory when the system was booted up.

Examples of Internal DOS Commands:

CHDIRchanges from one directory or sub-directory to another(old to new or new to old).
CLSclears the screen.
DATEdisplays or sets the date.
DELdeletes files from a storage location.
DIRLists(show the details) a file from a directory or sub-directory.
MKDIRcreates a new sub-directory.
PATHDisplays(show) or sets a search path for executable files.
TIMEdisplays or sets the time.
VERdisplays the MS-DOS version number.
RENAME use to change file names (old to the new name) within the same disk directory.
Internal DOS Commands

C) External DOS Commands –

programs that are contained on disks as program files. These files have the extension. COM(commercial) or. EXE(executable file) as part of their name. It is referred to as a `transient command`. These commands are not automatically loaded into the computer’s memory when you boot up. You must load them when you want to use one of these commands.

Examples Of External DOS Commands:

CHKDSKscans the disk and checks for errors.
DISKCOPYcopies the full contents of a disk to another disk.
FORMATprepares the disk or diskette to accept MS-DOS files.
EDITexecutes the MS-DOS file editor.
MEMdisplays memory information.
External DOS Commands

D) Utilities –

a utility is an operating system program that performs a specialized function. These programs are invaluable in the operation of your microcomputer. Utilizing these programs can extend the life of your computer by optimizing its full capabilities. In fact, weekly use of utilities has proven to prevent system downtime. It is also valuable in PC diagnosing and problem solving. Some examples are the following:

DEFRAG.EXE DEFRAG consolidates free space on a disk drive by placing files together in the same location.
CHKDSK.EXE checks the structural validity of the selected disk drive. It searches for errors such as lost clutters or cross-linked files and displays those errors to the user.
MEM.EXE display a brief table of memory usage.
SCANDISK.EXE it is an extended menu-driven version of CHKDSK. It is a more reliable detection of a wider range of disk problems.

Booting –

when a microcomputer is powered on, it goes through a systematic process of loading programs into memory. It prepares itself for processing by organizing and loading essential programs and resources necessary for normal processing.
Two Ways To Boot The Microcomputer:

  1. Cold Boot – takes place when the computer is either powered on or when the power is shut off and turned back on.
  2. Warm Boot – takes place whenever the PC is rebooted by hitting the CTRL-ALT-DEL keys simultaneously. In a warm boot, the machine is already warmed up from a cold boot. Warm booting a PC may be necessary to clear the memory and reload programs.


When the machine is booted, the BIOS(Basic Input Output System) is started first. once it is up and running it starts DOS. There are two `start-up` files used by DOS to execute and configure the operating system for operation. They are the AUTOEXEC.BAT and CONFIG.SYS files.

AUTOEXEC.BAT – is a batch file. This means that it is a collection of inputs or commands that DOS will execute consecutively. It is automatically executed by the CPU during boot up. This file can be edited whenever the user wants to run a specific application under DOS each time the computer is booted. When you start the computer, DOS searches the root directory of the boot drive for the AUTOEXEC.BAT and immediately processes it.

CONFIG.SYS – it is a system configuration file containing certain commands that DOS checks at system start-up. Each time you start your microcomputer, it searches for this file in the root directory. You can use this file to configure your system with a minimum of effort. For example, you can add device drivers to your system by including special commands in your file.

HOW TO OPEN COMMAND PROMPT:

Start-write cmd in search box-click on cmd

Open Command Prompt
DOS Commands

Recommended Posts

C++ Programming

Visibility modes in C++

In C++, visibility modes refer to the accessibility of class members (such as variables and functions) from different parts of a program. C++ provides three visibility modes: public, private, and protected. These modes control the access levels of class members concerning the outside world and derived classes. Public: Members declared as public are accessible from […]

Rekha Setia 
C++ Programming

Inheritance in C++

In C++, inheritance is a fundamental concept of object-oriented programming (OOP) that allows you to create a new class based on an existing class, known as the base or parent class. The new class is called the derived or child class. Inheritance facilitates code reuse and supports the creation of a hierarchy of classes. There […]

Rekha Setia 
C++ Programming

C++ Classes and Objects

In C++, classes and objects are fundamental concepts that support object-oriented programming (OOP). Here’s a brief overview of classes and objects in C++: Classes: In C++, a class is a user-defined data type that allows you to encapsulate data members and member functions into a single unit. Classes are the building blocks of object-oriented programming […]

Rekha Setia 

2 thoughts on “What is DOS?

  1. I used to be recommended this website via my cousin. I am not sure whether or not this submit is written by him as nobody else know such distinctive about my difficulty. You’re amazing! Thanks!

  2. Your place is valueble for me. Thanks!…

Leave A Comment