Table of Contents
Internal (DOS) Commands
Internal DOS commands are commands that are already in the MS-DOS main file command.com because they are the most important and have to be given frequently. These commands are always available in the main memory of the computer and no other file is required to run them, hence they are called internal commands.
Following are the internal commands of MS-DOS:-
BREAK, COPY, ERASE, RD, SHIFT, EXIT, MD, REM, TIME, CD, DATE, FOR, MKDIR, REN, TYPE, CHCP, DEL, GOTO, PATH, RENAME, VER, CHDIR, DIR, IF, PAUSE, RMDIR, VERIFY, CLS, ECHO, PROMPT, SET, VOL.
Internal Command
1. DIR COMMAND:- These commands display a list of files and subdirectories in a directory.
Syntax – C:>Dir
If you want to see the list of files of a particular directory, then you give the name of the directory with dir.
Syntax – C:>Dir<Directory name>
Ex. – C:> Dir abc
2. MD COMMAND (Make Directory):- This command is used to create a new directory.
Syntax – C:>MD<Directory name>
Ex. – C:> MD ABC
3. CD COMMAND (Change Directory):- This command is used to change the directory.
Syntax – C:>CD<DIR name>
Ex. – C:> CD ABC
4. CD..:- This command is used to exit the directory.
Syntax- C:> <Dir name><command>
Ex. – C:> ABC>CD.. C:>
5. RD COMMAND (Remove Directory):- This command is used to remove the already created directory in Disk.
Syntax – C:>RD<DIR name>
Ex. – C:> RD ABC
6. CLS (Clear Screen Command):- You can clear the screen by this command.
Syntax – C:>CLS
Ex.- C:>CLS
7. COPY COMMAND:– Through this command we can create a duplicate file of any file.
Syntax 1 – C:>Copy<File Name><New Name>
Syntax 2 – C:> Copy <PathFile Name><Target Drive>
Ex.- C:> COPY ABC XYZ.
Ex.- C:> COPY DELHI D:
8. DEL COMMAND (Delete Command):- This command is used to delete a file from disk.
Syntax – C:>Del<DIR name>
Ex. – C:>Del ABC.txt
9. REN COMMAND (RENAME COMMAND):- This command is used to rename the file.
Syntax – C:>REN<Old File Name><New File Name>
Ex. – C:>REN ABC.txt XYZ.txt
10. TYPE COMMAND:– We can use this command to see the text of the file on the screen.
Syntax – C:>TYPE<DIR name>
Ex. – C:> RD ABC.txt
11. DATE COMMAND:– Through this command, we can see the current date in (MM-DD-YY) format.
Syntax – C:>date
Ex. – C:>date
12. TIME COMMAND:– Through this command we can see the current time.
Syntax – C:>time
Ex. – C:>time
13. VER (VERSION):- Through this command, we can see the version of present disk operating system in the system.
Syntax – C:>Ver
Ex.- C:>Ver
14. COPY CON COMMAND:– This command is used to create the file.
Saving file– The file is saved by Ctrl+Z.
Syntax – C:>Copy Con<File Name>
Ex.- C:> Copy Con ABC.txt
Hello world this is first file
^Z (Ctrl +Z)/F6 1 file copied
15. PATH COMMAND:– This command tells Dos which directory it should search to find any programs.
Syntax – C:>PATH
Ex – C:>PATH
16. Changing The Drive:– To change the name of the drive, the name of that drive is entered with a colon.
Syntax – C:><Drive name>
Ex. – C:>A:
17. EXIT COMMAND:– This command is used to exit the Dos prompt.
Syntax – C:>Exit
Ex – C:>Exit
18. PROMPT COMMAND:– Through this command we can change Prompt.
Syntax – C:>prompt_name
Ex. – C:> prompt_paragon