basic ms dos commands and theory in OSystem

368 views 33 slides Jan 30, 2024
Slide 1
Slide 1 of 33
Slide 1
1
Slide 2
2
Slide 3
3
Slide 4
4
Slide 5
5
Slide 6
6
Slide 7
7
Slide 8
8
Slide 9
9
Slide 10
10
Slide 11
11
Slide 12
12
Slide 13
13
Slide 14
14
Slide 15
15
Slide 16
16
Slide 17
17
Slide 18
18
Slide 19
19
Slide 20
20
Slide 21
21
Slide 22
22
Slide 23
23
Slide 24
24
Slide 25
25
Slide 26
26
Slide 27
27
Slide 28
28
Slide 29
29
Slide 30
30
Slide 31
31
Slide 32
32
Slide 33
33

About This Presentation

DOS Operating systems


Slide Content

Basic MS-DOS

•Tim Paterson
-Original author of MS-DOS
-graduated from U of Washington in 1978
-worked as an engineer in Seattle Computer Products
-designed an 8086 CPU card for S-100 Bus in May 1979
-began designing DOS in 1980 after IBM had released
their new 8086 microprocessor (16-bit)
•objectives in design of DOS
-as simple as possible
-make it fast and efficient
-written in 8086 assembly language

•Incollege,Patersonwroteamulti-
taskingoperatingsystemfortheZ80
microprocessorasatermproject.
Therefore,Patersonhadconfidencein
writinganOSfor8086computer.
Pattersonspenthalfofhistimeworking
onQdosfromApriltoJuly,1980.QDOS
wascompletedinJuly,1980.

History
•MS-DOS1.0wasreleasedinAugust1981,and
wasupdateduntilApril1994whenitwas
replacedbyWindows95
•Allversionsofwindowsstillcontainsome
typeofDOS,inwindows95and98youcango
torunandtypecommandtogettoDOS
prompt,inNT,2000,andXPyoucantypeCMD
andgetDOS.

DEVELOPMENT HISTORY
Date Version Release
August 12,
1981
DOS1.0–IBM’srelease
UsedPatterson’s86-DOS
May 1982 DOS1.1
IBM’sreleaseofDOStohandlenew
double-sideddrives
August 1982 DOS1.25Microsoft’sownreleaseof
DOS1.1
March 1983 DOS2.0forIBM’sPC-XT
Support10MBharddrives,3-internal
expansionslots,hierarchicaltree
structure

DEVELOPMENTS cont.
Date Version Release
March 1984 DOS 2.1 IBM’s release
Handled hardware errors called PCjr
1984 DOS 2.11 Microsoft’s release
Added international time, date, currency, and
keyboard support.
1984 DOS 3.0 for IBM’s 16-bit PC-AT system
Support 1.2MB diskettes and hard drives
over 10MB. Designed by Microsoft to
support IBM network hardware
November 1984 DOS 3.1
Provided better aliasing –made DOS treat
directories as drives. Handled network
hardware

DEVELOPMENTS cont.
Date Version Release
January
1986
DOS 3.2
Introduced and provided support of 3-
1/2 floppies and 720K disk
April 1987DOS 3.3 IBM’s release
FDISK can be used to create 32MB or
smaller logical drives from extended
partitions
1987 DOS 3.30 Compaq’s release
Support 1.44MB diskettes and
multiple 32MB disk partitions
November
1987
DOS 3.31 Compaq’s release
Support drives greater than 32MB

DateVersion Release
July
1988
DOS 4.0 IBM’s release
Added a DOS Shell interface and support for disk
partitions greater than 32MB. Provided support for
mouse and graphical interfaces.
Novem
ber
1988
DOS 4.01-Fixed bugs introduced in 4.0
June
1991
MS-DOS 5.0 Microsoft’s release
Allowed DOS to reside in area above 640K memory.
Provided support for loading device drivers. Provided
an improved DOS Shell
March
1993
DOS 6.0 Microsoft’s release
Introduced DoubleSpace disk compression
DEVELOPMENTS cont.

DEVELOPMENTS cont.
Date Version Release
November
1993
DOS 6.2 Microsoft’s release
February
1994
DOS 6.21 Microsoft’s release
Removed DoubleSpace disk
compression
June 1994DOS 6.22 Microsoft’s release
Introduced “DriveSpace” disk
compression
April 1995DOS 7.0 IBM’s release
August 1995DOS 7.0 Microsoft's release

Basic Structure
•Most DOS commands use the same structure
•Command Source Destination /Switch
•The switch will give options to the command
•Example COPY A:\file.txt c:\/v
•/v will verify if the file copied correctly

MS-DOS Prompt
•The prompt in MS-DOS displays your
current directory
•C:\dos\commands> means you are in that
directory, and any command you use will
apply to the current directory unless you
specify a different one.

DOS Naming
•The file name cannot be longer then 8
characters, and extensions cannot be
longer then 3 characters.
•Characters like * + = | \[ ] : ; “ < > , ? /
cannot be used in DOS names.

Wildcard characters
•Wildcard character will replace a single
letter, or word with a wild character
•* will replace any amput of characters, and
? Will replace one.
•Example: copy a:/*.txt c:/ will copy all text
files to drive c:/
•Example 2: copy a:/?????.txt c:/ will copy
any 5 letter text file to c:/

Basic Commands CD
•CD-Change directory
•You use this command when you want to
change the directory.
•Example: CD C:\DOS will bring you to the
dos folder

Basic Commands CD..
•CD.. -brings you to the previous directory.
•Example: if you are in C:\DOS\FOLDER
CD.. Will bring you to C:\DOS

Basic Commands COPY
•COPY will copy the file from one location
to another
•Example COPY A:\file.txt c:\will copy the
file from a:\to c:\

Basic Command XCOPY
•XCOPY can move files, directories, and
whole drives from one location to another,
It is more powerful then the copy
command, and has a lot of switches.

Basic Commands DIR
•DIR will display the contents of the folder

Basic Command DEL
•DEL will delete a file or an empty directory
from the drive

Basic Command EDIT
•EDIT will open a text file

Basic Commands MOVE
•MOVE will move the file or directory from
one location to another
•Example: MOVE a:\file.txt c:\file.txt will
move the file to the c:\drive

Basic Commands REN
•REN will rename the file
•Example : REN file.txt myfile.txt will
rename the file.txt to myfile.txt

Basic Commands MD
•MD is used to make a directory (folder) in
MS-DOS.
•Example: MD myfolder will make a folder
called myfolder in current directory

Basic Commands DELTREE
•DELTREE command will delete the folder
and all of its contents, including other
folders.
•Example: DELTREE C:\myfolder will
delete the folder and all the contents.

Basic Command TREE
•TREE shows you all of the folders and
files in current directory like explorer in
windows.

Basic Commands CLS
•CLS Will clear the contents of the screen

Attributes
•Attributes are the properties of a file such
as hidden, read-only, archive or system
file.
•In MS-DOS you can view/change
attributes with the attrib command.
•Example: attrib +r file.txt will make the file
read-only.

The Help Switch /?
•You can use the help switch with any
command. It will give you the command
structure, and the availible switches.

DOS Internal Structure
•The structure of Disk Operating System for
IBM PC-compatible computers can be
broken down into four distinct
components:
•BIOS Module
•Kernel
•Command Processor
•External Commands

•The BIOS Module
•The BIOS module includes the default resident drivers for:
•Console display and keyboard (CON)
•Line printer (PRN)
•Auxiliary device (AUX)
•Date and time (CLOCK)
•Boot disk device (block device)
•It also accomodates installable drivers (DEVICE=commands in
CONFIG.SYS), such as:
•MOUSE.SYS
•ANSI.SYS
•386EMM.SYS
•CLOCK.SYS, etc.

The DOS Kernel
•The DOS Kernel performs the following functions:
•File and record management
•Memory management
•Character device input/output
•Spawning other programs
•Access to real-time clock
•The DOS kernel components are contained in the
MSDOS.SYS (or IBMDOS.COM) system file. Programs
communicate with the kernel via software interrupts.

The Command Processor
•The command processor is also known as the
shell, or the command interpreter.
•The command processor is responsible for
parsing and carrying out user commands,
including the loading and execution of other
programs from disk
•The command processor also includes the
code for many of the most commonly-used
DOS commands, known as the internal
commands.

•Thank You
Tags