DOS Operating System - PowerPoint PPT Presentation

1 / 30
About This Presentation
Title:

DOS Operating System

Description:

Select 'Command Prompt' from Start | All Programs | Accessories menu. Command Window ... Each storage device has root directory. C: -- hard drive. A: -- floppy drive ... – PowerPoint PPT presentation

Number of Views:4000
Avg rating:3.0/5.0
Slides: 31
Provided by: jomae
Category:
Tags: dos | operating | system

less

Transcript and Presenter's Notes

Title: DOS Operating System


1
DOS Operating System
  • Davis Rajkumar (6th), Chapter 11

2
Overview
  • DOS and its uses
  • DOS Characteristics
  • File system
  • DOS commands
  • Command window
  • Batch files
  • Returning to Windows

3
MS-DOS
  • Disk Operating System (DOS)
  • MS-DOS Microsoft DOS
  • PC DOS 2000 IBM DOS, latest version
  • http//www-306.ibm.com/software/os/dos/
  • Once was most popular operating system for
    micro-computers
  • Text covers MS-DOS because commands still used in
    Command Window

4
Uses of DOS
  • Understanding heritage of Windows limitation
  • Troubleshooting
  • Scripting startup activities or launch of console
    programs, such as Java programs

5
DOS Characteristics
  • Single user
  • Single process no multitasking
  • Command line
  • Hierarchical file system
  • Limited file protectionread-only, hidden
  • Limited memory management
  • No virtual memory
  • Limited to physical memory and overlays
  • No user management

6
Resident and Transient Routines
  • Resident routines stay in memory
  • Nucleus, kernel, or supervisor
  • IOCS
  • File system
  • Command processor or shell
  • Transient routines stored on disk until
    neededDOS external commands

7
Internal vs External Commands
  • Internal commands
  • BREAK CALL CHCP CHDIR(CD) CLS COPY CTTY DATE
    DEL(ERASE) DIR ECHO EXIT FOR GOTO IF MKDIR(MD)
    PATH PAUSE PROMPT REM RENAME(REN) RMDIR(RD) SET
    SHIFT TIME TYPE VER VERIFY VOL
  • External commands
  • APPEND.EXE ASSIGN.COM ATTRIB.EXE BACKUP.EXE
    CHKDSK.EXE COMMAND.COM COMP.EXE DEBUG.EXE
    DISKCOMP.COM DISKCOPY.COM DOSKEY.COM DOSSHELL.COM
    EDIT.COM EDLIN.EXE EMM386.EXE EXE2BIN.EXE
    EXPAND.EXE FASTOPEN.EXE FC.EXE FDISK.EXE
    FORMAT.COM GRAFTABLE.COM GRAPHICS.COM HELP.EXE
    JOIN.EXE KEYB.COM LABEL.EXE MEM.EXE MIRROR.COM
    MODE.COM MORE.COM NLSFUNC.EXE PRINT.EXE
    QBASIC.EXE RECOVER.EXE REPLACE.EXE RESTORE.EXE
    SETVER.EXE SHARE.EXE SORT.EXE SUBST.EXE SYS.COM
    TREE.COM UNDELETE.EXE UNFORMAT.COM XCOPY.EXE

Source http//support.microsoft.com/?id71986
8
DOS Memory
UMB Upper memory block UMA Upper memory area
9
Shell
  • DOS command driven
  • COMMAND.COM
  • One of DOS system files
  • DOS shellinterprets and launches commands
  • Some commands internal (resident) and others
    external (transient)

10
Accessing Peripherals
  • DOS system files
  • MSDOS.SYS
  • IO.SYS
  • I/O access uses both system files
  • MSDOS.SYS
  • Accepts logical I/O requests
  • Translates requests to physical I/O commands
  • I/O.SYS
  • Hardware dependent
  • Accepts physical I/O commands
  • Communicates commands to basic input/output
    system (BIOS)

11
File System
  • MSDOS.SYS
  • File system for DOS
  • Translates logical I/O requests to physical form
  • Responsible for directory management
  • Allocates disk space using FAT

12
File Allocation Table (FAT)
  • Allocates disk space in clusters
  • 1024 byte cluster
  • Two sectors
  • Clusters numbered sequentially
  • Beginning with zero
  • Boot track 0, sector 0
  • Address of first cluster of file stored in
    directory
  • Clusters form linked listaddress of next cluster
    at end of current cluster
  • MSDOS.SYS receives relative bytes for logical I/O
    requests

13
Interrupt Processing
  • Intel processor relies on electronic signal
    (interrupt) to establish contact with peripheral
    devices
  • Hardware senses signal
  • Saves key control information for current process
  • Starts interrupt handling routine
  • Interrupt handler processes interrupt
  • Saved process returned to processor

14
Launching Command Window
  • Command line interface for Windows
  • To access
  • Select "Run" option under "Start" button
  • Type cmd.exe in input file of dialog box
  • OR
  • Select "Command Prompt" from Start All Programs
    Accessories menu

15
Command Window
16
Command Window Utilities
  • date display or set date
  • time display or set time
  • title set title on Command Window
  • prompt set prompt in Command Window
  • help list all DOS commands
  • echo display string or write string to file

17
File System
  • DOS uses hierarchical file system
  • Each storage device has root directory
  • C\ -- hard drive
  • A\ -- floppy drive
  • F\ -- memory stick
  • Type drive letter and colon at command prompt to
    change default drive, F
  • Each directory can hold directories or files
  • Tree command will list directories,
    sub-directories, and files

18
Tree of Memory Stick
19
Path
  • Absolute
  • Lists all directories from root to target file
  • F\general\MomDad\Receipt\slice.gif
  • Relative
  • Lists directories from current working directory
  • .\Receipt\slice.gif
  • This directory "."
  • Parent directory ".."

20
Path Commands
  • path lists current search path
  • path PATHnew_path adds path to search path
  • subst associates path with drive letter

21
Name Restrictions
  • Short names
  • Eight dot three limit of eight character name
    and three character extension
  • 460Files directory name
  • DOS_Lab.txt file name
  • Legal characters
  • Letters and digits A..Z, a..z, and 0..9
  • ' ( ) _at_ ! _
  • No spaces allowed

22
Conventional File Extensions
  • ASM - assembler code
  • BAK - backup file
  • BAS - Basic code
  • BAT - batch file
  • BIN - binary file
  • COB - COBOL code
  • COM - command file
  • DAT - ASCII data
  • DIF - difference file
  • DOC - ASCII document
  • DVD - device driver
  • EXE - executable image
  • FOR - FORTRAN code
  • LIB - library source
  • LST - ASCII list file
  • MAP - ASCII load module
  • OBJ - object module
  • OVR - overlay file
  • REF - cross reference
  • TMP - temporary link
  • - temporary work

23
Directory Commands
  • cd change directory
  • mkdir make new directory in current working
    directory
  • rmdir remove a directory
  • dir list content of a directory
  • tree list directory hierarchy

24
File Commands
  • type display content of file
  • del delete one or more files
  • erase delete one or more files
  • copy copy one or more files
  • move move one or more files
  • rename change name of a file

25
Batch Files
  • ASCII file of DOS commands
  • Executable
  • Used to script a task
  • Execute a Java application
  • Installation scripts
  • Setting up specialized environments
  • AUTOEXEC.BAT executes when system boots

26
Pipe
  • Pipe connects commands together
  • MORE displays screen of data at a time
  • DIR lists content of directory
  • DIR MORE displays content of directory one
    screen full at a time
  • is pipe symbol

27
Redirection
  • Redirection changes destination of output
  • gt is redirection symbol
  • dir gt DirList.txt writes list of current
    working directory content to "DirList.txt" file
  • dir f\general gtgt DirList.txt appends list of
    f\general directory content to DirList.txt file
  • gt creates or overwrites file
  • gtgt appends to file

28
Returning to Windows
  • To exit Command Window graciously,at prompt
    type
  • exit

29
Summary
  • Useful for troubleshooting and scripting in
    Windows
  • Limited capabilities
  • Single user
  • Single task
  • Limited memory management
  • No user management
  • System files MSDOS.SYS IO.SYS
  • Resident
  • File system and IOCS
  • Interrupts provide access to peripheral devices
  • DOS uses hierarchical directory structure
  • COMMAND.COM provides command line shell
  • help lists all DOS commands
  • In DOS path use \ to separate directories

30
Questions?
Write a Comment
User Comments (0)
About PowerShow.com