30 C
Jaipur
Saturday, October 31, 2020

27 Useful Windows Command Prompt Tricks You Might Not Know

Must read

A Brief History of This Ambitious Project

Sensing the tech trend, Ubuntu tried its hands on creating a Linux-based mobile operating system. The first announcement came a decade back and six...

Atmanirbhar Apps by Mitron Launched to Promote Indian Apps

From the company that brought you Mitron, a TikTok-like video app, comes a new app ‘Atmanirbhar Apps’ that aims to promote apps made in...

How to Play PUBG Mobile in Restricted Regions

PUBG Mobile is one of the best battle royale games and has a community all over the world. Its Classic Deathmatch is pretty popular...

Reliance Jio Becomes First Telco to Cross 400 Million Subscribers in India

At its latest earnings call on Saturday, India’s largest wireless carrier, Reliance Jio, announced that its subscriber base has now crossed 400 million (40...

We talk about Command Prompt in our Windows 10 tutorial posts quite often. Some people unknowingly refer to commands as Command Prompt codes. Speaking of which, there exist tons of Windows Command Prompt tricks that you can learn, use, and impress your friends.

For example, some people may not know how to abort a command or how to watch Star Wars in Command Prompt. Here, we are going to tell you about such interesting Command Prompt tricks.

Windows Command Prompt might look like a black and white world to some users. But the experienced users know the power of Command Prompt and use different cool command hacks and tricks.

So, to make your Windows Command Prompt experience better, in this article, we are going to tell you about some useful Command Prompt tricks that’ll save some extra clicks.

Don’t forget to check out our extensive list of A to Z Windows CMD commands in your free time.

How To Use Command Prompt In Windows 10?

Maybe I don’t need to tell you this. But those who don’t know, you can fire up the command prompt by typing CMD in Windows Search. Right-click on CMD to run it as an administrator.

Alternatively, you can also open Run (Windows + R) > type cmd and press enter. It doesn’t matter whether you’re using Windows 10 or older version, the method is the same.

27 Useful Windows Command Prompt Tricks

1. Command History

Using this command, you can track down your command history. This will turn out to be useful when you are trying to look for some command that you’ve used in the past, but can’t remember.

doskey /history

2. Run multiple commands

If you feel the need to run two commands one after the other, you can do so easily. Add this to your collection of CMD hacks. You just need to put “&&” between each command and save some time. For example, here’s how to run ipconfig and paint.

ipconfig && mspaint

3. Use Function keys and become a pro user

One out of the very useful CMD tricks is to use function keys. There is a lot these keys can do to improve your CMD experience.

Here’s the list:

command-prompt-function-keys

4. See PC driver list

Using a simple command, you can see all the drivers installed on your computer. All you need to do is run the driverquery command, and you’ll be seeing a list of all the drivers along with their name, type, and other information.

driverquery

5. Send output to clipboard

Very often, you might have felt the need to save the output of a command? Usually, people use copy and paste. However, using a simple command that uses pipe operator, you can send the command’s output to the Windows clipboard. Here’s how to send the ipconfig information:

ipconfig | clip

6. Abort a command

This handy Windows CMD trick comes to rescue when you have pressed the enter key, and you need to stop the command in its tracks? To do it, you need to do a Ctrl+C. However, it isn’t a magic trick that can undo an undoable thing.

7. Make your Command Prompt colorful

You can change the color of the Windows Command Prompt to make it look visually appealing. To do so, right-click in the top corners of the Command Prompt window and select Properties. There, find the Colors tab and look for the options to change the background and text color.

8. Create Wi-Fi hotspot right from the command prompt

Before opening the Command Prompt to execute the commands needed for this, you need to open Control Panel and find Change adapter settings in the Network and Sharing option. There, click on the connection you are using and click on Properties. Now find the sharing tab and check the option “Allow other network users to connect through this computer’s internet connection.”

Windows Command Prompt Trick Create WiFi Hotspot

Now open the Command Prompt with administrative privileges and enter the following command:

netsh wlan set hostednetwork mode=allow ssid=Yourhotspotname key=yourpassword

After it’s enabled, enter the following command to start the Wi-Fi hotspot

netsh wlan start hostednetwork

To stop it, simply enter this command:

netsh wlan stop hostednetwork“.

If you’re using Windows 10?

Windows 10 comes with a built-in tool that lets users create a WiFi hotspot. You can read our detailed post know how to enable mobile hotspot in Windows 10.

9. Scan system files for problems

The sfc /scannow command runs a system file checker tool that scans Windows system files and looks for problems. If some files are missing or corrupted, this command fixes them.

sfc /scannow

10. Start using batch files

You might already know that batch files can make your life a lot easier when dealing with multiple commands more often. For instance, if you have the habit of using the same CMD commands, you can create a batch file and do away with the task of typing them again and again. All you’ll have to do is run the batch file.

You can know more about what is a batch file and how it works?

11. Fix issues with DNS resolver cache

You might be knowing that DNS (Domain Name System) is an important thing you can’t ignore when connecting to the internet. To access websites faster, your computer usually maintains a local DNS resolver cache. But sometimes, the cache might get corrupt, and you may not be able to access your favorite sites.

In that case, you can try this Windows command prompt trick to save the day. You can use the Ipconfig utility to remove the DNS cache.

ipconfig /flushdns

We have already covered many useful Command Prompt tricks and cool hacks in our previous articles. You can read about them and learn how to execute by clicking on the links below:

12. Speed Up Internet Using CMD Trick

13. Find Wi-Fi Password Using CMD Of All Connected Networks

14. Create Bootable USB In Windows 10 Using Command Prompt

15. Remove Virus From USB Or Any Drive On Windows 10 Using CMD

16. Hide Any Drive in Windows: Command Prompt Trick

17. Enable Ctrl+C / Ctrl+V For Copy-Pasting In Command Prompt

18. Check DNS Records Using Basic Nslookup Command Examples

19. Watch Star Wars: Command Prompt Trick

20. Check Battery Capacity And Battery Health Report In Windows Using CMD

21. Find And Kill A Remote Connecting Malware On Windows 10

22. Fix “Do you want to scan and fix Removable Disk” Error In Windows

23. Use Netstat Commands To Monitor Network On Windows Using CMD

24. Use Netstat Commands To Monitor Network

25. Perform Ping of Death Attack: CMD Trick

26. Find License Windows Key Using CMD

27. New Windows 10 Keyboard Shortcuts in Command Prompt

CMD Alternative: Powershell and Windows Terminal

Over the years, Microsoft has started switching from the good old Command Prompt to its modern successor Powershell. If you might have realized, the places where you could see CMD earlier now show Powershell as the option because it’s the default shell in Windows 10. For example, in the Start button context menu.

You can use it because the commands meant for CMD also work on Powershell.

Furthermore, Microsoft has developed an entirely new command-line experience in the form of a new app called Windows Terminal. It combines the likes of Command Prompt, Powershell, and the Windows Subsystem for Linux. You can read our detailed article on how to set up WSL on your Windows 10 PC.

Windows Terminal UI CMD Alternative

Unlike CMD and Powershell, Windows Terminal isn’t pre-loaded on Windows 10, and you can get it from Microsoft Store. One thing to note is that Windows Terminal is not available for older Windows versions.

Did you find this article helpful? Tell us in the comments below. Also, if you have some interesting Windows Command Prompt tricks, don’t forget to share them.

The post 27 Useful Windows Command Prompt Tricks You Might Not Know appeared first on Fossbytes.

Source link

- Advertisement -

More articles

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Latest article

A Brief History of This Ambitious Project

Sensing the tech trend, Ubuntu tried its hands on creating a Linux-based mobile operating system. The first announcement came a decade back and six...

Atmanirbhar Apps by Mitron Launched to Promote Indian Apps

From the company that brought you Mitron, a TikTok-like video app, comes a new app ‘Atmanirbhar Apps’ that aims to promote apps made in...

How to Play PUBG Mobile in Restricted Regions

PUBG Mobile is one of the best battle royale games and has a community all over the world. Its Classic Deathmatch is pretty popular...

Reliance Jio Becomes First Telco to Cross 400 Million Subscribers in India

At its latest earnings call on Saturday, India’s largest wireless carrier, Reliance Jio, announced that its subscriber base has now crossed 400 million (40...

A Hardware Monitoring Tool [GUI]

The Psensor sensor monitoring tool for Linux distributions can measure the temperature of CPU, GPU, memory, and other hardware elements. We all know that...