Cool CMD Commands Tips and Tricks
CMD is a command given by Microsoft Windows to open the screen on the Windows Command-Line. Here are some of the cool CMD Commands’ tricks and things.
Table of Contents:
- Command History
- Execute Multiple Commands
- Use Function Keys
- Look at the list of PC Drivers
- Copy output to a clipboard
- Terminate Execution of Command
- Have a Colorful Command Prompt
- Create a Wi-Fi Hotspot
- Encrypt Files
- Change Prompt Text
- SFC/ Scannow
1. Command History
2. Execute Multiple Commands
Another cool CMD trick is to execute multiple commands at the same time. However, put & & between two commands and run them one by one.
The command on the left of double-ampersand is the first command to perform before the command on the right. For instance-
- tasklist && netstat-b
3. Use Function Keys
One of the most popular CMD Tricks is using function keys. These keys will do a great deal to boost your CMD experience.
- F1: Retaining the key will retype the letter one by one in the order entered.
- F2: Copy the current command to the character stated
- F3: Types the last line entered completely again
- F4: Opposite to F2- will automatically delete to the character stated
- F5: Retypes the last command as F3, but helps to loop several lines through the history of the command
- F6: Attaches Ctrl+Z to the command prompt signaling the end-of-life
- F7: Opens a list of preceding commands you can pick from.
- F8: Acts as F5, but at the end of the command history, it comes back to the beginning.
- F9: Allows to retype a previous command by inserting a line number
4. Look at the list of PC Drivers
Access all the drivers on the computer with a single command. Execute the driverquery command and find a list with the names, type, and other information of all the drivers.
5. Copy output to a clipboard
Store the output for a command such as a task list or a driverquery to a new text file by inserting > along with the directory and file name.
6. Terminate Execution of Command
This is one of the easiest CMD tricks and everyone needs to know it. For instance, you want to run a certain command, and you run another command unintentionally, now just click “Ctrl+C” so that the execution of the command can stop easily.
7. Have a colorful command prompt
8. Create a Wi-Fi Hotspot
Use Command Prompt to build a Wi-Fi hotspot and connect to the internet with multiple devices using any third-party applications.
- Open Command Prompt and type "netsh WLAN set hostednetwork mode= to allow ssid=HotspotName key=Password." Change the hotspot name, substitute it with a password, and click enter.
- Furthermore, type "netsh WLAN start hostednetwork" and users can now access the hotspot and link the devices to it.
9. Encrypt Files
Encrypting your private data is one of the most valuable things you can perform with the Command Prompt. Encryption is a technique to keep others from seeing your data, and it’s a critical aspect of assuring that your files are yours alone. You may encrypt data on your Windows PC using this easy Command Prompt method.
- You have to go to Command Prompt on your pc or laptop and change your working directory to the folder containing your files. The command "cd" can be used to accomplish this.
- When you're finished, write "Cipher /E" and press Enter. All the files that the folder has will be encrypted as a result of this.
10. Change Prompt Text
The default prompt text is rather uninteresting when you first launch Command Prompt. It does reflect the user’s current working directory, but it could use more personalization. You can use the following approach to change the prompt in your cmd window to something other than the default.
- Start Command Prompt and type "prompt" followed by the desired text. Make careful to add "$G" to the end of the command to ensure that the ">" symbol is always present at the end of the prompt and that you know where your command starts.
- When you press Enter, the prompt in the cmd window will change to your personalized text.
11. SFC/ Scannow
SFC (System File Checker) is a new tool to Command Prompt that helps you maintain your PC clean and bug-free. It’s a useful command-line program that can assist you in resolving a variety of system issues. You have to enter SFC /scannow in the Command Prompt to begin checking the integrity of all protected system files. Furthermore, it will attempt to fix any damaged files. So, if you have any problems in the future, make sure you perform this command on your Windows PC.
Most Popular CMD Commands:
Other useful articles:
- Basic Windows CMD commands
- Cool CMD Commands Tips and Tricks
- Best CMD Commands for Hacking
- CMD Commands for Wireless Network Speed
- Useful Keyboard Shortcuts for CMD
- What Info about My Laptop Can I Check with CMD and How?
- Getting Started with CMD Windows
- TOP-12 Command-Line Interview Questions (Basic)
- Command-Line Interview Questions (Advanced)
- CMD Commands to Repair Windows
- CMD Commands to Speed Up Computer
- CMD Commands for MAC OS
- How Does the Command Line Work?
- MS-Dos Interview Questions in 2021
- Windows OS Versions and History
- Recent Windows Versions Compared
- Basic Windows Prompt Commands for Every Day
- Windows Command Line Cheat Sheet For Everyone
- Windows Command Line Restart
- Windows Command Line for Loop
- Windows Command - Change Directory
- Windows Command - Delete Directory
- Windows Command Line – Set Environment Variable