Chma - Dos Commands
Chma - Dos Commands
A disk operating system (DOS) is a type of operating system that manages data on a disk storage
device. It was widely used in the 1980s and 1990s, particularly on IBM-compatible personal
computers. Understanding DOS commands is essential for users who still rely on DOS for
certain tasks or for those who want to learn about the history of computing. DOS commands are
also useful for troubleshooting and fixing problems on older systems. The purpose of this article
is to provide an overview of basic and advanced DOS commands, as well as tips for using them
effectively.
DOS Commands are instructions that allow Windows users to conduct tasks on files and
folders. As you may know, a file is a container for a collection of information or data, and a
directory is a collection of files. These are case insensitive.
A disk operating system (DOS) is a type of computer software that helps manage files and
data stored on a computer's disk drive.
It is like the traffic cop for a computer's hard drive, organizing and directing the flow of
information.
DOS used to be the primary operating system used on older computers, but nowadays it is
mostly used for specific tasks or for troubleshooting older systems.
File management − DOS provides a command-line interface for managing files and
directories on a disk storage device. It allows users to copy, move, rename, delete, and view
files and directories.
Program execution − DOS allows users to execute programs or applications directly from
the command line. This was an important feature in the early days of computing
when graphical user interfaces (GUIs) were not yet widely available.
Troubleshooting and system maintenance − DOS can be used for troubleshooting and
repairing issues on older systems, as it provides a low-level interface to the hardware and
file system.
Features of DOS
There are various features of the disk operating system. Some features of the
operating system are as follows:
1. It is a free OS.
2. It doesn't support GUI.
3. It is a single-user OS.
4. It is a 16-bit OS.
5. The mouse could not be used to operate it, i.e., the input is provided via the
basic system commands.
6. It aids make file management, e.g., creating, editing, deleting files, etc.
7. It has a text-based interface and relies on text and codes to function.
Internal Commands − Internal commands are the commands that are built into the
command interpreter or the command prompt of the DOS operating system. These
commands do not require a separate executable file to run and can be used directly from
the command prompt.
External Commands − External commands in DOS are commands that are not built into
the command interpreter, but are separate executable files that need to be located in the
system's path or directory to be executed from the command prompt. External commands
are usually more complex and are used for more advanced tasks than internal commands.
Internal commands are built into the command interpreter (usually COMMAND.COM or
CMD.EXE) and are loaded into memory when the operating system starts. These commands
don't require a separate executable file, and they are executed directly by the command
interpreter. Here are some common internal DOS commands:
1. DIR:
Example: dir
2. CD (Change Directory):
Example: cd new_directory
3. COPY:
4. DEL (Delete):
5. REN (Rename):
8. TYPE:
Example: cls
10. EXIT:
Example: exit
External DOS Commands:
External commands are separate executable files (.COM or .EXE) that reside as standalone
programs on disk. These commands are loaded into memory only when they are executed and
are separate from the command interpreter. Here are some common external DOS commands:
1. FORMAT:
Example: format C:
Example: chkdsk C:
3. XCOPY:
4. TREE:
Example: tree
5. ATTRIB (Attribute):
6. EDIT:
7. DEBUG:
Function: A low-level debugging tool for examining and altering memory and
files.
Example: debug filename.exe
8. DISKCOPY:
Example: diskcopy A: B:
9. MORE:
10. PING:
1. CD (Change Directory):
Example: cd directory_name
Example: dir
3. COPY:
4. DEL (Delete):
5. REN (Rename):
Remove a directory.
8. TYPE:
Example: cls
10. EXIT:
Example: exit
11. FORMAT:
Format a disk.
14. TREE:
Example: tree
15. XCOPY:
16. VER:
17. DATE:
18. TIME:
19. ECHO:
20. SET:
21. ASSOC:
Example: assoc
24. FIND:
25. PATH:
26. PROMPT:
27. RENAME:
28. SHIFT:
Example: shift
29. SORT:
30. SUBST: