Microsoft Disk Operating System: Internal Commands
Microsoft Disk Operating System: Internal Commands
Internal Commands
These commands are automatic loaded into the memory when operating system is loaded into the
memory. Thus these are also called memory-resident commands. The commands available are all
combined together and are stored in Command.com file, which is a executable command file. These
internal commands are further grouped according to their properties. These are as follows.
a) General purpose commands b) File related commands c) Directory related commands
13. CD 14. RD
External Commands
External commands are known as Disk residence commands. Because they can be store with DOS
directory or any disk which is used for getting these commands. Theses commands help to perform
some specific task. These are stored in a secondary storage device. Some important external
commands are given below-
I nternal Commands
1. CLS:- (Clear the screen) This command is used to clear the screen or wipe out everything written on the scree
Syntax:- C:\> CLS and press Enter
2. DIR:- (Directory) Dir command is used for listing files and directories present in the current disk.
Syntax:- C:\> DIR [/switches]
3. VER:-(Version) Version numbers indicates that which edition of DOS we are working on.
Syntax:- C:\> VER press enter
4. VOL:-(Volume) Displays the disk volume label and serial number, if it exist.
Syntax:- C:\> VOL press enter
7. COPY CON:- This command gives the facility to create a new text file.
8. TYPE:- This command is used to display the contents or text of any file to the display device.
9. COPY:- Copy command is used for copy any file to another location or to copy the files to another
directory. This command may also be used for copying any file to another disk with different file name.
10. REN:- (Rename) This command is used to change the name of any file or directory.
11. DEL:- This command is used for erasing any file from the disk.
12. MD:- (Make Directory)- This command allows to create a new directory.
Syntax:- C:\> MD <Dirname>
OR
MKDIR <Dirname>
13. CD:- (Change Directory):- We can enter or exit from any directory using this command.
Syntax:- CD <Dirname>
OR
CHDIR <Dirname>
14. RD:-(Remove directory):- This command is used when we want to remove any unusable directory
from our disk.
External Commands
1. MORE:-Using TYPE command we can see the content of any file. But if length of file is greater
than 25 lines then remaining lines will scroll up. To overcome through this problem we uses MORE
command. Using this command we can pause the display after each 25 lines.
2. ATTRIB:- Sets the various type of attribute to a file. Like Read only, Archive, Hidden and System attribute.
3. XCOPY:- When we need to copy a directory instant of a file from one location to another the we
uses xcopy command. This command is much faster than copy command.
4. MOVE:- Move command is used for moving one file or multiple files from one location to another
location or from one disk to another disk.
5. SORT:- This command is useful when we want to sort a file. When we run this command the
result can be get to display device or file.
Syntax:- C:\> SORT /R < Input file name> <output file name>
6. CHKDSK:-(Check disk) - This command is used to check the status of a disk and show the report of result sta
Syntax:- C:\> CHKDSK
7. FIND:- The FIND command is used to search a file for a text string.