9 Useful CMD Tricks To know

Leave a Comment
You don't need me to tell you how important Command Prompt (CMD) in Windows is. Everything you can do in Windows using GUI can be done using CMD. Well, The CMD bring all the necessary tools under one simple window. But the worst part of CMD is to remember the commands. However, Windows tried to make it easier for us by providing "HELP" command. In this post, We are going to some list of the cool CMD commands which will help you do super cool stuffs  using the Command Prompt.

useful cmd tricks

#1. Change color scheme Of CMD

The first thing comes to mind when we see CMD windows is "Boring". Most people don't like the black and white color scheme of CMD. So here is a way to make it little colorful and a bit more attractive.
color /?
This command will get you a list of 8 colors that you can set as font color. Here is how to change the background color if you want to change.

Also read: bigo live pc app download.

Step 1: Right click on CMD window title bar.

Step 2: Click on "Properties" and go to "Colors" tab.

Step 3: Select the color you want, and you are all done.

#2. Copy CMD Output to clipboard
This command is really helpful if you want to process the output after execution. This command will copy all the generated output to the clipboard for further use. Note that the CMD will not show the output, it will just copy the whole thing to the clipboard.
<your_command> | clip
Replace "<your_command>" with your command to copy the output. For example, If you want to copy the contents of the directory, just write dir | clip and all the output will be copied to the clipboard. #3. Abort a running command Did you ever accidently run a different command that risked your precious data? Well, this will never happen again. After reading this, you can abort the command before it harms your precious data. After you enter the wrong command, just press "Ctrl + C" to abort running the code.

Also read: the best wahl shaver reviews

#4. Check disk for errors

This one is crucial when your USB got some disk errors, and you need to fix them. Just open CMD and type
chkdsk /f D:
Here "D:" is the drive letter i want to check for disk errors. Also remember that you should run CMD in elevated mode because this command requires Administrator Privilage.

#5. Function Keys in CMD

Function keys really gives you wings to fly in CMD. There are lots of works you can easily do with the function keys. You can see the command history, run previous command and many other shortcuts which will make your day to day task more easier.
F1 : Repeats the letters of the last command line, one by one
F2 : Displays a dialog asking user to "enter the char to copy up to" of the last command line
F3 : Repeats the last command line (Similar to DOSKEY)
F4 : Displays a dialog asking user to "enter the char to delete up to" of the last command line
F5 : Goes back one command line
F6 : Enters the traditional CTRL+Z (^z) (End-Of-File)
F7 : Displays a menu with the command line history (Similar to DOSKEY)
ALT + F7 will clear the command line history
F8 : Cycles back through previous command lines.
F9 : Displays a dialog asking user to enter a command number, where 0 is for first command line entered

 #6. Save output to a file

Saving command output to a file can also be done by copying the command output in clipboard however this method will do the work faster. All you have to do is to type in you command followed by ">" and then the filename.
dir > output.txt

#7. Copy Selected region to clipboard

Unlike the 2nd one, this one will allow you to copy specific length of output to the clipboard. Just like we do in MS Word, Notepad, and other text documents. Here is how to do that.

Step 1: After running your command, press "Mark"

Step 2: Drag the mouse and select the region you want to copy.

#8. See network information

This command will let you see and configure the network settings right from the command line.

This is a powerful command and has many options to configure the network settings. To see all the available commands just add the "-help" at the end of the command. As mentioned above, the "-help" will give you the pieces of information about the command preceding it.

This one lets you ping the server to check whether the network communication can be established or not. Here we are pinging the localhost.

#9. Find IP Address of a Website

tracert www.google.com

The DNS let you grab a fancy word that can be remembered easily instead of IP address. This way you never know which IP you are visiting. Above command will reveal the IP address of the website. Use it however you want. Visiting the obtained IP will land you on the actual site.

Also checkout: the best braun handblenders


If you think this article was worth reading "Useful CMD tricks" feel free to share it on your social media profiles, it will make others get benefited out of you then if you have any suggestions or queries feel free to drop them through the comment section right below
by Ashwin Singh

Ashwin Singh is a blogger. He enjoys to write post and share tricks. He is a student. He is behind this blog.

Follow him @ Twitter | Facebook | Google Plus

No comments:

Post a Comment

Note: only a member of this blog may post a comment.