Explain any five DOS command with suitable example.

3 weeks ago

MKDIR (or MD)

It creates a multilevel directory.
Syntax : C:\>MKDIR (or MD) < drive: > < path >

E.g. md c:\test --> Create the "test" directory in the c:\ directory.

    md c:\test1\test2 --> Create the "test1" directory (if it does not already exist), and then the "test2" sub-directory, in the c:\ directory.

CHDIR (or CD)

It changes the current directory or displays the name of the current directory.
Syntax : C:\>CHDIR (or CD) < drive: > < path >

Dir

It displays the list of the files and sub-directories that are in the directory specified.
Syntax : C:\> dir < drive: > < path > < filename >

Copy

It copy one or more files to the location specified and can also be used to combine.
Syntax : C:\>copy < source > < target >

Del

It deletes the files specified.
Syntax : C:\>del < drive: > < path > < filename >

Bench Partner
Sep 21, 2021

Questions Bank

View all Questions

Top