DOS Command

DOS (Disk Operating System) uses a command-line interface (CLI) to perform file, directory, and system management tasks. Below are essential DOS commands with examples.

Opening Command Prompt (CMD)

  • Press Win + R, type cmd, and press Enter.
  • Or, search for Command Prompt in the Start menu.

File & Directory Commands

CommandDescriptionExample
dirLists files & foldersdir C:\Users
cdChanges directorycd Documents
cd..Moves up one directorycd..
md or mkdirCreates a new foldermkdir NewFolder
rd or rmdirDeletes a folderrmdir OldFolder
delDeletes a filedel file.txt
copyCopies a filecopy file1.txt D:\Backup
moveMoves or renames a filemove file1.txt D:\Documents
renRenames a fileren oldname.txt newname.txt

System & Disk Commands

CommandDescriptionExample
clsClears the screencls
timeDisplays or changes system timetime
dateDisplays or changes system datedate
verShows DOS versionver
volDisplays disk volume namevol C:
chkdskChecks disk for errorschkdsk C:
formatFormats a disk driveformat D:
exitCloses command promptexit

Viewing & Editing Files

CommandDescriptionExample
typeDisplays file contentstype file.txt
editOpens a file editor (old DOS)edit file.txt
notepadOpens file in Notepadnotepad file.txt
Qus. 1 : While running DOS on a PC, the command that is used to duplicate the entire diskette?

  1. COPY
  2. DISKCOPY
  3. CHKDSK
  4. TYPE
Qus. 2 : Which command will be used to close a terminal window?

  1. end
  2. close
  3. exit
  4. none
Qus. 3 : Which command is used to create a directory in DOS

  1. CREATE
  2. CD
  3. DIR
  4. MD or MKDIR
Qus. 4 : <p>Match the following DOS commands with their correct functions.</p><p><br></p><table class="table table-bordered"><tbody><tr><td><b>Commands</b></td><td><b>Functions</b></td></tr><tr><td>1. DIR</td><td>A. Deletes a file</td></tr><tr><td>2. DEL</td><td>B. Copies files from one location to another</td></tr><tr><td>3. MD</td><td>C. Displays a list of files and directories</td></tr><tr><td>4. COPY</td><td>D. Creates a new directory</td></tr><tr><td><br></td><td>E. Removes a directory</td></tr><tr><td><br></td><td>F. Formats a disk</td></tr></tbody></table><p><br></p>

  1. 1-C, 2-A, 3-D, 4-B
  2. 1-B, 2-C, 3-A, 4-D
  3. 1-D, 2-E, 3-B, 4-A
  4. 1-F, 2-D, 3-C, 4-E

Programs

Latest Current Affairs 2025 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad