Docsity

A Note on DOS (Disk Operating System), Lecture notes of Computer science

Toggle sidebar
bg1
Disk Operating System:
(Internal/External)Commands
When a Computer is switched on POST (Power on Self Test) operation is
performed, which checks integrity of all components (CPU, Memory, I/O
devices) of the system. If a component is found faulty , error message will
be displayed. A chip called ROM - BIOS is read and executed. BIOS (Basic
Input Output Services) information is a pre-written program that is
permanently stored on ROM chip. DOS commands are generally classifieds
in two types.
Internal Command
DOS commands for which the specifications are available in Shell
(Command.com) are calledinternal commands. These are frequently used
commands, and are called resident commands.
DOS Commands for which specifications are not internally available in
command.com are called External Commands. They reside in the disk in the
form of executable program files. They will be loaded into primary memory
only at the time of execution.
Directory Structure of DOS: One thing is to be kept in mind is that a
directory can have as many child (sub) directories, but the child directory
can have only one parent directory.
1. CLS: this command is used to clean the screen.
2. DIR: this command allows the user to see all files and sub-directory in the
current directory. DIR Command lists file information in five columns;
(first) column gives primary name of the file (second) column gives
extension of the file (third) column gives the file size - number of bytes
used; (fourth) column gives the last updated date; (fifth) column gives the
last updated time.
Dir/p - page by page display of file name and directory names;
Dir/w - width-wise display;
Dir/s - displays all sub directory and files in the sub-directory of current
directory.
3. Copy con this command copies whatever typed on keyboard to the file;
the file can be closed by giving the command A2 or F6 key: eg: Copy con
test .....A2.
pf3
pf4

Partial preview of the text

Download A Note on DOS (Disk Operating System) and more Lecture notes Computer science in PDF only on Docsity!

Disk Operating System:

(Internal/External)Commands

When a Computer is switched on POST (Power on Self Test) operation is performed, which checks integrity of all components (CPU, Memory, I/O devices) of the system. If a component is found faulty , error message will be displayed. A chip called ROM - BIOS is read and executed. BIOS (Basic Input Output Services) information is a pre-written program that is permanently stored on ROM chip. DOS commands are generally classifieds in two types. Internal Command DOS commands for which the specifications are available in Shell (Command.com) are calledinternal commands. These are frequently used commands, and are called resident commands. DOS Commands for which specifications are not internally available in command.com are called External Commands. They reside in the disk in the form of executable program files. They will be loaded into primary memory only at the time of execution. Directory Structure of DOS: One thing is to be kept in mind is that a directory can have as many child (sub) directories, but the child directory can have only one parent directory.

  1. CLS: this command is used to clean the screen.
  2. DIR: this command allows the user to see all files and sub-directory in the current directory. DIR Command lists file information in five columns; (first) column gives primary name of the file (second) column gives extension of the file (third) column gives the file size - number of bytes used; (fourth) column gives the last updated date; (fifth) column gives the last updated time. Dir/p - page by page display of file name and directory names; Dir/w - width-wise display; Dir/s - displays all sub directory and files in the sub-directory of current directory.
  3. Copy con this command copies whatever typed on keyboard to the file; the file can be closed by giving the command A2 or F6 key: eg: Copy con test .....A2.
  1. Date it displays two system date and allows the user to change it if desired ; it is displayed in the form of mm - dd - yy; eg:c:> date - enter.
  2. Time it displays the system type and enables the user to change it; eg: C: > Time - enter.
  3. md(mkdir) it creates a new directory in sub directory in the current directory; eg: C:> md
  4. rd(rmdir) this command is used to remove a directory from the disk; it can't remove a directory which contains sub directory or files, ie, the child should be removed from the parent; similarly this command can't remove the current directory and root directory. Syntax: c:> RD.
  5. Type it displays the content of saved file; eg: C:> Type> file name.
  6. Ren this command changes the name of existing file or directory: Syntax: C:> ren new name>
  7. Delete delete a file from current directory; Syntax: C;> del
  8. Ver it displays the version of DOS currently being used in the system; Syntax: C:> ver
  9. Copy it copies the given file or files from the source directory to the largest directory; Syntax:C:> copy .
  10. Prompt allows the user to set a new DOS prompt instead of usual C:> or A:>; eg C:> prompt pcc; Prompt$p$g - this allows you to reset default prompt; Prompt $d (current date); Prompt $t (current time); External Command
  11. Attrib this command is used for protecting the files from accidental changes or modification. It can also be used for making a hidden file, archive files, read only files; Syntax: Attrib +R/-R/+H/-H/+A/-A +FR protects the file by making it read only, -R removes the read only protection; eg: Attrib + r
  12. Scandisk/ Chkdisk this command checks the status of the disk; it shows a graphical display, information about the user file.
  13. Tree this command graphically displays the path of each directory and sub directory in given drive; Syntax: C:> tree<
  14. More it displays one screen of data at a time and is used with another command when one screen is full; if you press any key on the next screen is displayed: Syntax C:> type abc.doc| more.
  15. Edit the command loads the MSDOS editor, where we can edit files, create new files, open existing files; Syntax: C:> edit < file name>

Stacks = 15, 128it tells DOS the number of stacks to be used by the H/W interrupts; the default value is 9 with 128 byte. Shell = Command.com it tells DOS to install the command processor from a particular path such as Shell = C:\DOS\ Command.com