Useful Windows Command Prompt Tricks
1. Command History
This helps to look for some command that you’ve used in the past, but can’t remember.
doskey /history
2. Run multiple commands
If you are feeling 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 experiences
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, 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 colorful. You can perform this easy change by right-clicking in the top corners of the Command Prompt 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.”
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.
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 you’ve to deal 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.
11. Fix issues with DNS resolver cache
You might be knowing that DNS 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
This helps to look for some command that you’ve used in the past, but can’t remember.
doskey /history
2. Run multiple commands
If you are feeling 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.
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 experiences
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
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, 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 colorful. You can perform this easy change by right-clicking in the top corners of the Command Prompt 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.”
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.
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 you’ve to deal 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.
11. Fix issues with DNS resolver cache
You might be knowing that DNS 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
Komentar
Posting Komentar