SlideShare a Scribd company logo
1 of 33
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
• In college, Paterson wrote a multi-
tasking operating system for the Z80
microprocessor as a term project.
Therefore, Paterson had confidence in
writing an OS for 8086 computer.
Patterson spent half of his time working
on Qdos from April to July, 1980. QDOS
was completed in July, 1980.
History
• MS-DOS 1.0 was released in August 1981, and
was updated until April 1994 when it was
replaced by Windows 95
• All versions of windows still contain some
type of DOS, in windows 95 and 98 you can go
to run and type command to get to DOS
prompt, in NT, 2000, and XP you can type CMD
and get DOS.
DEVELOPMENT HISTORY
Date Version Release
August 12,
1981
DOS 1.0 – IBM’s release
Used Patterson’s 86-DOS
May 1982 DOS 1.1
IBM’s release of DOS to handle new
double-sided drives
August 1982 DOS 1.25 Microsoft’s own release of
DOS 1.1
March 1983 DOS 2.0 for IBM’s PC-XT
Support 10MB hard drives, 3-internal
expansion slots, hierarchical tree
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 1987 DOS 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
Date Version 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 1994 DOS 6.22 Microsoft’s release
Introduced “DriveSpace” disk
compression
April 1995 DOS 7.0 IBM’s release
August 1995 DOS 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:doscommands> 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:DOSFOLDER
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

More Related Content

Similar to basic ms dos commands and theory in OSystem

PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Toolszatax
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Tushar B Kute
 
Disk operating system.pptx
Disk operating system.pptxDisk operating system.pptx
Disk operating system.pptxHarshitMangal6
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfshubhangisonawane6
 
Ms dos
Ms dosMs dos
Ms dosNICT
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system conceptRai University
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptxemsResulzade1
 
Computer unit 2
Computer unit   2Computer unit   2
Computer unit 2Atul Yadav
 

Similar to basic ms dos commands and theory in OSystem (20)

33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos33269198 all-commands-in-ms-dos
33269198 all-commands-in-ms-dos
 
PC Software - Computer Application - Office Automation Tools
PC Software  -  Computer Application - Office Automation ToolsPC Software  -  Computer Application - Office Automation Tools
PC Software - Computer Application - Office Automation Tools
 
Unix Administration 4
Unix Administration 4Unix Administration 4
Unix Administration 4
 
Hos
HosHos
Hos
 
Hos
HosHos
Hos
 
Introduction to ms dos
Introduction to ms dosIntroduction to ms dos
Introduction to ms dos
 
Operating system and services
Operating system and servicesOperating system and services
Operating system and services
 
Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.Module 3 Using Linux Softwares.
Module 3 Using Linux Softwares.
 
Disk operating system.pptx
Disk operating system.pptxDisk operating system.pptx
Disk operating system.pptx
 
Dos commands
Dos commandsDos commands
Dos commands
 
Linux
LinuxLinux
Linux
 
DOS commands
DOS commandsDOS commands
DOS commands
 
ICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdfICPS operating system and services Unit 3 Notes .pdf
ICPS operating system and services Unit 3 Notes .pdf
 
ch6.ppsx
ch6.ppsxch6.ppsx
ch6.ppsx
 
Ms dos
Ms dosMs dos
Ms dos
 
Disk Operating System.pptx
Disk Operating System.pptxDisk Operating System.pptx
Disk Operating System.pptx
 
Bba ii cam u i-operating system concept
Bba ii cam  u i-operating system conceptBba ii cam  u i-operating system concept
Bba ii cam u i-operating system concept
 
Msdos crash course
Msdos crash courseMsdos crash course
Msdos crash course
 
The MS-DOS File System.pptx
The MS-DOS File System.pptxThe MS-DOS File System.pptx
The MS-DOS File System.pptx
 
Computer unit 2
Computer unit   2Computer unit   2
Computer unit 2
 

Recently uploaded

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdfQucHHunhnh
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsTechSoup
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3JemimahLaneBuaron
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhikauryashika82
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingTeacherCyreneCayanan
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Sapana Sha
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactPECB
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfAyushMahapatra5
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAssociation for Project Management
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpinRaunakKeshri1
 

Recently uploaded (20)

Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
1029-Danh muc Sach Giao Khoa khoi 6.pdf
1029-Danh muc Sach Giao Khoa khoi  6.pdf1029-Danh muc Sach Giao Khoa khoi  6.pdf
1029-Danh muc Sach Giao Khoa khoi 6.pdf
 
Introduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The BasicsIntroduction to Nonprofit Accounting: The Basics
Introduction to Nonprofit Accounting: The Basics
 
Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3Q4-W6-Restating Informational Text Grade 3
Q4-W6-Restating Informational Text Grade 3
 
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in DelhiRussian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
Russian Escort Service in Delhi 11k Hotel Foreigner Russian Call Girls in Delhi
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 
1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
fourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writingfourth grading exam for kindergarten in writing
fourth grading exam for kindergarten in writing
 
microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111Call Girls in Dwarka Mor Delhi Contact Us 9654467111
Call Girls in Dwarka Mor Delhi Contact Us 9654467111
 
Beyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global ImpactBeyond the EU: DORA and NIS 2 Directive's Global Impact
Beyond the EU: DORA and NIS 2 Directive's Global Impact
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
Class 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdfClass 11th Physics NEET formula sheet pdf
Class 11th Physics NEET formula sheet pdf
 
APM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across SectorsAPM Welcome, APM North West Network Conference, Synergies Across Sectors
APM Welcome, APM North West Network Conference, Synergies Across Sectors
 
Student login on Anyboli platform.helpin
Student login on Anyboli platform.helpinStudent login on Anyboli platform.helpin
Student login on Anyboli platform.helpin
 

basic ms dos commands and theory in OSystem

  • 2. • 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
  • 3. • In college, Paterson wrote a multi- tasking operating system for the Z80 microprocessor as a term project. Therefore, Paterson had confidence in writing an OS for 8086 computer. Patterson spent half of his time working on Qdos from April to July, 1980. QDOS was completed in July, 1980.
  • 4. History • MS-DOS 1.0 was released in August 1981, and was updated until April 1994 when it was replaced by Windows 95 • All versions of windows still contain some type of DOS, in windows 95 and 98 you can go to run and type command to get to DOS prompt, in NT, 2000, and XP you can type CMD and get DOS.
  • 5. DEVELOPMENT HISTORY Date Version Release August 12, 1981 DOS 1.0 – IBM’s release Used Patterson’s 86-DOS May 1982 DOS 1.1 IBM’s release of DOS to handle new double-sided drives August 1982 DOS 1.25 Microsoft’s own release of DOS 1.1 March 1983 DOS 2.0 for IBM’s PC-XT Support 10MB hard drives, 3-internal expansion slots, hierarchical tree structure
  • 6. 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
  • 7. DEVELOPMENTS cont. Date Version Release January 1986 DOS 3.2 Introduced and provided support of 3- 1/2 floppies and 720K disk April 1987 DOS 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
  • 8. Date Version 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.
  • 9. 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 1994 DOS 6.22 Microsoft’s release Introduced “DriveSpace” disk compression April 1995 DOS 7.0 IBM’s release August 1995 DOS 7.0 Microsoft's release
  • 10. 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
  • 11. MS-DOS Prompt • The prompt in MS-DOS displays your current directory • C:doscommands> means you are in that directory, and any command you use will apply to the current directory unless you specify a different one.
  • 12. 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.
  • 13. 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:/
  • 14. 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
  • 15. Basic Commands CD.. • CD.. - brings you to the previous directory. • Example: if you are in C:DOSFOLDER CD.. Will bring you to C:DOS
  • 16. 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:
  • 17. 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.
  • 18. Basic Commands DIR • DIR will display the contents of the folder
  • 19. Basic Command DEL • DEL will delete a file or an empty directory from the drive
  • 20. Basic Command EDIT • EDIT will open a text file
  • 21. 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
  • 22. Basic Commands REN • REN will rename the file • Example : REN file.txt myfile.txt will rename the file.txt to myfile.txt
  • 23. 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
  • 24. 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.
  • 25. Basic Command TREE • TREE shows you all of the folders and files in current directory like explorer in windows.
  • 26. Basic Commands CLS • CLS Will clear the contents of the screen
  • 27. 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.
  • 28. The Help Switch /? • You can use the help switch with any command. It will give you the command structure, and the availible switches.
  • 29. 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
  • 30. • 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.
  • 31. 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.
  • 32. 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.