DOS Commands Reference
Changing the Default Drive
To change the default drive, simply type the letter of your choice followed by a colon. The
new default will be listed in subsequent DOS prompts.
Example:
C:\> D: [Enter] → Changes the default drive from C to D.
D:\> C: [Enter] → Changes the default drive from D to C.
md or Make Directory Command
DOS allows you to create a folder or a directory using the md (make directory) command.
Example:
C:\> md assets → Creates a directory or folder named 'assets' in drive C.
Changing Directory Command
This command allows you to move from one directory to another.
Example: If you are in the C:\Docs directory and want to move to a directory named
'business':
C:\Docs> CD business [Enter]
To move to a directory not directly under your current directory (e.g., C:\
ProjectCompleted):
C:\Docs> CD \ProjectCompleted
Other Special CD Commands
CD.. → Moves you one directory up.
CD\ → Moves you back to the root directory.
Example: If you are in C:\Docs\Business and want to go back to root:
C:\Docs\Business> CD\
DIR (Directory) Command
The DIR command lists the names and sizes of all files located on a particular disk.
Examples:
C:\> dir → Shows directory of drive C.
C:\> dir d: → Shows directory of drive D.
C:\> dir /w → Shows directory in wide format (horizontal listing).
C:\> dir /p → Displays files one screen at a time.