All the commands given to a computer is executed by this CMS. Which is why, CMD plays an important role in our PCs. You might be wondering why you should use command prompt when you can change your computer’s settings the easy way.
Command prompt is very powerful and you can do anything using it. You will have more freedom to boss around by customizing loads of things. People who have atleast some knowledge about this prompt know that learning few things about it will not be harmful. Instead they can save some time for themselves while working. These tricks mentioned below will help you out to ease up your work. These commands can be used by both the beginners and users who already know a lot about command prompt.
Using Command Prompt in Windows:
Probably you might be knowing this which is why you are reading this right now! But, as blogger its my responsibility to explain you everything from scratch. You just have to go on the Windows Search option and type CMD. This will pop up a small black window inside which you have to use your commands.
Another way to do it is, press Windows + R which will open the Run window. Then type and enter CMD or cmd anything will do.
Here are few tricks command Prompt:
1. Find Help for almost each Command:
This is a very useful command specially for the budding users. Users familiar with prompt can also gain some knowledge about it if they didn’t know this method. One can easily gather some information on almost each and every command they give by using CMD prompt.
All you have to do is use your keyboard and insert '/?' at the very end of any command about which you want to know. For instance, try typing 'ipconfig/?' this will provide you with the information you need to know. The information you get consists a detailed description of what is the function of that command and the process which is used in executing the command. It might even provide you with few examples.
2. Command History:
This command will help you find some command you might have used earlier which you don’t recall. This will bring down a list of all the commands you’ve used previously. Type the 'doskey /history' in your CMD and enter.
3. Running Multiple Commands:
If you like multitasking then you can use two commands together. You can use this command to ease your work. Add the attribute “& &” between the commands which you want to proceed with. For instance, for running both ipconfig and mspaint type 'ipconfig&&mspaint'
4. View the driver list:
As the name suggests, this command will help you know all the drivers which are currently installed in your PC. Insert the command driverquery which will present you with a detailed report of the driver’s name, file type, and the few more information related to it.
5. Send the Output directly to Clipboard:
Frequently, one might want to save outputs of certain commands. To do this you do the regular process of copy pasting. But there is another way of doing this, by sending the output of the command directly to clipboard. You can use the command '|clip' in front of any command.
For example for ipconfig, you can input the command as ipconfig|clip.
6. Terminate a Command:
This might make you very happy because one might think they can terminate any command! Well that’s not the case. You can surely use this trick to a lot commands you’ve pressed enter to but some commands can just not be cancelled. You can press Ctrl + C to terminate a command.
7. Making CMD colourful:
If you are bored about anything just make it colourful and you’ll feel all lively. Even for command prompt. It is not as boring as it looks, you can make it colourful by clicking (right-click) on to the top side corner of CMD and choose the properties option. You will find a colour tab then search for the option set up the background and text colour.
8. Setting up WiFi hotspot from Command Prompt itself:
There is groundwork you’ll have to do before starting with the commands. First, go to Control Panel and then hit on the Change adapter settings further go for Network & Sharing Option. Further click the connection which you currently use and then go to properties. Now, search for a shared tab and tick the option 'Allow other network users to connect through this computer’s internet connection.' by clicking on it.
Using the administrative privileges (described in detail in the next point), open the command prompt and use the below mentioned commands:
A. netsh wlan set hostednetwork mode=allow ssid=Youthotspotname key=yourpassword
After you turn it on, use the commands given below to initiate the Wifi hotspot:
B. netsh wlan start hostednetwork
If you want to stop this hotspot, use this:
C. netsh wlan stop hostednetwork
Fortunately, Windows 10 users have the freedom to set up a Wifi Hotspot with the built- in facilities they are provided with.
9. System Scan to fix problems:
This process will need you to run the command prompt as an administrator, also referred as administrative privileges. To run CMD as an administrator, you’ll first have to search for command prompt in the system search. Then right click on the command prompt option and select Run as Administrator.
Then use the command 'sfc /scannow' to scan for any problems or corrupt files. This command will automatically fix any problem existing in your system. So, enjoy! This is by far the best hack I discovered lately.
10. Utilizing Batch files:
Batch files are really effective when you need use many commands for repetitive use. This is where batch files come into use. You can reduce your efforts of typing all the commands over and over again by running batch files. All you to do is make a batch file with all your commands in it.
11. Improve your Internet:
Everyone goes through the struggle of improving the Internet speed. And the struggle is real. No matter how much we complain about it, it does not fix our problems. I have a few steps for you to carry out to help you with this problem:
A. Know the Current Speed of your Internet:
Sending ping packets to default gateway will help you to check your internet speed. But before running any of these commands open command prompt as an administrator.
You can get the details of your network’s default gateway by using command 'ipconfig /all'. After gathering the default gateway, use the command 'ping –t (enter the IP of your default gateway)' and press enter. There will be a column of the time slot which will show you the time it’s taking to get an acceptance for the gateway. If the time it takes is low then your network is fast.
B. Flushdns and improve the Internet Speed:
There is a lot of data that becomes old information and gets piled up for weeks and months. If we get rid of this then you can prepare your system for new data in the DNS Resolver Cache.
By typing the command 'ipconfig/flushdns' you can get rid of the data. Initially this your browsing speed might become slower in search of new DNS. But eventually the loading time will catch up speed.
C. Enhance your Internet Speed:
Use these commands and see what happens step by step:
If the Receive Window Autotuning level is not depicted as Normal the use the below mentioned steps:
a. netsh int tcp set global autotuninglevel=normal
b. netsh interface tcp show heuristics
If the Window Scaling heuristics is shown as enabled then that means, Microsoft is restricting the internet connection you are using. To overcome this problem use the command below and hit enter:
c. netsh interface tcp set heuristics disabled
After entering this command the system will accept your command with an ‘OK’ message. As a result your internet will speed up.
You can check the time column to know the Internet speed using the ping-t command given above.
12. Use CMD to know the password of the Wifi Network:
You can use this during emergencies but I expect you not to misuse it. I feel like an evil person right now to share this with you. Anyway, lets unveil this secret.
Start the command prompt programme as an administrator.
Next you have to go see all the connections stored in your PC that you’ve used from the beginning. For this, use the command ‘netsh wlan show profile’. As soon as you press enter, the system will present you with the list of WiFis you have connected to till date.
Then to know the WiFi password of any network, use this command and hit enter, ‘netsh wlan show profile WiFi-name key=clear’ This command will present you with all the details of the network. You’ll have to check for the password under Security Settings in the key content. I cross checked these using these commands on my own network. So there’s no doubt it works! Feels like ultimate power.
13. Using Function keys for more control:
The F keys or the Function keys are of major use when it comes to command prompt. You can do the following using the F keys:
F1: You can easily paste the last command (character by character) you executed
F2: You can easily paste the last command (up till the entered character) you executed
F3: Easily paste the last command executed
F4: Will delete the Current Prompt Texts till the entered character
F5: Copy Pastes the executed commands recently used (doesn’t cycle)
F6: Will paste ^Z in the prompt
F7: Provide you with a list of selectable commands executed recently
F8: The recently executed commands are pasted (it cycles)
And so goes on the list of the F keys and their functions.
Well, Command prompt is used for recovering your system from several viruses. But, be careful with this. You might even want to misuse the power of command prompt. All these hacks are for you to know the power of this programme and only use t for good purpose. Let us know which commands you use for making your work easier in the below mentioned comments.