-->

Pages

Wednesday 8 March 2017

Cool Command Prompt Tricks In Windows !

Since the evolvement of Graphical User Interface, the Command Line Interface has taken a back seat, but still there exists some cool command and tricks that can be implemented in Command Prompt and can really prove helpful and can provide faster result in comparison to the same thing when done with the help of GUI. If you have ever used Unix or Linux Operating System then you surely must be knowing the power of command prompt or in case of Unix or Linux it is called as Shell, although Windows Command Prompt is not as powerful as Linux's or Unix's still it got some cool utilities that I am going to uncover in this article.

I have already written an article on Network Related CMD Commands and if you want to read about them you can check it here.

Let us get started with some of the amazing and cool tricks of Command Prompt:
  • Most of the time when we want to navigate to a folder or a directory using cmd, we tend to use Change Directory Command that is cd, but using cd can sometimes prove a little bit hectic if you want to navigate to a directory which is pretty deep or there is case of typing a very long directory address. You don't need to worry about this there is a cool trick that can help you to get rid of this problem, just get inside the folder from where you want to open a file or execute a file and then just press shift+right click there and you will see an option saying Open Command Window Here, in the right click menu option like this.
  • .
    I have navigated inside the folder, which I want to open in CMD and just pressed SHIFT+right click there and see there is the option like Open Command Window Here.

  • The same thing can also be performed by simply navigating to the folder which you want to open in cmd, and then in the address bar simply type cmd.

  • Once you type in the cmd, in the address bar and then press enter, the Command prompt will get open.
  • There might be requirement of copying the result of the command execution, although you can copy is by right-clicking on the command prompt and then by either selecting, select All option or you can select mark option and then by pressing shift and using arrow keys you can mark the result of the command, there is a cool trick exist for copying the result of command execution into the clipboard, you simply need to use the |(pipe) symbol along with the clip command after any other command. like ipconfig | clip, it will copy the whole result of ipconfig command into the clipboard and then you can paste it wherever you want. Just type in the command that you want to use and associate it with the pipe(|) and clip.

  •  If you are a die-hard fan of Star Wars, then you can watch it here in command prompt as well in ASCII format, It will present the Star Wars Movie IV episode, It will be in ASCII format but I can guarantee you it will be awesome fun, just type the following command in cmd window, telnet towel.blinkenlights.nl and press enter , after this just sit back and enjoy Star Wars like never before, make sure to have popcorn and cold drinks.
  • You want to hide some folder or some file and you don't want anyone to access it other than you, now you will be saying that you can do this, by simply checking the Hidden property of that particular file or folder, you can surely do this, but when someone check the option of show hidden files, then these files will be visible to them, don't worry you can hide your files and folders using cmd that won't be visible even in the case of show hidden files, you simply have to type in the following command Attrib +h +s +r name of the folder/file, this command will hide the folder or file that you specified to make sure you are inside the correct directory, now when you want to make it visible simply type Attrib -h -s -r name of the folder/file, it will make it visible again.

  • Now if you ever get bored of using the same default color combination that CMD comes with, you can change it by using the color command, just type color --help to see all the available option associated with the color command and then execute it.


  • You can also change the default title of CMD window, by using the title command. just type title followed by whatever the title you want to have, for example, title MyConsole.

  • Now if You want to have a look at the command history, you can simply press F7 key and the command history will be visible in front of you.

That's all in this article of mine, I hope that these awesome and cool tricks can really improve the experience of using the command prompt and now you guys will never get bored while using the CMD window.

No comments:

Post a Comment

Thanks for Your Time!