CMD stands for โCommandโ but in Windows, it is known as Command Prompt. It is a Command-Line Interpreter which is provided by the Microsoft in Windows OS. This command prompt is used to execute the entered commands in the command shell to perform some advanced administrative functions like you can manage your file properties, system properties, user manager, etc. by using command lines So, letโs see what are the basic commands lines that can help you to interact with your operating system(window).
Table of Contents
Basic CMD Commands Line
1) systeminfo
โsysteminfoโ is a system information command that helps to show all the information of your system in the terminal. So letโs run this command in the terminal and see what itโll give usโฆ

As you can see in the given image its shows all the information about my system.
2) date /t
โdate /tโ is a command that helps you to show the current date. So, letโs try this command in the terminalโฆ

As you can see the date when I was using this command in my system.
3) time /t
Itโs exactly the same command as โdate /tโ command. This command helps you to show the current time of your system. So, letโs try this command in the terminalโฆ

As you can see the current time when I was using the system.
4) ver
โverโ is a version command line that helps you to show your current version of your system.

As you can see my current version of my system is Windows version 10.0.22000.194.
5) dir
โdirโ is a directory command that helps you to display all the files and folders from your current directory. As you can see in the above image my current directory is C:\Users\ankus. So, letโs try this command to check how many files and folder are there in my current directory (C:\Users\ankus).

As you can see in my current directory (C:\Users\ankus) there are only one file have (CMD Command Line.txt) and 12 folders(Contacts, Desktop, Documents, Downloads, Favourites, Links, Music, OneDrive, Pictures, Saved Games, Searches and Videos)
6) cd
โcdโ is change directory command. It helps you to change your current directory to another directory. As you can see in the โdirโ command image there are 12 folders that have. So, letโs try to move into the folder โDownloadsโ.
To move to the Downloads directory so we have to write โcd Downloadsโ in the terminal. letโs seeโฆ

As you can see we have successfully changed our directory from (C:\Users\ankus) to (C:\Users\ankus\Downloads).
7) mkdir
โmkdirโ is a command that helps you to create a new directory/folder in your system. So, letโs try this command.
Before trying this command first letโs check how many folders are there in our current directory. letโs checkโฆ

In our current directory there are two folders (files and program). So, now letโs create a new directory/folder with the name of โcomputerstudypointโ by using mkdir command.
To create computerstudypoint directory/folder we have to write โmkdir computerstudypointโ command in the terminal. letโs try it..

As you can see the computerstudypoint directory has been created.
8) rmdir
โrmdirโ is a remove directory command that is used to remove/delete the directory. Well we recently created a computertstudypoint directory with the help of โmkdirโ command. So now letโs try to remove this directory with the help of this command. Letโs remove itโฆ
To remove a computerstudypoint directory so we have to write โrmdir computerstudypointโ command in the terminal. letโs seeโฆ

As you can see the computerstudypoint directory has been removed.
9) Creating file commands
As such, there is three-way to create a new file.
i. By using โtypeโ Command
Well, the โtypeโ command is used to display the content of the text file in the terminal. But it is also used for creating empty files. The command for creating files is โtype nul > yourfilename.txtโ. let our file name be CSpoint.txt. letโs try to create it in the terminalโฆ

As you can see the โCSpoint.txtโ file has been created.
ii. By using โechoโ command
The โechoโ command is used to create a non-empty file.
To use this command we have to write โecho some textcontent yourfilename.txtโ. Let our text content is โHello guys welcome to computertstudypointโ and our filename is โCMD.txtโ
Letโs try it outโฆ

As you can see the โCMD.txtโ file has been created with some content โhey guys welcome to computerstudypointโ.
iii. By using โnotepadโ command
โnotpadโ is the easy way to create a new file. To use this command we have to write โnotepad yourfilname.txtโ. Let our new file name be โprompt.txtโ. letโs try to create new file in the terminalโฆ

As you can see the โprompt.txtโ has been created. And, the left side of prompt.txt has 0 which means this file is totally empty there has no data or 0 data.
10) del
โdelโ delete command that helps to delete all the files of our system. letโs remove some files like I am going to remove all those these files which I recently created (CMD.txt, CSpoint.txt, and prompt.txt), To delete these three files so we have to write โdel CMD.txt CSpoint.txt peompt.txtโ in the terminal. letโs try this commandโฆ
To dele

As you can see the three files which I created recently have been deleted.
11) cls
โclsโ is a clear command that is used to clear all the text of the terminal.


As you can the โclsโ command has cleaned our terminal.
11) exit
The โexitโ command is used to exit the terminal window. I donโt think I should show you this command in the terminal๐ .