SlideShare a Scribd company logo
Introduction to DOS CTIN January 13, 2000 Sandy Bacik, Senior Security Consultant Breakwater Security Associates
Agenda What is DOS Filenames Files DOS Overview Sample Batch File
What is an operating system? It manages an environment that contains working programs and grunt workers supplying subtasks, when requested to perform an action.
DOS D  isk O  perating S  ystem An operating system that deals with hard disks.  DOS worries about how files are stored and how to access them.
Pieces of DOS Kernel: Command Processor: IO.SYS, MSDOS.SYS, DBLSPACE.BIN, DRVSPACE.BIN COMMAND.COM
Key files to DOS IO.SYS MSDOS.SYS COMMAND.COM
FAT File Allocation Table This tracks what is using what portions of the hard disk. There are actually 2 copies of FAT for each logical drive.
File Names Short Filename (SFN) 8.3 Standard - (8 characters).(3 characters) Characters were upper case A-Z, numbers 0-9 and any of the following symbols($ % ‘ _ @ ~ ` ! ( ) { } ^ # &)
File Names Long Filename (LFN) Update 254 characters, including the path name Includes the above characters plus + , ; = [ ] and lower case a-z
Long Filenames to Short Filenames (1) No 2 files can have the same LFN and/or SFN If the LFN fits the SFN standard, the LFN and the SFN are the same.
Long Filenames to Short Filenames (2) If the LFN does not fit the SFN standard, then All spaces are stripped from the name Upper cases what remains Uses the first 8 characters of the name and first 3 characters following the first dot (.) If the SFN exists, then the last 2 or more characters are lopped off, substituting a tilde (~) and a sequential 1, 2 or more digit number
Long / Short Filename (1)
Long / Short Filename (2)
Long / Short Filename (3)
File Types ASCII or plain text files Binary files, non-human readable Word processing files Databases and spreadsheets Program files Sound or image files
Deleting a File - What Happens? The data is not erased from your disk. 1.  0 is placed in all the cluster locations in the FAT that belong to that file. 2.  It changes the very first entry in the directory entry from ASCII to the special value E5h, digital value 229, and extended ASCII value lower case sigma.
Wildcards ? (question mark) Any character can go in that location * (asterisk or star) Any group of characters can go in that location
CONFIG.SYS Executed by MSDOS.SYS upon system boot It lets the system know how many files can be opened at one time It contains instructions to load device drivers
AUTOEXEC.BAT Executed by COMMAND.COM upon system boot A series of DOS batch file commands created by the user to be executed each time the PC is turned on or rebooted
Files A place to store data Directories A place to store files
6 File Attributes Read-only Hidden System Volume Label Subdirectory Archive
Pathname A sequence of directory names followed by a file name. Path Similar to a pathname, but does not contain the file name.
Parent Directory Any directory that contains subdirectories
Internal Commands Commands which reside in memory Part of COMMAND.COM Simplest and most commonly used commands For example: DEL MKDIR PATH REM DIR SET TIME COPY CHDIR VOL IF GOTO
External Commands Commands ending with .COM, .EXE, or .BAT Precedence order: .COM, .EXE, .BAT Do not need the extension to execute For example: APPEND FDISK FIND FORMAT ATTRIB SORT LABEL PRINT XCOPY
Redirection >> Append > Write, starting at the beginning | Pipe to something, write < Input to
Getting Command Help HELP <command> <command> /?
Sample Commands - Directories MKDIR CHDIR or CD RMDIR
Top 10 DOS Commands CD DIR MD RD FORMAT COPY DEL UNDELETE TYPE CTRL-BRK
DOS File Commands ATTRIB COPY DEL DIR FC MOVE RENAME REPLACE TYPE UNDELETE VERIFY
DOS Floppy Disk Commands CHKDSK DISKCOMP DISKCOPY FORMAT LABEL SYS UNDELETE UNFORMAT VOL
DOS Hard Disk Commands (1) APPEND CD DBLSPACE DBLSPACE.SYS DEFRAG DELTREE FDISK MD MOVE
DOS Hard Disk Commands (2) MSBACKUP PATH PROMPT RD REPLACE RESTORE SHARE SUBST TREE
6 Points of a Batch File Pure ASCII text file Must end with .BAT To stop use CTRL-C or CTRL-BRK Simple list of command Virtually  all  DOS commands can be used DO NOT RELY on the DOS manual
DOS Batch File Commands CALL CHOICE ECHO ERRORLEVEL FOR..IN..DO GOTO IF/IF NOT PAUSE REM %0-%9, %var% SHIFT
Questions?
Thank you Contact: Sandy Bacik email: san04@att.net phone: 253-661-9327

More Related Content

PDF
Introduction to UNIX Command-Lines with examples
Noé Fernández-Pozo
 
DOCX
Internal commands of dos
Nargiskhan786
 
PPTX
Directory Commands - R.D.Sivakumar
Sivakumar R D .
 
PDF
Dos commands
ravindravalmiki26
 
PDF
Unix command line concepts
Artem Nagornyi
 
PPT
Introduction to ms dos
Indika Rathninda
 
PPTX
Unit II - MS DOS Commands
Hepsijeba
 
PPT
Dos commands
suraj pandey
 
Introduction to UNIX Command-Lines with examples
Noé Fernández-Pozo
 
Internal commands of dos
Nargiskhan786
 
Directory Commands - R.D.Sivakumar
Sivakumar R D .
 
Dos commands
ravindravalmiki26
 
Unix command line concepts
Artem Nagornyi
 
Introduction to ms dos
Indika Rathninda
 
Unit II - MS DOS Commands
Hepsijeba
 
Dos commands
suraj pandey
 

What's hot (20)

PPTX
MS Dos command
Hardik Patel
 
PPTX
Ms DOS
Gunjan Singh
 
PPTX
Basic dos-commands
parag dhok
 
PPTX
Know the UNIX Commands
Brahma Killampalli
 
PPT
Dos commad. by ammar nawab ppt
Ammar_n
 
PPT
Internal commands.29to30
myrajendra
 
PPTX
DOS - Disk Operating System
Meqdad Darweesh
 
PDF
SGN Introduction to UNIX Command-line 2015 part 1
solgenomics
 
PPSX
Ms dos tutorial
Ehtisham Ali
 
PPS
QSpiders - Unix Operating Systems and Commands
Qspiders - Software Testing Training Institute
 
PPTX
DOS commands
preetikapri1
 
PPTX
Unix OS & Commands
Mohit Belwal
 
PPT
Unix(introduction)
meashi
 
PPTX
File systems and inodes
Dr. Girish GS
 
PPTX
Basic commands of linux
shravan saini
 
PPT
Basic Linux day 2
Saikumar Daram
 
PPTX
Terminal Commands (Linux - ubuntu) (part-1)
raj upadhyay
 
DOCX
Comands of dos
Muhammad Zohaib
 
PPT
Bba ii cam u i-operating system concept
Rai University
 
PPT
Linux
Hema Prasanth
 
MS Dos command
Hardik Patel
 
Ms DOS
Gunjan Singh
 
Basic dos-commands
parag dhok
 
Know the UNIX Commands
Brahma Killampalli
 
Dos commad. by ammar nawab ppt
Ammar_n
 
Internal commands.29to30
myrajendra
 
DOS - Disk Operating System
Meqdad Darweesh
 
SGN Introduction to UNIX Command-line 2015 part 1
solgenomics
 
Ms dos tutorial
Ehtisham Ali
 
QSpiders - Unix Operating Systems and Commands
Qspiders - Software Testing Training Institute
 
DOS commands
preetikapri1
 
Unix OS & Commands
Mohit Belwal
 
Unix(introduction)
meashi
 
File systems and inodes
Dr. Girish GS
 
Basic commands of linux
shravan saini
 
Basic Linux day 2
Saikumar Daram
 
Terminal Commands (Linux - ubuntu) (part-1)
raj upadhyay
 
Comands of dos
Muhammad Zohaib
 
Bba ii cam u i-operating system concept
Rai University
 
Ad

Similar to 011300 Intro To Dos (20)

DOC
PC Software - Computer Application - Office Automation Tools
zatax
 
PPTX
Disk Operating System.pptx
DrIrfanulHaqAkhoon
 
PPT
Dos commands new
suraj pandey
 
PDF
What is DOS (Disk Operating System).pdf
Growthy.web
 
PPTX
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
nidhipaliwal2006
 
PDF
CMD Command prompts
Ahmed Hesham
 
PPT
Ms dos
NICT
 
PPT
Lect basic computer
susir
 
PPT
disk-operating-system.ppt c sdsommands cd
TanyaMathur21
 
DOCX
Comp practical
Kritika Sharma
 
PDF
Command
somoloye
 
PPTX
OSOA Unit-1 Introduction to DOS and Windows.pptx
KTheKing1
 
PPTX
10 MS DOS and Its Commands.pptx .related to
perweeng31
 
TXT
168054408 cc1
homeworkping8
 
DOC
Dos lesson 11
Suneel Dogra
 
PDF
ICPS operating system and services Unit 3 Notes .pdf
shubhangisonawane6
 
PPTX
File and fat
Vimal Madhale
 
PPTX
Windows File Pseudonyms
BaronZor
 
PPTX
File Commands - R.D.Sivakumar
Sivakumar R D .
 
PC Software - Computer Application - Office Automation Tools
zatax
 
Disk Operating System.pptx
DrIrfanulHaqAkhoon
 
Dos commands new
suraj pandey
 
What is DOS (Disk Operating System).pdf
Growthy.web
 
DOS PRESENTATION FROM INFORMATION AND TECNOLOGY PACKAGES SPECIALLY FOR COMPUT...
nidhipaliwal2006
 
CMD Command prompts
Ahmed Hesham
 
Ms dos
NICT
 
Lect basic computer
susir
 
disk-operating-system.ppt c sdsommands cd
TanyaMathur21
 
Comp practical
Kritika Sharma
 
Command
somoloye
 
OSOA Unit-1 Introduction to DOS and Windows.pptx
KTheKing1
 
10 MS DOS and Its Commands.pptx .related to
perweeng31
 
168054408 cc1
homeworkping8
 
Dos lesson 11
Suneel Dogra
 
ICPS operating system and services Unit 3 Notes .pdf
shubhangisonawane6
 
File and fat
Vimal Madhale
 
Windows File Pseudonyms
BaronZor
 
File Commands - R.D.Sivakumar
Sivakumar R D .
 
Ad

More from CTIN (20)

PPTX
Mounting virtual hard drives
CTIN
 
PPTX
Open Source Forensics
CTIN
 
PDF
Encase V7 Presented by Guidance Software august 2011
CTIN
 
PDF
Windows 7 forensics -overview-r3
CTIN
 
PDF
Windows 7 forensics event logs-dtl-r3
CTIN
 
PPTX
Msra 2011 windows7 forensics-troyla
CTIN
 
PPTX
Windows 7 forensics thumbnail-dtl-r4
CTIN
 
PPTX
Windows 7 forensics jump lists-rv3-public
CTIN
 
PPTX
Time Stamp Analysis of Windows Systems
CTIN
 
PPT
Vista Forensics
CTIN
 
PPT
Mac Forensics
CTIN
 
PPT
Nra
CTIN
 
PPT
Live Forensics
CTIN
 
PPT
Translating Geek To Attorneys It Security
CTIN
 
PPT
Edrm
CTIN
 
PPT
Computer Searchs, Electronic Communication, Computer Trespass
CTIN
 
PPT
CyberCrime
CTIN
 
PPT
Search Warrants
CTIN
 
PPT
Part6 Private Sector Concerns
CTIN
 
PDF
Sadfe2007
CTIN
 
Mounting virtual hard drives
CTIN
 
Open Source Forensics
CTIN
 
Encase V7 Presented by Guidance Software august 2011
CTIN
 
Windows 7 forensics -overview-r3
CTIN
 
Windows 7 forensics event logs-dtl-r3
CTIN
 
Msra 2011 windows7 forensics-troyla
CTIN
 
Windows 7 forensics thumbnail-dtl-r4
CTIN
 
Windows 7 forensics jump lists-rv3-public
CTIN
 
Time Stamp Analysis of Windows Systems
CTIN
 
Vista Forensics
CTIN
 
Mac Forensics
CTIN
 
Nra
CTIN
 
Live Forensics
CTIN
 
Translating Geek To Attorneys It Security
CTIN
 
Edrm
CTIN
 
Computer Searchs, Electronic Communication, Computer Trespass
CTIN
 
CyberCrime
CTIN
 
Search Warrants
CTIN
 
Part6 Private Sector Concerns
CTIN
 
Sadfe2007
CTIN
 

Recently uploaded (20)

PPTX
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
PDF
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
PPTX
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
PPTX
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
PPTX
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
PDF
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
PDF
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
PDF
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
PDF
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
PDF
REPORT: Heating appliances market in Poland 2024
SPIUG
 
PDF
Software Development Methodologies in 2025
KodekX
 
PDF
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
PDF
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
PDF
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
PDF
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
PPTX
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
PDF
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
PDF
Brief History of Internet - Early Days of Internet
sutharharshit158
 
PDF
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
PPT
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 
The-Ethical-Hackers-Imperative-Safeguarding-the-Digital-Frontier.pptx
sujalchauhan1305
 
Oracle AI Vector Search- Getting Started and what's new in 2025- AIOUG Yatra ...
Sandesh Rao
 
Applied-Statistics-Mastering-Data-Driven-Decisions.pptx
parmaryashparmaryash
 
Dev Dives: Automate, test, and deploy in one place—with Unified Developer Exp...
AndreeaTom
 
cloud computing vai.pptx for the project
vaibhavdobariyal79
 
Security features in Dell, HP, and Lenovo PC systems: A research-based compar...
Principled Technologies
 
Cloud-Migration-Best-Practices-A-Practical-Guide-to-AWS-Azure-and-Google-Clou...
Artjoker Software Development Company
 
CIFDAQ's Market Wrap : Bears Back in Control?
CIFDAQ
 
SparkLabs Primer on Artificial Intelligence 2025
SparkLabs Group
 
REPORT: Heating appliances market in Poland 2024
SPIUG
 
Software Development Methodologies in 2025
KodekX
 
MASTERDECK GRAPHSUMMIT SYDNEY (Public).pdf
Neo4j
 
Google I/O Extended 2025 Baku - all ppts
HusseinMalikMammadli
 
Accelerating Oracle Database 23ai Troubleshooting with Oracle AHF Fleet Insig...
Sandesh Rao
 
Using Anchore and DefectDojo to Stand Up Your DevSecOps Function
Anchore
 
What-is-the-World-Wide-Web -- Introduction
tonifi9488
 
Data_Analytics_vs_Data_Science_vs_BI_by_CA_Suvidha_Chaplot.pdf
CA Suvidha Chaplot
 
Brief History of Internet - Early Days of Internet
sutharharshit158
 
Event Presentation Google Cloud Next Extended 2025
minhtrietgect
 
Coupa-Kickoff-Meeting-Template presentai
annapureddyn
 

011300 Intro To Dos

  • 1. Introduction to DOS CTIN January 13, 2000 Sandy Bacik, Senior Security Consultant Breakwater Security Associates
  • 2. Agenda What is DOS Filenames Files DOS Overview Sample Batch File
  • 3. What is an operating system? It manages an environment that contains working programs and grunt workers supplying subtasks, when requested to perform an action.
  • 4. DOS D isk O perating S ystem An operating system that deals with hard disks. DOS worries about how files are stored and how to access them.
  • 5. Pieces of DOS Kernel: Command Processor: IO.SYS, MSDOS.SYS, DBLSPACE.BIN, DRVSPACE.BIN COMMAND.COM
  • 6. Key files to DOS IO.SYS MSDOS.SYS COMMAND.COM
  • 7. FAT File Allocation Table This tracks what is using what portions of the hard disk. There are actually 2 copies of FAT for each logical drive.
  • 8. File Names Short Filename (SFN) 8.3 Standard - (8 characters).(3 characters) Characters were upper case A-Z, numbers 0-9 and any of the following symbols($ % ‘ _ @ ~ ` ! ( ) { } ^ # &)
  • 9. File Names Long Filename (LFN) Update 254 characters, including the path name Includes the above characters plus + , ; = [ ] and lower case a-z
  • 10. Long Filenames to Short Filenames (1) No 2 files can have the same LFN and/or SFN If the LFN fits the SFN standard, the LFN and the SFN are the same.
  • 11. Long Filenames to Short Filenames (2) If the LFN does not fit the SFN standard, then All spaces are stripped from the name Upper cases what remains Uses the first 8 characters of the name and first 3 characters following the first dot (.) If the SFN exists, then the last 2 or more characters are lopped off, substituting a tilde (~) and a sequential 1, 2 or more digit number
  • 12. Long / Short Filename (1)
  • 13. Long / Short Filename (2)
  • 14. Long / Short Filename (3)
  • 15. File Types ASCII or plain text files Binary files, non-human readable Word processing files Databases and spreadsheets Program files Sound or image files
  • 16. Deleting a File - What Happens? The data is not erased from your disk. 1. 0 is placed in all the cluster locations in the FAT that belong to that file. 2. It changes the very first entry in the directory entry from ASCII to the special value E5h, digital value 229, and extended ASCII value lower case sigma.
  • 17. Wildcards ? (question mark) Any character can go in that location * (asterisk or star) Any group of characters can go in that location
  • 18. CONFIG.SYS Executed by MSDOS.SYS upon system boot It lets the system know how many files can be opened at one time It contains instructions to load device drivers
  • 19. AUTOEXEC.BAT Executed by COMMAND.COM upon system boot A series of DOS batch file commands created by the user to be executed each time the PC is turned on or rebooted
  • 20. Files A place to store data Directories A place to store files
  • 21. 6 File Attributes Read-only Hidden System Volume Label Subdirectory Archive
  • 22. Pathname A sequence of directory names followed by a file name. Path Similar to a pathname, but does not contain the file name.
  • 23. Parent Directory Any directory that contains subdirectories
  • 24. Internal Commands Commands which reside in memory Part of COMMAND.COM Simplest and most commonly used commands For example: DEL MKDIR PATH REM DIR SET TIME COPY CHDIR VOL IF GOTO
  • 25. External Commands Commands ending with .COM, .EXE, or .BAT Precedence order: .COM, .EXE, .BAT Do not need the extension to execute For example: APPEND FDISK FIND FORMAT ATTRIB SORT LABEL PRINT XCOPY
  • 26. Redirection >> Append > Write, starting at the beginning | Pipe to something, write < Input to
  • 27. Getting Command Help HELP <command> <command> /?
  • 28. Sample Commands - Directories MKDIR CHDIR or CD RMDIR
  • 29. Top 10 DOS Commands CD DIR MD RD FORMAT COPY DEL UNDELETE TYPE CTRL-BRK
  • 30. DOS File Commands ATTRIB COPY DEL DIR FC MOVE RENAME REPLACE TYPE UNDELETE VERIFY
  • 31. DOS Floppy Disk Commands CHKDSK DISKCOMP DISKCOPY FORMAT LABEL SYS UNDELETE UNFORMAT VOL
  • 32. DOS Hard Disk Commands (1) APPEND CD DBLSPACE DBLSPACE.SYS DEFRAG DELTREE FDISK MD MOVE
  • 33. DOS Hard Disk Commands (2) MSBACKUP PATH PROMPT RD REPLACE RESTORE SHARE SUBST TREE
  • 34. 6 Points of a Batch File Pure ASCII text file Must end with .BAT To stop use CTRL-C or CTRL-BRK Simple list of command Virtually all DOS commands can be used DO NOT RELY on the DOS manual
  • 35. DOS Batch File Commands CALL CHOICE ECHO ERRORLEVEL FOR..IN..DO GOTO IF/IF NOT PAUSE REM %0-%9, %var% SHIFT
  • 37. Thank you Contact: Sandy Bacik email: [email protected] phone: 253-661-9327

Editor's Notes

  • #2: We are going to review the simple things of how the boot process works and what is actually happening with the box, then review how a hard disk drive is setup and how it works, then we will begin to get into how the DOS operating system works. In a later sessions we will be reviewing DOS commands and what we can do with them.