Default

Basic DOS Commands

Basic DOS Commands

In this tutorial, you will discuss basic MS-DOS commands testers use during the testing activities. DOS commands are entered at the DOS prompt using the Command Prompt.

Some of the basic DOS commands are as follows:

  • DIR
  • CLS
  • CD

DIR

The dir command displays the list of files and subdirectories in a directory. Directories are folders that contain files. Unlike files, directories do not have extensions. DOS commands are not case-sensitive.

Basic DOS Commands

 

CLS

The cls command clears the current display screen and returns control to the prompt. This command is generally used to wipe out the previous command(s) output on the screen. We can start fresh with a blank command window.

cls command

 

Command prompt after the cls command is executed.

 

 

Change directory (CD or CHDIR)

The cd command stands for Change Directory. It is used to change the directory, and you can specify the directory in the command.

 

For example, if we want to change the directory to drivers, type the following command at the prompt and press Enter:

cd D:\Drivers

Now the Windows prompt should change to D:\Drivers>

Change drive

To change to a directory on a different drive, we must type the drive’s name. For example, to change to the D drive, you must enter D: or d:

 

Change Drive Windows

 

TesingDocs Youtube Channel