5 Command Prompt tricks that few users know about.
Command Prompt is a long-standing tool integrated into various versions of Windows, with many uses that not everyone is aware of. The following 5 lesser-known Command Prompt tips will significantly enhance your computer usage skills.
No matter which version of Windows you're using, Command Prompt remains a very useful tool. Of course, if you're just a regular office worker, you don't really need to open Command Prompt. However, if you're a programmer, a systems engineer, or simply someone who enjoys tinkering with computers, opening Command Prompt is a frequent occurrence. And the following five Command Prompt tips will be very helpful to you.
Because Command Prompt and PowerShell (on Windows 10) lack a user interface and are purely text-based, they have many limitations. Using command prompts (cmd) offers incredibly useful conveniences; you can handle everyday problems simply with text-based commands instead of using other software or tools. Therefore, adding these 5 Command Prompt tips will help you work faster using Command Prompt or provide handy tricks to execute commands quickly.
27516
5 Command Prompt tricks that few users know about.
1. Quickly copy the ipconfig parameters.
ipconfig is a quick command in Command Prompt that allows you to check all your network-related parameters, and if you want to retrieve all that information and save it to a specific location on your computer, use the following command.
Step 1: Instead of copying and pasting as usual, use the Command Prompt trick: `ipconfig | clip` and press Enter to run it. This command will copy all the parameters when running the `ipconfig` command without displaying them in the Command Prompt window.
Step 2: Then paste it into a Notepad page to check the result. You will see that all the information is recorded with just one extremely simple command.
2. Open Command Prompt / PowerShell directly from the folder.
Normally, we would have to open Command Prompt and then type a few lines of command to access the folder we want to work with, and usually right-clicking on the folder doesn't offer a direct Command Prompt option.
However, if you hold down Shift and right-click again, you'll see the message " Open Command Prompt windows here ."
Note: On Windows 10, if you are using PowerShell, the command line will display "Open PowerShell windows here".
And then you can do whatever you want with the Command Prompt/PowerShell box you just opened.
3. List the commands used in Command Prompt / PowerShell
During a Command Prompt or PowerShell session, do you remember how many commands you used? This simple Command Prompt trick will help you list them instantly. Use the command ` doskey /history` to display them.
Note: A session is counted from the moment you open Command Prompt and haven't closed it yet; if you close it, no data will be saved.
4. Open the folder directly in Command Prompt / PowerShell
A Command Prompt trick allows you to quickly access a specific folder or use commands to quickly manipulate any folder or file.
To do this, simply drag and drop the file or folder into the Command Prompt and PowerShell windows.
Note: This will not work if Command Prompt is in Administrator mode.
5. Run multiple commands simultaneously in Command Prompt/PowerShell
What if you want to run more than one command at the same time—perhaps two, three, or even more—with a single command click? To perform this Command Prompt trick, see the instructions below.
Step 1: For example, if TipsMake wants to run both the ipconfig and netstart commands simultaneously, how do you do it? It's very simple; just type ipconfig && netstart and press enter.
The && character allows you to run two commands simultaneously; the first command will be displayed first on the screen. You can apply three or more commands using this syntax.
These 5 Command Prompt tips will be essential for you when using cmd and PowerShell. You'll also see how convenient, easy to use, and easy to remember they are, so remember them if you can. This article mentions two terms: Command Prompt and PowerShell. Essentially, these are two quite similar tools, but there are differences between them. To learn more about them, please refer to our comparison article on Command Prompt and PowerShell .
- How to use the command history function in Command Prompt
- Tricks to change Command Prompt background color on Windows
- Add Command Prompt to Power User Menu on Windows 10
- How to Customize the Font in Windows Command Prompt
- How to open Command Prompt on Windows 10, 8, 7, Vista and XP
- How to Make Command Prompt Appear at School