Read Mode
Default

What is CMD Actually? | Batch Basics | By kvc

What is CMD Actually? | Batch Basics | By kvc

Long Long Ago, When the computers just started taking over the humans for the sake of increasing human comfort. We are talking about the time, when computers were not that much light and easy to use. So, Computers were a hard nut to crack. And People who can operate them, were considered as Intelligent Aliens. There was no Mouse to control the computer directly by Hand clicks. But, we still got the Classic Keyboard, to control it.

Because of these conditions, An interface (Black Screen) was developed for handling the computer simply by writing some words. These words were called Commands. Later, This Black Screen was officially launched as MS-DOS by Microsoft. (not sure about the first release of this interface by any other Organisation).


MS-DOS - First Official OS by Microsoft

So, This interface is generally considered as Command Line, because You need to write a line of command on the screen. After pressing Enter on keyboard, your commands will be executed in the computer. This is the traditional method of interacting with the computers. But, after the introduction of GUI interface (after Windows 98, XP, vista, 7... etc.), you can control almost everything with the mouse. So, Now days No-one knows about that classic CUI interface, which is much powerful than today's GUI.
GUI: Graphical User Interface (Mouse dominates Keyboard)
CUI: Character User Interface (with Keyboard only)
The List (or combination) of these commands saved in a simple text file, is called as a Batch File. Thus, The people with the knowledge and usage of These commands are generally called Batch programmers, Thus the method is called Batch Programming.
Windows still uses many Batch Files in their Operating system for various functionality. You can find these files in your C:\Windows folder. Go into the Folder and Press F3 Button from your keyboard, Search for '*.Bat' in the search bar. You'll find many files with .Bat extension. These all files are Batch files, used by Windows.


Windows Using Batch Files | What is CMD? | By Kvc
An Example of Windows Batch File Usage | Found in my C:\Windows Search
You can understand CMD as an Advanced Windows version of MS-DOS. Which is almost similar to the classic version. But in CMD you have some additional functionality provided by Microsoft. They've added these functions, just to make it simple and easier to interact with the boring CUI, whenever you'll need it.


GUI is Actually simplified CUI
Now, Any click or key-press you are performing in your current GUI Operating system (maybe, Windows or Linux, Mac etc.) is indirectly a command you are creating in the system. And this command is further being processed in the background, to make the required action possible. This scenario can be understand by the following example:

Case: You are trying to open a Folder and Wanted to see the files present inside it.
Solution:

  • GUI= Simply Double Click on the Folder.
  • CUI= Just Type the following commands in CMD
        • CD "Folder_Name"
        • Dir /b
Where CD will take you inside the required folder, and Dir /b will show you the content in the current folder. (CD: Current Directory, Dir: Directory Information)
And you've successfully achieved your target of seeing all the files in the folder. But the output on the CMD will not be as much formatted and arranged as in GUI. So, Don't try to use the second method for your daily usage, just to look cool against your friends. Although, you can create your Own FIle Manager by understanding this simple concept. #TheBATeam has created one... Have a look at it also. 
Also Read: File Manager v.1.0 | By Kvc
This article is dedicated to all those friends, who keep on asking me this question, What is CMD Actually? Some of my favorite phrases are: "You keep on saying CMD, CMD, CMD - What is CMD Actually?", "Hey! Whats the Deal with CMD?", "What is that Black Screen you keep on talking about in videos" ... Thanks for inspiring me guys. I really appreciate your efforts to encourage me more about my work. And interactions with you all gave me idea of this article. Special thanks to... Sudha Rani, Maeru jain, Pankaj Sharma, Sandeep Singh, Namish Kashyap. Pardon me, If someone is left. But They all talked about my work, whenever I met them. So, its a kind of reminder to do my work perfectly and honestly. Thanks to you all again.

You can also motivate me, via showing your love through comments. Or by asking your queries, correcting me in article if there's mistake in explanation. Have Fun! Enjoy Your Life!


Keep Learning, Keep Sharing...
Be Happy, Spread Happiness...

#TheBATeam

2 comments:

Powered by Blogger.