This article lists notable commands provided by the MS-DOS disk operating system (DOS), especially as used on an IBM PC compatible computer. Other DOS variants as well as the legacy Windows shell, Command Prompt (cmd.exe), provide many of these commands. Many other DOS variants are informally called DOS, but are not included in the scope of the list. The highly related variant, IBM PC DOS, is included. The list is not intended to be exhaustive, but does include commands covering the various releases. Each command is implemented either as built-in to the command interpreter, COMMAND.COM, or as an external program. Although prevailing style is to write command names in all caps, the interpreter matches ignoring case.
Commands
APPEND Sets the path to be searched for data files or displays the current search path. The APPEND command is similar to the PATH command that tells DOS where to search for program files (files with a .COM, . EXE, or .BAT file name extension). The command is available in MS-DOS versions 3.2 and later.
ASSIGN
Redirects requests for disk operations on one drive to a different drive. It can also display drive assignments or reset all drive letters to their original assignments. The command is available in MS-DOS versions 3 through 5 and IBM PC DOS releases 2 through 5.
ATMDM Lists connections and addresses seen by Windows ATM call manager.
ATTRIB
Changes or views the attributes of one or more files. Defaults to display the attributes of all files in the current directory. The file attributes available include read-only, archive, system, and hidden attributes. The command has the capability to process whole folders and subfolders of files and also process all files. The command is available in MS-DOS versions 3 and later.
BACKUP and RESTORE These are commands to backup and restore files from an external disk. These appeared in version 2, and continued to PC DOS 5 and MS-DOS 6 (PC DOS 7 had a deversioned check). In DOS 6, these were replaced by commercial programs (CPBACKUP, MSBACKUP), which allowed files to be restored to different locations.
BASIC and BASICA
Environment for programming in BASIC. IBM computers had BASIC 1.1 in ROM, and IBM's versions of BASIC used code in this ROM-BASIC, which allowed for extra memory in the code area. BASICA last appeared in IBM PC DOS 5.02, and in OS/2 (2.0 and later), the version had ROM-BASIC moved into the program code. Microsoft released GW-BASIC for machines with no ROM-BASIC. Some OEM releases had basic.com and basica.com as loaders for GW-BASIC.EXE. BASIC was dropped after MS-DOS 4, and PC DOS 5.02. OS/2 (which uses PC DOS 5), has it, while MS-DOS 5 does not.
BREAK Instructs DOS to check whether the Ctrl and Break keys have been pressed before carrying out a program request. The command is available in MS-DOS versions 2 and later.
CALL
Starts a batch file from within another batch file and returns when that one ends. The command is available in MS-DOS versions 3.3 and later.
CD and CHDIR
Sets the working directory or with no arguments displays the current value. Both names, CD and CHDIR, refer to the same command and are abbreviations of the phrase "change directory". The command is available in MS-DOS versions 2 and later.
CHCP Either displays or changes the active code page used to display character glyphs in a console window. Similar functionality can be achieved with MODE CON: CP SELECT=yyy. The command is available in MS-DOS versions 3.3 and later.
CHKDSK
Verifies and possibly fixes data integrity of a storage volume. The command is available in MS-DOS versions 1 and later.
CHOICE
Prompts the user to select one item from a set of single-character choices. The command was introduced as an external command with MS-DOS 6.0, Novell DOS 7 and PC DOS 7.0. Earlier versions of DR-DOS supported this function with the built-in switch command (for numeric choices) or by beginning a command with a question mark. This command was formerly called ync (yes-no-cancel).
CLS
The CLS or CLRSCR command clears the terminal screen. The command is available in MS-DOS versions 2 and later.
COMMAND
Start a new instance of the command interpreter. The command is available in MS-DOS versions 1 and later.
COMP
Show differences between any two files, or any two sets of files. The command is available in MS-DOS versions 3.3 through 5 and IBM PC DOS releases 1 through 5.
COPY
Makes copies of files. The command is available in MS-DOS versions 1 and later.
CTTY Defines the terminal device (for example, COM1) to use for input and output. The command is available in MS-DOS versions 2 and later.
DATE Displays the system date and prompts the user to enter a new date. Complements the TIME command. The command is available in MS-DOS versions 1 and later.
DBLBOOT
A batch file added to DOS 6.X Supplemental Disks to help create DoubleSpace boot floppies.
DBLSPACE
A disk compression utility supplied with MS-DOS version 6.0 (released in 1993) and version 6.2.
DEBUG
A primitive assembler and disassembler.
DEFRAG
Analyzes the file fragmentation of a disk drive and defragments a drive. This command is called DEFRAG in MS-DOS/PC DOS and diskopt in DR-DOS. The command is available in MS-DOS versions 6 and later.
DEL and ERASE
Deletes files. Both names provide the same functionality. The command is available in MS-DOS versions 1 and later.
DELTREE
Deletes a directory along with all of the files and subdirectories that it contains. Normally, it will ask for confirmation of the potentially dangerous action. Since the RD (RMDIR) command can not delete a directory if the directory is not empty (except in Windows NT & 10), the DELTREE command can be used to delete the whole directory. The deltree command is included in certain versions of Microsoft Windows and MS-DOS operating systems. It is specifically available only in versions of MS-DOS 6.0 and higher, and in Microsoft Windows 9x. In Windows NT, the functionality provided exists but is handled by the command rd or rmdir which has slightly different syntax. In Windows 10, the command switch is RD /S or RMDIR /S.
DIR
… excerpt ends here. Continue reading the full article.