0% found this document useful (0 votes)
217 views

DOS Commands

MS-DOS is a non-graphical command line operating system that was created for IBM compatible computers and introduced by Microsoft in 1981. The document discusses various DOS commands for navigating, opening, and manipulating files from the command line, including commands for clearing the screen, checking the date and time, viewing the directory, creating and deleting files and folders, copying and moving files, and more. It also covers external commands for checking and formatting drives, viewing directory structures, and copying files between locations.

Uploaded by

Hemant Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
217 views

DOS Commands

MS-DOS is a non-graphical command line operating system that was created for IBM compatible computers and introduced by Microsoft in 1981. The document discusses various DOS commands for navigating, opening, and manipulating files from the command line, including commands for clearing the screen, checking the date and time, viewing the directory, creating and deleting files and folders, copying and moving files, and more. It also covers external commands for checking and formatting drives, viewing directory structures, and copying files between locations.

Uploaded by

Hemant Yadav
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 13

IT 142 ICT

DOS
Short for Microsoft Disk Operating System, MS-DOS is a non-graphical command
line operating system derived from 86-DOS that was created for IBM compatible
computers. MS-DOS originally written by Tim Paterson and introduced by
Microsoft in August 1981 and was last updated in 1994 when MS-DOS 6.22 was
released. MS-DOS allows the user to navigate, open, and otherwise manipulate files
on their computer from a command line instead of a GUI like Windows.

DOS Commands
Get to a Command Prompt in Windows
1. Click start
Type cmd & press enter.

Internal Commands:
1) CLS (Clear Screen)
Running the cls command at the command prompt would clear your screen of all
previous text and only return the prompt. It does not clear the user's history of
commands.
CLS

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

2) DATE
The date command can be used to look at the current date of the computer as well
as change the date to an alternate date.
DATE

3) TIME
Time command is used to display and set the current system time of
the operating system.
TIME

4) VER (Version)

VER will tell you what version of DOS you are using.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

VER

5) VOL (Volume)
Displays the volume information about the designated drive.

VOL

6) DIR (Directory)

The dir command allows you to see the available files and directories in the
current directory. The dir command also shows the last modification date and
time, as well as the file size.

DIR drivename:

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

If you want to create new .txt file in C:\ using CMD then type

dir> filename.txt

7) Copy con

Copy con is an MS-DOS and Windows command line command that allows the
creation of a file through the command prompt.

copy con filename.txt

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

After this command is typed, you'll be returned to a blank line, which is the
start of your file. Enter the lines you want to insert into the file and, when
done, press Ctrl + Z to create the file. If you want to cancel the creation of
the file, press Ctrl + C.

8) TYPE

Allows the user to see the contents of a file. To edit the files, the user would
need to use either edit or copy con.

Type [drive:][path]filename

9) MKDIR
Allows you to create your own directories in MS-DOS.

MKDIR [drive:]path

MD [drive:]path

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

10) CHDIR (CD)


Chdir (Change Directory) is a command used to switch directories in MS
DOS.
chdir\

chdir..

11) RMDIR
Removes an empty directory in MS-DOS.
rmdir dirname

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

12) RENAME

Used to rename files and directories from the original name to a new name.

rename c:\computer hope

13) DEL
Del is a command used to delete files from the computer.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

14) MOVE
Allows you to move files or directories from one folder to another, or from
one drive to another.

15) COPY
Allows the user to copy one or more files to an alternate location.

copy *.txt d:\

16) DOSKEY

Doskey is an MS-DOS utility that allows a user to keep a history of commands


used on the computer. Doskey allows frequently used commands to be used
without having to type the command each time its needed.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

Option keys

UP,DOWN arrows recall commands

Esc clears current command

F7 displays command history


Alt+F7 clears command history

[chars]F8 searches for command beginning with [chars]

F9 selects a command by number

Alt+F10 clears macro definitions

17) PATH
Path is used to specify the location where MS-DOS looks when using a
command. Typing "path" by itself shows the current path information.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

External Commands:
1) ATTRIB
Attrib allows a user to change the attributes of a file or files.
R Read-only file attribute.

A Archive file attribute.


H Hidden file attribute.

2) FORMAT
Format is used to erase information off of a computer diskette or fixed drive.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

3) CHKDSK
Chkdsk is a utility that checks the computer's hard drive status for any cross-
linked or any additional errors with the hard drive.

4) SCANDISK
Microsoft ScanDisk was first introduced with MS-DOS 6.2 and is a software
utility capable of checking the hard drive and floppy diskette drive for any
disk errors.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

5) TREE
Allows the user to view a listing of files and folders in an easy to read listing.
Drive:\Path Drive and directory containing disk for display of directory
structure.
/F Displays file names in each directory.
/A ext characters used for linking lines, instead of graphic
characters. /a is used with code pages that do not support graphic
characters and to send output to printers that do not properly
interpret graphic characters.

6) XCOPY
Xcopy is a powerful version of the copy command with additional features;
has the capability of moving files, directories, and even whole drives from
one location to another.

NEHAL PATEL (I.T.) CHARUSAT


IT 142 ICT

Move one folder from one drive to another.

NEHAL PATEL (I.T.) CHARUSAT

You might also like