cmd

Many people are familiar with the command prompt windows 10 tricks. But with an interface as attractive as windows 10, it’s easy to forget the operating system (OS) comes with a command line interface as well. People might forget about the command prompt, but Microsoft doesn’t. it has brought some improvements to the command prompt in windows 10.

Many command prompt window tricks can make it a helpful tool to have. lots of things the command prompt(cm) can let you do are not even available in the GUI of windows OS. So it’s something you should use. In this article, we will discuss the command prompt windows 10 tricks that you should use in 2024. 

What are the command prompt windows 10 tricks?

The command prompt is a command-line interpreter application available in most Windows operating systems, such as OS/2, eComStation, Windows NT, Windows CE, and ReactOS operating systems. It is also called CMD or cmd.exe. Using Command Prompt, you can troubleshoot or resolve various Windows issues, such as hard drive errors, corrupted system files, and more.

command prompt windows 10 tricks
command prompt windows 10 tricks

To access Command Prompt Windows 10 tricks there are two common methods

Method 1. Execute Command Prompt from Cortana

  • Enter CMD in the Cortana search box and select the best match.
  • Or right-click the best match and select Run as administrator.

Method 2. Execute Command Prompt windows 10 tricks from Run Box

  • Press Windows+R simultaneously to open the Run Input cmd, then press Enter.
  • To execute Command Prompt as an administrator, you can type cmd in the Execute box and press Ctrl + Shift + Enter.

Command prompt characters are very helpful for Windows users to manage their computers. However, most people only focus on a few common commands on the Internet, without knowing that there are many powerful and widely used tricks and techniques for command prompt characters.

Top useful command prompt windows 10 tricks

1. Command prompt windows 10 tricks keyboard shortcuts

A very useful Command Prompt trick is to use the Command Prompt windows keyboard shortcuts. Knowing some Command Prompt windows keyboard shortcuts can help you use Command Prompt effectively and save time.

  • F1: Clicking or holding this key will retype the command you just entered, letter by letter.
  • F2: Copy the current command to the specified character.
  • F3: Paste the previous line you entered.
  • F4: Delete the current prompt text until the specified character.
  • F5: Retype the previous command like F3 while still being able to cycle back through many lines in the command history.
  • F6: Insert Ctrl+Z or ^Z into the command prompt character. This is an end-of-file indication (text after this will be ignored).
  • F7: Displays a list of previously entered optional commands.
  • F8: Retypes the previous command without stopping at the end of the command history. So it will loop back to the starting point.
  • F9: Paste an instruction by entering the number associated with the line.
  • Tapping the up and down arrows on your keyboard will cycle through previously entered commands.
  • Tab: As you type a folder path, Tab autocompletes and cycles through the directories.
  • Ctrl + F: Likewise, control + F now allows you to search for text within the command prompt characters.

If you are an advanced user who frequently uses command prompt characters because these command prompt character shortcuts will be very helpful to you and save you time. You can try the following shortcuts on your computer.

2. Change the color command prompt to windows 10 tricks 

You can change the command prompt character background and text color to make it look colorful.

Many users don’t know that they can change the command prompt character background. So this command trick is about showing you how to change the command prompt character color.

  • Right-click the title bar of the Command Prompt window.
  • Select Properties in the context menu.
  • Find the “Color” tab at the top of the window.
  • Select the color you want to change the background and text color to.
  • Click OK to confirm the changes.

Now you can easily change the command prompt character background color.

3. Abort a command

You may encounter a situation where when you enter a line of commands and press the Enter key, you realize that you just entered a wrong command, so you want to stop the command immediately. Is there a way to stop the command from working?

Well, at this time, you can use the command prompt character trick to save the operation. All you need to do is hit Ctrl+C on your keyboard to abort the command. However, this command may not work if the matter itself is irreversible.

Try the amazing Command Prompt character trick on your computer now.

4. Delete temporary files

You can remove some free space by deleting temporary files on your drive. temporary files are created to hold information. Because when creating a file once the program is closed, the temporary file is no longer useful and should be deleted.

 You can use the following command to delete some temporary files on the drive.

But first, you need to execute the command prompt as an administrator. So these are the different commands used to delete temporary files.

Delete temporary user files: del /q /f /s %temp%\*

Delete temporary system files: del /s /q C:\Windows\temp\*

Execute two commands at the same time: del /q /f /s %temp%\* && del /s /q C:\Windows\temp\*

You may be confused by some of the parameters in this command. Here’s a description of what they mean to you.

/q runs the operation without displaying a confirmation prompt;

/f ignores read-only attributes and forces deletion;

/s delete the contents of all subfolders.

Deleting temporary files is one way to help free up disk space. There are many ways to help you free up space in Windows. You can use tools such as space analyzers to find large files on the drive and delete them directly from the software.

5. Move to windows terminal

Although the command prompt has many features, tricks, and its user base, starting with Windows 10, Microsoft released Windows Terminal, a universal command line tool for Windows.

It runs the command prompt in a layout, with the ability to run multiple commands in a single window. In addition, Microsoft has also merged Terminal Linux and PowerShell into Windows Terminal.

You have side-by-side access to all command-line tools in one window. So it is recommended to try the new Windows Terminal and see if you like the feature. 

6. List all installed programs 

Another trick on the command prompt is to list all Windows 10 apps and programs installed on your computer. This is mostly useful if you need to uninstall a program using the command prompt. To list all installed programs, just follow these steps:

Launch a command prompt and enter “wmic product acquisition name”.

Press Enter and you will see a list of all programs installed on your PC.

You can also use Wmic to uninstall a program directly from a cmd window. Just type “wmic product where “name like ‘%NAMEOFAPP%'” call uninstall/nointeractive” and press Enter. Replace “NAMEOFAPP” with the name of the app you want to uninstall from your computer

7. Open CMD windows inside the directory

Let’s face it, the way Windows handles changing directories using the “cd” command is pretty weird. Fortunately, there is an easy way to open a command prompt window in a directory so you don’t have to change directories. This is a very handy trick, especially if the folder you want to access is covered up deep within the file system. 

To open a cmd window in a directory, just follow these steps:

  • Open the directory in Windows Explorer. Type “cmd” in the address bar and press Enter.
  • A command window will open in the directory you opened in Windows Explorer.

8. Generate better health report in the command prompt windows to tricks

Windows 10 lets you track important statistics related to battery health by maintaining battery-related data. This includes statistics such as factory specifications, full battery capacity, and current capacity, and is updated with each session. You can generate reports on these statistics using the CMD command, which can be executed as follows:

  • Start the command prompt as administrator or use cd C:\Windows\System32 to change directories.
  • Enter the command powercfg/energy
  • The system will take 60 seconds to analyze and then generate a report in the form of an HTML file.
  • To access this report, you can go to the following location on your Windows 10 computer.

9. Always run the command as an administrator 

Users who work with system files and applications know that they always need elevated permissions to adjust and move things. On the other hand, the command prompt character always defaults to the normal account, which makes it more difficult for users to obtain administrator access during the operation. So, to avoid this, you can change the behavior permanently and always execute the command prompt with administrator rights.

  • Just search for “cmd” in the Start menu and right-click on it. After that, open its file location.
  • Now copy the command prompt character shortcut to your desktop.
  • Move to the desktop right-click the shortcut and open Properties.
  • Here, click on “Advanced” and enable “Run as administrator”.
  • Now, open CMD from the desktop shortcut and it will always launch with administrator privileges.

10. hidden folders using the command prompt windows to tricks

While there is an easy way to hide a folder on Windows by using the folder’s properties pane and selecting the “Hide” checkbox, this method is not very useful as the View option is easily viewable using this method Hidden folders changed to “Show hidden files and folders”, making it a very useless feature. However, just like you can hide folders using Terminal on Mac, using this cmd trick you can hide folders in a way that completely hides them and Explorer won’t be able to show them at all. Just follow these steps:

  • Start a command prompt and navigate to the directory where the target folder is located.
  • Type “Attrib +h +s +r folder name”, replace “folder name” with the name of the folder you want to hide, and press Enter.
  • Now you can check if the folder is indeed hidden in Windows Explorer and cannot be seen by anyone.
  • To unhide a folder, you can use the command “Attrib -h -s -rfolder_name”.

Note: You can use the cmd command “dir /AH” to view hidden folders.

In conclusion command prompt windows 10 tricks

Many people are familiar with the command prompt, but few know how much can be accomplished with it. I believe you learned many useful Windows 10 Command Prompt character tricks in this article. helped you find new and interesting ways to use command prompt characters on your Windows PC with these CMD tips and tricks. Well, if you’ve ever dreamed of looking like a computer wizard – here’s your chance and use these CMD commands to make you look like a hacker.

Follow BlogBudy to learn More technical skills.

By Ashley

One thought on “Command prompt windows 10 tricks”

Leave a Reply

Your email address will not be published. Required fields are marked *