What are the commands of MS DOS - Internal and External Commands

 Do you know what are the commands of MS DOS (MS-DOS Commands). You will know very well what MS-DOS is and perhaps you will also know that no computer or mobile can work without operating system.




In MS-DOS, all the work is done by commands in the form of text. There is no graphical user interface, but there is a screen for writing commands. Mouse is not used in this.


Now you must have understood that we use commands to work in this. So it is important to know how many commands are used in DOS which we use on it.


That is why now we will know how many types of MS DOS commands list are there.


MS DOS Commands:




MS-DOS is an operating system with which a computer runs. If the operating system runs the computer, then it allows to use the command with the help of a command interpreter to make a connection between the user and the hardware.


MS-DOS is present with every Windows operating system. It is an operating system that used to be most popular in 1980–1990.


Its full name is Microsoft Disk Operating System as it was bought by Microsoft company some time after its launch.


MS-DOS is a very lightweight operating system, so its speed is very good and it becomes very easy to work in it. It is a single user and tasking operating system.


MS-DOS accomplishes this feature with 2 types of commands. So let's see how many types of MS-DOS Commands are there.


DOS Commands Definition

DOS Commands are commands available in MS-DOS that are used to interact with the operating system and other command line based software. Just the opposite of Windows, the DOS command is the primary way in which you use the operating system.


Types of MS-DOS Commands

There are a lot of commands to work inside the Microsoft disk operating system. MS DOS commands are mainly divided into 2 parts.


Internal commands

Commands that are always in system memory in MS-DOS and loaded with command.com or cmd.exe. Illustration shows how the commands that are inside command.com are a part. However, each command has its own separate file in the external command.


External commands

External commands are commands that are not inside the command.com. These commands are said to be external because in reality they are not stored in the system memory.


External commands are not commonly used. There is a file for each of its commands. While internal commands are inside the command.com file.


Internal and external DOS Commands with syntax and example

Let us now talk about how to use internal and external commands, for this we have to see the syntax of the commands and from the example of these, we will understand how these commands are used.


Internal Commands of MS-DOS

1. DIR COMMAND:


This command is used to view sub-directories and files inside a directory.


Syntax-C: \> Dir


If you want to see the files as a list inside a particular directory, then write the name of that directory after writing the Dir command for it.


Syntax-C: \> Dir <Directory name>


Ex. - C: \> Dir ABC


2. MD COMMAND (Make Directory):


We use the MD command to create a new directory inside MS-DOS.


Syntax-C: \> MD <Directory name>


Ex. - C: \> MD ABC


3. CD COMMAND (Change Directory):


We use the cd command to move from one directory to another directory.


Syntax-C: \> CD <DIR name>


Ex. - C: \> CD ABC


4. CD .. Command:


Use the cd .. command to exit a directory.


Syntax-C: \> <Dir name> <command>


Ex. - C: \> ABC> CD…


C: \>


5. RD COMMAND (Remove Directory):


When we want to remove a directory, then we use the RD command.


Syntax-C: \> RD <DIR name>


Ex. - C: \> RD ABC


6. CLS (Clear Screen Command):


Use the CLS command to clear the screen of the command prompt.


Syntax-C: \> CLS


Ex.- C: \> CLS


7. COPY COMMAND:


We use this COPY Command to copy a file or directory.


Syntax 1- C: \> Copy <File Name> <New Name>


Syntax 2-C: \> Copy <Path \ File Name> <Target Drive>


Ex.- C: \> COPY ABC XYZ


Ex.- C: \> COPY DELHI D:


8. DEL COMMAND (Delete COMMAND):


We can delete the file using the del command.


Syntax-C: \> Del <DIR name>


Ex. - C: \> Del ABC.txt


9. REN COMMAND (RENAME COMMAND):


We use this command to change the name of any file.


Syntax-C: \> REN <Old File Name> <New File Name>


Ex. - C: \> REN ABC.txt XYZ.txt


10. TYPE COMMAND:


We use the Type Command to open and view the text written inside a file.


Syntax-C: \> TYPE <DIR name>


Ex. - C: \> RD ABC.txt


11. DATE COMMAND:


Using this command, we can see the current date (MM-DD-YY) format.


Syntax-C: \> date


Ex. - C: \> date


12. TIME COMMAND:


Using the Time Command, we can see the current time.


Syntax-C: \> time


Ex. - C: \> time


13. VER (VERSION):


With the help of this command, we can see the version of the disk operating system inside the system.


Syntax-C: \> Ver


Ex.- C: \> Ver


14. COPY CON COMMAND:


We use this command to create a file.


Save file: file is saved CTRL Z.


Syntax-C: \> Copy Con <File Name>


Ex.- C: \> Copy Con ABC.txt


^ Z (Ctrl Z) / F6


1 files copied


15. PATH COMMAND:


By using this command, we can know the path of a directory.


Syntax-C: \> PATH


Ex-C: \> PATH


Changing the drive: - To change the name of a drive, we enter the name of the drive after putting Colon (:).


Syntax-C: \> <Drive name>


Ex. - C: \> A:


16. EXIT COMMAND:


Using this command, we exit from DOS Prompt.


Syntax-C: \> Exit


Ex-C: \> Exit


17. PROMPT COMMAND:


Use the command prompt to change the prompt.


Syntax-C: \> prompt_name


Ex. - C: \> prompt_paragon


External Commands of MS-DOS

1. LABEL Command


Using this command, you can see the Label and Serial Number of the drive and change its label.


Label size is 11 characters in Windows XP and 32 characters in Windows 7. Apart from this, you can also delete the label.


Syntax: c: \> LABEL <Drive Name>


Example: - c: \> LABEL A:


2. Tree Command:


By using the Tree Command, we can see the files and directories in the format of the tree, just as braches occur in the tree.


Syntax: - c: \> TREE / [Switch] [path]


Example: - c: \> TREE / F micro


3. CHKDSK Command:


CHKDSK’s full name is Check Disk, from this we check Secondary memory.


Syntax: - c: \> CHKDSK <Drive Name>


Example: - c: \> CHKDSK D: \


3. Append Command:


This command provides the path to the data file. Append command works like a path comma. We use this command mainly for 3 tasks.


With the help of this command, we can see the path of the data file, break it and change the path with it.


To see the path


c: \> append


To break the path


c: \> Append;


No path


To set the path


Syntax: - Append = data file address; other data file address


c: \> Append = c: \ micro; d: \ Mukesh


4. DiskCopy Command:


We use this command to copy the floppy disk. Most floppy disks go bad repeatedly and that is why use this command to keep a copy of the data in multiple floppy disks.


Note: The size of both Floppy disks should be equal. Format the floppy disk you want to copy to. After that copy both disks.


Syntax: - c: \> Diskcopy <First Drive Name> <Second Drive Name>


Example: - c: \> DiskCopy A: A:


 ∎  Insert the disk from which to copy, ie drive A: insert.

∎  After that press any key.

∎  Then insert the target disk i.e. the disk in which you want to send the data by copying it to Drive A:.

∎  After this, press any key.


5. DiskComp Command:


From this we can compare 2 Floppy Disk. Use this command immediately after using Diskcopy.


In this, it is checked that no file has been missed while copying the floppy disk.


Syntax: - c: \> DiskComp <First Drive Name> <Second Drive Name>


Example: - c: \> diskcomp A: A:


6. SYS Command:


The full name of this is system of the command. Using this we can create bootable disk.


They can also make a copy of the bootable file disk. After the process is complete, a message appears that states that the disk has become bootable. The computer can be booted with the help of disk.


Syntax: - C: \> SYS A:


Example: - C: \> SYS A:


7. Help Command:


By using the help command, we can help about DOS commands, which command works and how.


Syntax: - c: \> HELP <command Name>


Or


c: \> Command Name /?


Example: - C: \> dir /?


8. Print command:


Using Print, we can extract any printout with the help of LinePrinter, that too in the background.


Syntax: - Print <file Name>


Example: - C: \> Print micro.txt


9. DOSKEY Command:


It works like a camera. It is available in operating systems above 5.0. We can use it in the above version. It records everything.


Which you can also see later. And you can also use it. You can also delete the record history using Alt + F7. You can see the record using the UP and DOWN buttons.


Syntax: - c: \> DOSKEY


Example: - C: \> DOSKEY


10. Attrib Command:


With the help of Attrib, you can see the attribute of a file or folder. Also you can change its attribute.


There are 4 types of attributes for file and folder.


Read Only: - This attribute means that the file can only be read.

Hidden: - The file or directory can be hidden using this attribute.

System: - By using this attribute, you can change file and directory to system file and directory.


Archive: - File and directory can be archive with the help of archive attribute.

Note:  set attribute from this and remove the attribute from this.


Syntax: - ATTRIB / - ATTRIBUTES [PATH \ FILE OR DIRECTORY NAME]


Command to set Attribute

And remove attribute


∎  Read R -R

∎  Hidden H-H

∎  Archive A-A

∎  System S -S


11. Backup Command:


You must know why you use Backup. When we store the data in another disk, it is called backup.


Backup is very important because if we have kept the file or directory in one place and if it gets corrupted by mistake then backup helps us a lot to get our data back again.


If we get our file and directory back from backup. For this, we have to use the Restore command.


Syntax: - c: \> Backup <source address> <destination disk or address> 


Edit [path \ file name or new file name]


Example: - c: \> backup c: \ micro A: \


12. Edit command:


We use EDIT to make some changes to a created file and to correct some disturbances in it. With this help, a new file can also be created.


There is a menu system in this, with the help of which we can do the tasks easily, you can also use the mouse in it. The exit of the menu is used to exit EDITOR.


Syntax: - c: \ micro> edit student


Example: - c: \ micro> edit student


13. Move Command:


You can move a file from one location to another location using MOVE. After moving the file, 1 file moved message comes.


Syntax: - move <Source address> File Name> <Destination Address> 


Example: -move d: \ computer e: \


14. FORMAT Command:


With the help of this command, we can format the disk. Extra care should be taken whenever using this command because data can be deleted. In this, you can do quick format using Q switch.


Syntax: - c: \> FORMAT / [SWITCH] Drive Name:


Example: - c: \> FORMAT / Q d:


Warning all data on non-removable disk


Drive d: will be Lost!


Proceed with the format (Y / N)? _Y


Volume label (Enter for none)? _


15. FDISK Command:


This command is used to delete the partition. We also use it to create a new partition. This command should be used very carefully.


There are 3 types of Disk Partition.


1-  Primary partition

2-  Extend partition

3-  Logical partition

Delete Partition: - To delete partitions, first delete the logical partitions. After that, delete the extended partition. And finally, delete the primary partition.


To delete a partition, first the logical partitions have to be deleted. Then delete the Extended partition. And then finally delete the primary partition.


Logical> Extend Partition> Primary Partition


Creating Partition: - Creating primary partition first creates a partition. After this, make the expanded partition. Finally, create a logical partition.


When it comes to creating partition, first let's create primary partition. Its extended partition has to be created and the logical partition is created in the last one.


Primary> extend> logical


C: \> Fdisk


Yes


1.Create Partition


2.Delete Partition


3.Display Partition


16. Sort command:


Sort is a filter command. With the help of this command we can alphabetize the file.


Here you can tell which column of the file you want to SORT. If you do not specify the column, then SORT alphabetizes according to the character of the first column.


Syntax: - c: \> Sort File Name


or


Sort filename >> new fileName


Example: - c: \> Sort computer


17. MSAV Command


This is an external command. Which can be used to scan a virus in a computer. Whichever dress we want to scan, we just give the name of that type through a comment, then it scans it. If you do not give the name of any drive, then it will scan the time in which it occurs.


This command creates a CHKLIST.MS file in every directory in which it performs scanning. In this, it keeps a record of its blank canning.


Syntax MSAV [d:] [/ S | / C]


/ S - If you just want to scan your Tribe without removing the virus then you can use it.


/ C - If you scan as well as virus then you can use this attribute.


18. LESS Command


It is a command used in Alina that is used to read the contents of a text file that falls on the same page in the same screen at a time. It works very fast because it does not load the entire file at once but only loads as much as is needed.


Syntax: less filename


Which command is given to retrieve the deleted file in MS DOS?

You can use the UNDELETE command to restore deleted files. Apart from this, you can also follow this step:

C: \ Users \ program files \ chkdsk D: / f Then press Y until the command line starts.

Then type this command. Wherever you want to store the backup, also type the letter of the drive.

(C: or D: \> attrib –h –r –s / s / d *. *)


What is the command inside MS DOS?

There are mainly two types of commands under it.

1. Internal

2. External

Some of the main commands under the internal command are:

Date Time, Time, Type, CLS, Copy, Delete, MD, CD, RD, Exit etc.

Some of the main commands under the external command are:

Edit, Xcopy, CHKDSK, Label, Diskcopy, TREE, DELTREE, DOSKEY, FIND, SORT etc.


What will be the command to edit the data saved in MS DOS?

Under this, you can use the EDIT command to edit whatever file we save.

C: /> Edit Filename - <-Enter


In short

If you ever see people connected to network or internet, then go to the command prompt and use the ping command to test internet connectivity. This operating system has maintained its presence from the old times till now, it means that there is definitely something in it.


You have learned today that what is the syntax of Internal and External DOS Commands and how to use it is described with an example.


How did you like this post about MS DOS commands ? In this, you have learned how many commands are there in this operating system.


I hope you like this post and you too can now use the internal and external commands on your own. If you like this post, then definitely share it on social media so that every person can get information about it and their knowledge can be increased.

What are the commands of MS DOS - Internal and External Commands What are the commands of MS DOS - Internal and External Commands Reviewed by imran on March 24, 2021 Rating: 5

No comments:

Home Ads

Powered by Blogger.