Professional Documents
Culture Documents
Overview
This document is an introduction to DOS concepts, vocabulary, and the most frequently used
commands.
What is DOS?
DOS stands for Disk Operating System - an operating system gets your computer running and
controls the operation of your computer's activities. DOS manages the flow of information to and
from the various parts of your computer system.
To work with DOS it is necessary to choose commands which direct your system to perform
specific tasks. DOS includes commands which direct your system to perform tasks like moving
files from one disk to another, copying files and backing up existing files (backing up a file
means making another copy of an existing file just in case anything should happen to the
original. This is a practice we highly recommend).
The DOS prompt
The DOS prompt is where you type commands. The command prompt will be a drive letter
followed by a colon and a backslash. (A:\ for example) or a backslash followed by the name of a
directory(A:\MYNAME for example). The letter indicates which disk drive is the current drive,
DOS searches the current drive for the information it needs to process the commands you type.
To direct DOS to perform a task, you type a command and then press Enter.
NOTE: DOS is not case sensitive; therefore, a command can be entered in with CAPITAL
LETTERS, lower-case letters, or a MiXtuRe of the two.
Knowing the file extension:
There are many types of file now-a-days created by many package software with their identical
extension. Here I mention some familiar file format:
.sys
.com
.exe
.ini
.bat
.cab
.cat
.inf
.txt
system
command
executable
initialization
batch
cabinet file (installer)
security catalog
information
text
.doc
.xls
.mdb
.dbf
.pps
.htm
.jpg
.mpeg
.mp3
word document
excel worksheet
access database
foxpro database
power point slide show
hyper text markup language
joint picture group image
motion picture enhanced group
Directory Command
The DIRECTORY command is like a table of contents in a book. This directory will list the
following information:
Filenames
File extensions
Size of each file
Date and time the file was last updated.
create and store related files together. For example, one subdirectory could be used to store all
word processing files and another for all spreadsheet files.
1. Type: md info(any folder name) and press enter.
Move to the Parent Directory
DOS has a quick way to move from the current directory back to the parent directory.
1. Type: cd.. and press enter.
2. You will return back to the C:\> prompt
Move to a Subdirectory
Once you have created a subdirectory, to move to that directory, you will use the CHANGE
DIRECTORY command, a.k.a. CD.
1. Type: cd info(Sub directory name where u want to move) and press enter.
Move to the Parent Directory
DOS has a quick way to move from the current directory back to the parent directory.
1. Type: cd.. and press enter.
Move to Drive
1. Type: cd\ and press enter.
2. You will return back to the C:\> prompt.
List Subdirectories
1. Type: dir \*. and press enter.
2. All the subdirectories are listed.
NOTE: The backslash character \ directs DOS to read from the root directory. The *. requests
the listing of the subdirectories.
Copy a File into a Subdirectory
The COPY command lets you copy files from one directory to another.
1. Type: copy sales.bob info(sub directory) and press enter.
2. Type: dir info and press enter.
Copy a Group of Files into a Subdirectory from another subdirectory
When copying a group of files from the root directory into a subdirectory, it is necessary to use
the wildcard character * along with the COPY command.
1. Type: copy subdirectory(source) subdirectory(destination) and press enter.
2. All files should be listed in the destination subdirectory.
Copy same group of Files into a Subdirectory from another subdirectory
When copying a group of files from the root directory into a subdirectory, it is necessary to use
the wildcard character * along with the COPY command.
1. Type: copy *extension (source) subdirectory(destination) and press enter.
2. All files should be listed in the destination subdirectory.
Copy all Files in a Subdirectory or drive
1.Enter into a directory or subdirectory
2.C:\Type:copy *.* d: (destination) and press enter.
Copying all directory and subdirectory to destination
1. c:\> type XCOPY [source] [destination] [/E |
Engr. Abdul Kadar Muhammad Masum/ Assist.Prof.of IT/ DBA/ IIUC. Page number - 3
Color attributes are specified by TWO hex digits -- the first corresponds to the background; the
second the foreground. Each digit can be any of the below values.
0 = Black
8 = Gray
1 = Blue
9 = Light Blue
2 = Green
A = Light Green
3 = Aqua
B = Light Aqua
4 = Red
C = Light Red
5 = Purple
D = Light Purple
6 = Yellow
E = Light Yellow
7 = White
F = Bright White
Converts FAT volumes to NTFS.
CONVERT volume /FS:NTFS [/V]
volume Specifies the drive letter (followed by a colon), mount point, or volume name.
/FS:NTFS Specifies that the volume to be converted to NTFS.
/V
Specifies that Convert should be run in verbose mode.
EXAMPLES
C: Type convert d: /fs:ntfs
i.e. Convert the d: drive, which in this example is a FAT volume, to a NTFS volume. Note, if this
volume is anything other than FAT, such as NTFS or RAW, this command will generate an
error.
Exploring a file
1. d:\> type file-name.extension and press enter
Close the DOS
1. c:\ type exit and press enter
Some important commands:
C:\ type Shutdown -l and press enter
The command is used to log off the computer user account.
C:\ type Shutdown -r and press enter
The command is used to restart the computer.
C:\ type Shutdown -s and press enter
The command is used to shutdown the computer.
C:\ type Shutdown -f and press enter
The command is used to shutdown the computer by enforcing.
Engr. Abdul Kadar Muhammad Masum/ Assist.Prof.of IT/ DBA/ IIUC. Page number - 5