Site icon TestingDocs.com

Basic MS-DOS commands to know for Testers

Overview

In this tutorial, we will discuss basic MS-DOS commands that are used by Testers during the testing activities. DOS commands are entered at the DOS prompt using the Command Prompt.

https://www.testingdocs.com/questions/how-to-open-command-prompt-on-windows-10/

DIR

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

 

CLS

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

 

Command prompt after the cls command is executed.

 

 

Change directory (CD or CHDIR)

The cd command stands for Change Directory. This command is used to change the directory. We 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 name of the drive. For example, to change to the D drive, you must enter D: or d:

 

Exit mobile version