It may seem to be completely useless at some point but in reality Command Prompt or often called CMD is one necessary tool that every user must be aware of. So, here are 10 must know Command Prompt Commands and tricks that may be both essential as well as cool to work with in this Command Prompt tutorial.

1.) DIR ->  DIR stands for ‘Directory‘ or it is simply a ‘folder’. This command lets us see the contents of the directory.

This is what Command Prompt screen looks like and now it’s command is under User\Abhishek folder and when I write dir and hit enter then Bingo!

Now you can see the contents and sub-folders of the directory.

2.) CD -> This command lets us access a folder or sub-folder after having a look at the directory.

Just type cd folder name

Like here if I want to access Desktop so, I write cd Desktop and voila we are in Desktop.

3.) CD.. -> This does exactly the opposite of what cd command does, it takes you one step back into the previous directory. So now if I want to go back to ‘Abhishek’, I write cd.. and I am back to ‘Abhishek’.

4.) MD -> Make Directory that is, it will create a directory.

Now suppose if I want to create a directory as 123, so, I just type md 123 and it will create a directory.

5.) RD -> It simply removes a directory. Now I want to remove the previous directory so I write rd 123 and it will delete 123.

See 123 has been removed or deleted.

6.) Using Function Keys in Command Prompt: Most of the users are not even aware of what a function key does in CMD. Here is a list of CMD commands using Function keys.

F1: Pastes the last executed command (character by character)(For eg: If my previous command was dir and I press Fn+F1 then it will show ‘d’ and for Fn+F2 ‘i’ and ‘r’ for Fn+F3)
F2: Pastes the last executed command (up to the entered character)
F3: Pastes the last executed command
F4: Deletes current prompt text up to the entered character
F5: Pastes recently executed commands (does not cycle)
F6: Pastes ^Z to the prompt
F7: Displays a selectable list of previously executed commands
F8: Pastes recently executed commands (cycles)
F9: Asks for the number of the command from the F7 list to paste

7.) Command to view the entire tree of a directory: This lets us see the folder and subfolder for a specified directory. After getting into the directory simply type tree after that.

And as you can see it is displaying a tree with proper folder and subfolders.

8.) Computer’s Network information: Anytime if you simply write ipconfig/all, you will get all the necessary details about your computer’s network.

9.) Change Title Of Command Prompt Title Bar: We can define any title as per our choice. For eg. I want to have a title named ‘CMD Tutorials @ Yourspot’, then I simply write title CMD Tutorials @ Yourspot and hit enter.

See the title is changed now.

10.) Making a Bootable Drive using CMD: This is a simple process and you can follow this link by clicking here.

Have fun and keep trying them and now you have a basic idea about how to use Command Prompt.


Leave a Reply

%d bloggers like this: