Operating System Class 8
Operating System Class 8
The Intern DOS commands are used for common jobs such
as copying, erasing, and remaining files. Some Common
Internal DOS are CLS, Ver, COPY, Volume, Date, Time,
Tree, MD, CD, RD, Copy, Del, Ren, Move, Path, Label,
Prompt, etc.
DOS Internal Commands with Syntax and Examples
1. MD COMMAND (Make Directory)
MD command is used to create a new directory or subdirectory in the Disk.
Syntax–
C:\>md (directory name)
Example-
c:\> md ram
CLS COMMAND (Clear)
CLS is one of the internal DOS commands that is used to clear the DOS screen. If you
can clear whatever command you ran on the screen through the CLS command.
Syntax-
C:\>cls
3. CD COMMAND (Change Directory)
CD is internal dos command used to change the directory (to insider or come out). If you
want to go from one directory to another, then you can go with the CD command.
Syntax–
C:\>cd (Directory name)
Example-
C:\cd sonu
4. COPY CON COMMAND
COPY CON command is used to basically create a file. The only disadvantage of the
command is that the created by COPY CON command cannot be modified.
Syntax-
C:\copy con (file name with extension)
Example-
C:\copy con krishna.txt
5. COPY COMMAND
The COPY command is used to copy the file and move the file to another location or
folder or drive.
Syntax-
C: \> Copy <File Name> <New Name>
C: \> Copy <Path File Name> <Target Drive>
Example-
C:> Copy C:\ABC*.* D:\sonu and, Press enter.
6. DATE COMMAND
The Date command is used to view the system’s current date. if you want to modify the
date then you can easily do it from the date command.
Syntax-
C: \> date
Example
C:>date
The current date is: 10/12/2021
Enter the new date: (dd-mm-yy) 09/12/2021
7. TIME COMMAND
The time command is used to view the system’s current date. if you want to modify the
date then you can easily do it from the time command.
Syntax-
C: \>time
Example-
C:>time
The current time is: 23:23:27.63
Enter the new time: 23:25:50.43
8. DEL COMMAND
A DEL command is used to remove a file from the disk. To delete any files or directory
from any drive you would define the path and folder.
SYNTAX-
C:\> Del (file name) delete only one file.
C:\>ABC Del *.* delete all files from ABC folder.
9. RD or RMDIR
RD or RMDIR command is used to remove a particular directory or subdirectory from
the disk. Only an empty directory or subdirectory can remove.
Syntax-
C: \> RD <DIR name>
Example-
C: \> RD <Modi>
10. PROMPT COMMAND
A Prompt command is used to change the MS-DOS command the user can on/off the
prompt by using this command.
Syntax-
C: \> prompt name
Example-
C: \> prompt games
11. REN COMMAND
A REN command is basically used to change the name of an existing file or folder. If you
want to change any folder name by the REN command you can easily change the folder
name. Syntax and example are as below-
Syntax-
C: \> REN <Old File Name> <New File Name>
Example-
C: > REN sonu.txt monu.txt
12. TYPE COMMAND
Type command is an internal command used to view the content of any file. If you want
to see what is saved in that file then you can see by type command.
Syntax-
C:\ > TYPE <DIR name>
EXAMPLE-
C: > RD rawatji.txt
13. VER COMMAND
If you want to see your Windows Operating system then you can see the version
information by the VER command. Follow the syntax and example are below-
Syntax-
C:>ver
Microsoft Windows [Version 10.0.19043.1348]
14. MOVE COMMAND
The move is an internal command used to change the name of any directory. Follow the
syntax and example are below-
Syntax-
C:/> move old dir(name) new dir (name)
C:/> move sonu monu
15. COLOR COMMAND
The COLOR command is used to change the default color of the background. IF you
want to change the default background color of the DOS or Windows command line,
from the use of color command you can easily change.
A- Light
2-Green Green
5- D- Light
Purple Purple
6- E- Light
Yellow Yellow
F- Bright
7- White White
Syntax-
color (attribute)
Example-
C:\Users\Woodland>color ab
16. REM COMMAND
A REM command is used to insert remarks into a batch file. REM command is mainly
used inside the autoexce.bat, config. sys, etc.
Syntax-
C:\> Rem (Command Name)
Example-
C:\> Rem software.bat
17. MOVE COMMAND
If you want to change any directory name, via the MOVE command you can change the
name of a directory. Follow the syntax and example are below-
Synatx–
C:/> move (old dir name) (new dir name)
Example-
C:/> move prakahs pankaj
18. ECHO COMMAND
If you want to repeat typed text back to the screen and can send a text to a peripheral on
the computer, via the ECHO command you can do it. Follow the syntax and example
are below-
Syntax-
ECHO [ON | OFF]
ECHO [message]
Example-
echo happy birthday dear shanvi >> shanvi.txt
19. PAUSE COMMAND
A PAUSE command is used to stop currently running the batch files. The syntax and
example of the PAUSE command is as below-
Syntax–
PAUSE
20. START COMMAND
A START command is used to enable a user to open a separate window from the
Windows command line.
Syntax-
START [“title”] [/D path] [/I] [/MIN] [/MAX] [/SEPARATE | /SHARED]
[/LOW | /NORMAL | /HIGH | /REALTIME | /ABOVENORMAL |
/BELOWNORMAL]
[/NODE ] [/AFFINITY ] [/WAIT] [/B]
[command/program] [parameters]
EXAMPLE-
start notepad mukesh.txt