Link Search Menu Expand Document

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:

  1. Command History
  2. Execute Multiple Commands
  3. Use Function Keys
  4. Look at the list of PC Drivers
  5. Copy output to a clipboard
  6. Terminate Execution of Command
  7. Have a Colorful Command Prompt
  8. Create a Wi-Fi Hotspot
  9. Encrypt Files
  10. Change Prompt Text
  11. SFC/ Scannow

1. Command History

Trace the history of commands with this command. This is handy to scan for a command used in the past.

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.

Example:

driverquery

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.

Example:

driverquery >

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

Adjust the color of the command prompt to make it look bright. Right-click in the top corner of the command prompt and choose properties and check for color changing choices in the color tab.

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.

Therefore, these tricks are simple and easy to execute. They undoubtedly help to use windows effectively and allow access to features that are impossible to use without specific software.

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:


Back to top

© , CMD Windows — All Rights Reserved - Terms of Use - Privacy Policy