DOS is a single tasking operating system
- COMPONENTS OF DOS:
- The bootstrap program: When the computer is switched on the ROM (read only memory), loads the bootstrap routine into the memory and execute it. The bootstrap program takes over from this point and its function is to load the other files in MS DOS.
- The basic input output system: This program is loaded into the memory by the bootstrap loader. This is the interface between the hardware and software of the system. The file system is IO.SYS or IBOBIM.COM.
- The file and disk manager: This contains the file management capability. The file name is MSDOS.SYS or IBMDOS.COM.
- The command processor: This interprets the command given by the user. File name --> Command.com.
- DOS COMMANDS :
- Internal Commands : There are some commands that can be executed at system prompt without the help of the external storage source. In other words, these commands are clipped togather into a file command.com. The file is loaded into the memory along with DOS and remains in the memory till the machine is switched off. Thus the commands which form the part of Command.com are called internal command.
- External Commands: These commands are also executed at system prompt but requires the aid of an external source of files or commands. The commands which don't form the part of Command.com are called external commands. External commands can be executed only if they are present in the disk or floppy, otherwise the user will get an error message. These files have to have an extension of .COM or .EXE (executable file), .BAT.
- SOME IMPORTANT INTERNAL COMMANDS :
- A: Change default drive to A-drive.
- CD: Change directory.
- CD.. : Goto parent directory from subdirectory.
- CD\ : Go to root directory from any subdirectory.
- CLS : Clear Screen.
- COPY : Copy any file or directory from one location to another. (e.g. COPY source destination)
- DATE : Display and update system date.
- DEL : Delete file (To get confirmation i.e. Y/N option for delete, use DEL/P filename)
- DIR : Display directory listing of current drive of an secondary storage media (e.g. floppy or hard disk. etc).
- DIR/P : Directory listing pagewise.
- DIR/W : Directory listing widthwise.
- DIR/O : Directory listing in alphabetical order.
- DIR/B : Displays filename without any other related information (Like, size, time, date of storage etc.)
- DIR/S : Lists contents of subdirectories under current directory.
- DIR/A followed by attributes : displays files only which satisfy the mentioned attribute. The attributes are, S= System files, R= Read onlyfiles, D= Directories, H= Hiddenfiles.
- ATTRIB followed by + or - followed by attribute type (S, R, H) followed by filename : Set the particular attribute to the file.
- PATH : Displays the path of executable files.
- PROMPT : To change system prompt (Default prompt $P , $G).
- RD : Remove directory.
- REN : Rename any file or directory. (e.g. old filename REN new filename).
- TIME : Displaying or updating system time.
- TYPE : Display the content of any file.
- VER : Display version of operating system.
- COMMAND NAME / : Helps to display the switches of the present command.
- SOME IMPORTANT EXTERNAL COMMANDS :
- CHKDSK : Check the integrety of the disk.
- DEFRAG : DOS is often forced to fragment files to fit them in the available space on the disk. Fragmentation doesnot affect a file but the speed of access of file decreases.
- DELTREE : Deletes a whole directory with all of its subdirectories and all files present in a particular subdirectory at a time.
- DISKCOPY : Makes a complete copy of another diskette, sector by sector.
- DOSKEY : This command helps in recording DOS keyboard commands, so we can recall it when necessary and then run it again. This is a TSR (Terminate and stay resident e.g. virus program) program. (It is a reusability feature).
- EDIT : Create and alter text files.
- FORMAT : Erases the existing files in a disk and devides it into section for fresh storage of files.
- MOVE : Moves one or more files to the location specified. (e.g. MOVE source destination)
- SYS : Transfer system files from one disk to another.
- XCOPY : Copy one or more files or one subdirectory to another. Executes faster than COPY command.
- SOME MORE COMMANDS :
- MD Directory name : create or make directory.
- COPY CON : Copy from console (input device e.g. keyboard).
- BATCH FILES : Special type of file, used for performing a set of tasks again and again. Extension .BAT
- SYSTEM FILES : Basic inbuilt files, required to run an operating system.
- SOME IMPORTANT KEYS :
- F7 : Displays list of commands recorded by the DOS programme.
- F9 : To get the line number.
No comments:
Post a Comment