Command Prompt: 5 basic commands you should know

Riyaz Hossain
2 min readAug 14, 2020

A command prompt (or just prompt) is a sequence of (one or more) characters used in a command-line interface to indicate readiness to accept commands. It literally prompts the user to take action. In this article, we will discuss 5 basic commands of the command prompt in windows.

1. How to change the directory (folder) in Command Prompt (CMD)

first of all, go to the command prompt. then write in the command prompt cd(change directory) space current drivename\foldername:cd c:\foldername then press the enter button from the keyboard.

N.B: if you want the folder name be automatic you should press the tab button from the keyboard after the drive name.EX: cd c:\ tab tab tab

photo by: Riyaz Hossain

2.How to get out of a folder in command prompt(CMD)

When you need to go one folder up form the current folder use cd .. the command.

photo by: Riyaz Hossain

3.how to clear the command prompt(CMD) screen?

to clear the command prompt screen use cls command

to clear the command prompt screen use cls command

4. How to change the drive in Command Prompt (CMD)

the shortcut command of changing drive is driveName: example: D:

the other command is cd /d D:\riyaz (cd /drive name drive name:\folderName )

change the drive location

5. How to view the contents of a directory in Command Prompt (CMD)

to view the all document and content of your current command prompt location the command is dir

to access a folder we can use dir command

by using dircommand we can open the folder and we can see some of the extra information about folder.

a command prompt is a powerful tool for windows. by using this tool we can work very fast.

--

--