List of five MS-DOS commands

List of five MS-DOS commands

Introduction


DOS commands are the basics for the operating system and the famous operating system Windows that was developed by Microsoft takes these commands as basic and developed the operating system. All these commands will be used in dos command prompt.

MS-DOS commands


Let us now see five MS-DOS commands, which are very useful for the beginners and they are as follows.
md
cd
dir
copy
del

MD


MD is the command used to create or make a directory. This command will create a new directory in the specified path where you are navigated.

Syntax
cmd> MD [directory name]

Example
md isc -- This will create a new directory called isc in the path which you are currently using the command line.

CD


CD is the command used to change the directory. This command is used to view the current directory and also used to switch over to other directories.
Syntax
cmd> CD [/D] [drive:][path]
cmd> CD [..]

The double dot (..) specifies to change to the parent directory.
/D switch is to change current drive in addition to changing current directory for a drive.

Example
cd e: This will change your current directory to E.

Dir


This command is called the directory command and used to display the list of files and folders in that particular directory.

Syntax
cmd> dir

Copy


Copy command is used to copy a single or set of files from source directory to destination directory.

Syntax
cmd> copy [source] [destination]

Example
copy test1.txt test2.txt
This command will create the file called test2 and copy the content of test1 into test 2. After the copy has been done, the following message will be appearing in your screen

D:\New>copy test1.txt test2.txt
1 file(s) copied.

Del


Del command is used to delete the file or folder from the specified directory.

Syntax
cmd> del [file or folder name]

Example
del test1.txt

0 comments:

Post a Comment

 
^ Scroll to Top