cool cmd tricks
CMD is a command line software for windows. If you have used Linux , you know that what is command line ?
In Windows 10, it’s easy to forget that the operating system still has a command line interface.
Well, though you may have forgotten about CMD, Microsoft hasn’t, as Windows 10 has some very useful changes to CMD.
Although it may not be as efficient as its Unix equivalent, there are a range of cool CMD tricks that can turn it into a very useful tool.
To certain users, the Windows Command Prompt can appear to be a black-and-white environment. Experienced users, on the other hand, appreciate the strength of Command Prompt and employ a number of cool CMD tricks.
So, in order to enhance your Windows Command Prompt experience, we’re going to tell you about some helpful cool CMD tricks that will save you some extra clicks in this blog.
A lot of the things you can do with the Command Prompt (also known as CMD) aren’t even included in the Windows OS’s GUI.
Speaking of Windows cool CMD tricks , there are a multitude of them that you can learn, use, and impress your friends with. Some people do not know how to abort a command or adjust the color in Command Prompt, for example.
We’re going to show you some cool CMD tricks right now.
To some users, the Windows Command Prompt can appear to be a black-and-white environment.
you can create a batch file and do away with the task of typing them again and again.
Experienced users, on the other hand, appreciate the power of Command Prompt and employ a number of cool CMD tricks.
Cool CMD Tricks –
Let’s see 28 best cool CMD tricks –
1.Change the color of text in CMD
This is very simple and one of the best cool cmd tricks. There two methods of this –
Method – 1 :
To change text color in CMD type simple command ‘help color‘ and press enter button.
You can choose number given opposite of color to change in any particular color to change color of text of CMD window
Type COLOR [number] to change color and press enter . Text color is changed as you can see.
Method – 2 :
- Launch CMD and Right-click on the title bar
- Click on “Properties” and in the separate window that opens, click on “Colors”
- Here, you can choose both the screen and the background colors as well as the CMD window transparency and the pop-up text and the background.
- After you’re done choosing the most fitting colors for your personality, Click OK
2. How to change the Prompt name .
Did you know that the prompt command in the Command Prompt allows you to fully customize the prompt? It really is, and when we say “customizable,” we mean it.
Instead of C:>, you can change the prompt to any text you want, such as the time, the current drive, the Windows version number (as seen in this example image), or whatever else you want.
Prompt $m$p$g, for example, will show the complete path of a mapped drive alongside the drive letter.
You should still run prompt without any options to get it back to its often repetitive default.
Type simple command help prompt
you can choose any option to change your prompt name. Type following command.
I am type command prompt [email protected]
3 . Changing Title of CMD. How to change title of CMD window.
type Command title PCBloggers
4. How to hide a folder
This is my folder and type command CMD to open CMD in this current directory.
type command Attrib +h +s +r [dir_name].
to unhide type Attrib -h -s -r pcbloggers.com
5. Copy Output to clipboard. How to copy output result in your CMD window.
type command | clip
6. Open Command Prompt in current directory :–
If you’ve ever spent a lot of time in the Command Prompt, you know how annoying it can be to keep running the cd/chdir command to get to the correct directory.
Open the folder where you want to start operating in Windows. Keep Shift when right-clicking somewhere in the folder until you’ve arrived. or type CMD in address bar and press enter .
When the menu appears, you’ll find an entry that isn’t always present: This is where you can open a command window. Pick that, and a new instance of the Command Prompt will open, ready and waiting in the proper place.
If you’re a Command Prompt whiz, you’ll see the benefit of this little trick right away.
7. Shutdown or Restart Another computer :–
Device administrators in a corporate system do this all the time for a number of purposes, so you can still use the Command Prompt on your computer to shut down or restart another machine on the network.
To remotely shut down a computer, type shutdown /i in the Command Prompt to pull up the Remote Shutdown Dialog, as seen above.
Simply enter the remote computer’s name (which you can get by running the hostname command on the other PC), pick the action you want to take (restart or shutdown), select any other choices, and then click OK.
This Command Prompt trick is enjoyable when you’re brushing up on your command skills or just scaring a family member.
8. Copy and Paste Easier With Quick Edit Mode :–
Several of these Command Prompt tips have to do with making copying and pasting more convenient. So, how about a faster way to copy from the Command Prompt (plus a hidden way to paste)?
Simply right-click on the title bar of the Command Prompt and choose Properties. Check the QuickEdit Mode box in the Edit Options portion of the Options tab, then click OK.
When you allow QuickEdit Mode, it’s the same as putting Mark on all the time, so picking text to copy is a breeze.
As a bonus, this also allows a quick way to paste into the Command Prompt window: simply right-click once, and whatever is in the clipboard is pasted into the Command Prompt window.
Pasting usually includes right-clicking and choosing Paste, but this is a break from what you’re used to.
9. Complete Commands Automatically With Tab Completion :–
Another Command Prompt trick that will save you a lot of time is tab closure. This is particularly useful if the command has a file or folder name that you’re not clear about.
Simply enter the command and then the portion of the direction that you do know, if any, to use tab completion in the Command Prompt. Then continuously click the Tab key to loop through all of the available choices.
Let’s presume you need to shift files to a folder in the Windows directory, but you don’t know what it’s called. Click tab once you see the folder you’re searching for, then enter cd c:windows.
You should loop through the results in reverse order or use SHIFT + TAB to phase through the results in reverse order.
Thank you for visiting and reading this blog post. We hope that this post was helpful for you. If you think this post was helpful for you please share it . Get more posts on cool command prompt tricks.
10. Important Network Information on Your Computer
Maybe just for your own information, but you’ll almost definitely need to know more about your computer’s network connectivity at some stage when troubleshooting a network or internet issue.
Anything you need to know about your network link is available somewhere in Windows’ Control Panel, but it’s much easier to locate and organize in the ipconfig command’s output.
Run ipconfig /all from the Command Prompt.
The next screen tells you everything you need to know about your network link, including your IP address, hostname, DHCP server, DNS information, and much more.
11. Command History
Using ” command history ” command , you can see your command history. This will be helpful for you when you looking for command you have used in past.
12. Use Function keys
You can also use function keys as shortcuts. 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.
13. Create Wi-Fi hotspot with Command Prompt
Before you open the Command Prompt to run the commands you’ll need, go to Control Panel and look for Change adapter settings under Network and Sharing.
There, choose the connection you’re working with and select Properties. Now go to the sharing page and select “Allow other network users to join through this computer’s internet connection.”
Now run CMD as administrator :
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 are using Windows 10 , it comes with built in tool that lets create a Wi-Fi Hotspot.
14. Scan system files for problems
The sfc /scannow command launches a system file checker, which examines Windows system files for errors. This command replaces any files that are missing or corrupted.
15. Watch Star wars in Command Prompt via telnet
This is my favorite command.
You know you’ve seen all of the Star Wars movies a long time ago – several times, in various order – on your screen, phone, and in a nearby cinema.
With all of the excitement about the recently released Star Wars it’s only natural to revisit the original trilogy.
But why not try watching the beginning of Star Wars Episode IV as an animated text on your PC’s Command Prompt?
I won’t call it an Easter Egg because it’s been around since the days of Windows XP, and you can do it in later versions of Windows as well (or any OS that supports telnet).
Telnet is a network protocol, so you don’t have to know anything about it. So, let’s get this over with and show you how to watch Star Wars right now in Command Prompt via Telnet :
Telnet is no longer included in subsequent versions of Microsoft’s Windows operating system. You have to enable telnet. No worries, you can download it right now using Program Prompt and a simple and straightforward command.
- Just open Command Prompt on your PC, enter pkgmgr /iu:”TelnetClient” command and press enter.
- Now restart the Command Prompt, enter the telnet towel.blinkenlights.nl command and press Enter.
16. See Computer Driver List
You will see all the drivers loaded on your computer with a simple command.
All you have to do is run the driverquery command to get a list of all the drivers, along with their names, types, and other information.
17. 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.
18. ping –
know the IP address of any website. Ping is a command-line utility that tests if a networked device is reachable. It works on almost every operating system that has network connectivity. The ping command sends a message over the network to a specific device.
Type – ping (website) .
19. nslookup –
nslookup is a simple but effective command-line tool for finding a host’s IP address or the domain name that corresponds to an IP address (a mechanism known as “Reverse DNS Lookup”). nslookup may be launched from the operating system’s command line; Windows users should use the command prompt, while Unix users should use the terminal window. Furthermore, you can now use nslookup online via a number of services.
Type – nslookup
20. tracert –
This article will show you how to use TRACERT (Trace Route), a command-line tool for tracing the path of an Internet Protocol (IP) packet to its destination.
Type – tracert .
21. arp –
To see the ARP table on a Unix system, type “arp -a” (this same command will show the arp table in the command prompt on a Windows box, by the way). The output of arp -a will include the network interface, target device, and physical (MAC) address of each system.
Type – arp .
22. route print
this trick With the first route request, shows and modifies entries in the local IP routing table. The -P (print) parameter of this command has the following sense. – When the print button is pressed, a list of permanent routes is shown.
Type – route print .
23. IPconfig –
Check your IP address, gateway, DNS, and other details.
Type – ipconfig .
24. netstat –
The network statistics ( netstat ) command is a networking tool that can be used for network connection monitoring, troubleshooting, and setup. Incoming and outgoing connections, routing tables, port listening, and usage statistics are all common uses for this command.
Type – netstat .
25. Know your connected wifi Password :-
open command prompt and type command “netsh wlan show profile [NAME] key = clear” and hit Enter. you will see all information about Wi-Fi network .
26. Troubleshoot DNS resolver cache problems –
You might also be aware that DNS (Domain Name System) is a critical component of any internet connection.
Your machine normally keeps a local DNS resolver cache to help you browse websites faster.
However, the cache can become corrupt, preventing you from accessing your favorite websites.
In any case, you can save the day by using this Windows command prompt trick. To remove the DNS cache, use the Ipconfig command.
Type – ipconfig/flushdns .
27. Check Battery capacity and health –
The energy report in Windows 10 will show you how much your battery power has decreased over time,
as well as if there are any failures or incorrectly installed settings that are reducing your battery life.
To conduct a laptop battery life test, follow these steps:
- Right-click the Start button and choose Properties. Pick Command Prompt from the menu (Admin).
Note: In later versions of Windows 10, the command prompt option in the Start button’s context menu is replaced by PowerShell.
- Type – powercfg/energy .
28. Find info about commands –
Often we run a command to complete a mission but don’t really understand it. So, add /? to the end of each order and press enter to learn more about it.
Command Prompt will give you a good rundown of how to use it and how to write commands in it.
Take SFC as an example, and type sfc /? and press enter.
It will explain the sub-commands with explanations and what other commands are relevant to SFC in a clear and concise manner.
Type – (command)/? .
CMD can be found in the Start Menu by searching for it. Then, right-click CMD and select Run as Administrator from the context menu.
We hope these cool CMD tricks are helpful and informative for you. You can also turn windows features on or off.
Thank you for visiting and reading this blog post cool CMD tricks. We hope this post was helpful for you. If this post is helpful , please share this post also. Give your feedback and possible suggestions in comments to help us. Keep visiting our website to get helpful posts and updates also.
Give your feedback and possible suggestion to help us.
Keep visiting our website to get latest helpful posts and updates.
Also read related posts :-
- Amazing Command Prompt Tricks.
- Best Microsoft Office Alternatives.
- Best Code Editors (IDE’s) for Windows.
What are best cool CMD tricks ?
Here let’s see best cool cmd tricks –
- Changing CMD color using command prompt.
- Check battery capacity and health.
- Know your connected Wi-Fi Password using command prompt.
- Watch Star Wars in CMD using Telnet.
- Important Network Information on Your Computer.
- See Computer Drive list.