10 Command Prompt Tricks You Should Try in Windows 11

Command Prompt is a handy tool in the Windows 11 operating system. With Command Prompt, users can access various advanced features and commands that cannot be found in a graphical interface. This tool allows you to do many things, from managing files to improving system performance to fixing issues that may not be visible.

Bardimin will guide some Command Prompt tricks and commands that can help you increase productivity, give you more control over your system, and speed up the completion of important tasks in Windows 11.

How to Open a Command Prompt

To start using Command Prompt in Windows 11, the first step is to open the Command Prompt window. Here are the steps:

  • Click the Start button or press the Windows key on your keyboard.
  • Type cmd in the search bar.
  • Select Command Prompt from the search results. To access all features and run commands as an administrator, right-click on Command Prompt, and then select Run as Administrator.
10 Command Prompt Tricks

1. Changing the Prompt Display with prompt Windows11PC$G Commands

In Command Prompt, you can change the appearance of the prompt to better suit your wishes or provide certain information. One way to do this is to use the prompt command to override the default text that usually appears, such as C:UsersUserName>.

To change the appearance of the prompt to make it more attractive, you can use the following command:

prompt Windows11PC$G

Here is an explanation of this command:

  • prompt: This command is used to change the text displayed on the prompt line.
  • Windows11PC: This is a custom text that will replace the default text. You can replace “Windows11PC” with a name or other text as you like.
  • $G: This is a special character that represents the > symbol at the end of the prompt. If you don’t use $G, your prompt won’t have a >.

2. Changing the Window Title Command Prompt

In addition to customizing the appearance of text and colors, you can also change the window title Command Prompt to give it a special identification or simply add a touch of personalization. By default, the title of the Command Prompt window is “Command Prompt,” but you can change it to whatever you want by using the title command.

Here’s how to do it:

title New Title

Explanation of this command:

  • title: This command is used to change the title of the Command Prompt window.
  • New Title: This is the new title that will be displayed at the top of the Command Prompt window. You can replace this text with whatever you want, such as “Administrator Tools” or “System Diagnostics.”

3. Viewing the Installed Drivers

To resolve driver issues in Windows 11, you can use the driverquery command to view all currently installed drivers. Here’s an explanation of the command and how to read the results:

driverquery /FO list /v

Command Parameter Explanation:

  • driverquery: This command is used to display installed drivers.
  • /FO list: This parameter sets the output format. The results will be displayed in the form of a list.
  • /v: This flag activates verbose mode, providing more complete information about each driver.

4. Saving the Output to a Text File

It’s true, the results of a driverquery command can be very long and difficult to see. Fortunately, you can easily save the output of these commands into a text file to make it easier to manage and search. Here are the steps:

driverquery /FO list /v > driverlist.txt

Command Explanation:

  • driverquery /FO list /v: This is the same command used earlier to display a list of drivers with complete information.
  • >: This is the symbol used to switch the output from a command to a file.
  • driverlist.txt: This is the name of the file where the output will be stored. You can rename this file as you wish.

5. Combining Two Commands in a Command Prompt

In Command Prompt, you can combine multiple commands into a single, more efficient line. This is known as “chaining” or command merging. This way, you can run multiple commands in a row without having to type them one by one.

One common way to combine commands is to use the &&& operator. Commands that use && ensure that the second command will only be executed if the first command succeeds.

For example, to see a list of drivers installed on the system and open the resulting file in Notepad, you can run the following command:

driverquery /FO list /v > driverlist.txt  &&  notepad.exe driverlist.txt

Command explanation:

  • driverquery /FO list /v: This command displays a list of drivers installed on your computer in list format with detailed information (option verbose).
  • > driverlist.txt: This section stores the results of driverquery commands into a text file named driverlist.txt.
  • &&: This operator is used to combine commands. The second command will only be executed if the first command succeeds.
  • notepad.exe driverlist.txt: This section opens a driverlist.txt file that was recently created with the Notepad app.

Latest Articles