Open In App

Command Prompt Hacks for Windows

Improve
Improve
Like Article
Like
Save
Share
Report

The command prompt in Windows is equivalent to the terminal in Linux and Bash in MacOS. But the Windows command prompt comes with a wide range of customizable features.

Talking about the command prompt, let’s check out some interesting Tricks you can do in the Command prompt. 

1. Encrypting the Files Using CMD

 It is the most useful command to encrypt or decrypt the folders or files without using any third-party apps 

  • Search for CMD in Windows search (windows key + S).
  • And open CMD. Just type ” Cipher /E” and then hit on enter this will encrypt all the files in the current directory. 
  • To decrypt type “Cipher /D”.

2. Customizing the CMD

  • Open CMD then Right click on the Title bar and click on Properties
  • Then choose the Colors select Screen Text select any color  

  • Then click on OK.

3. Change the Font Style

  • Open CMD then right-click on the title bar. 
  • Choose the Fonts there you can select any of the font styles.

4. Change the Prompt Text in CMD

  • Launch CMD  then type “Prompt “+<Text you wanna See>  hit enter.

5. Change the Title of CMD

  • Launch CMD type Title +<name you wanna see there > then hit enter.        

6. Watch StarWars in CMD

  • First, make sure that you have enabled Telnet Client.
  • Search for Turn Windows Features On or Off in windows search.

  • Click OK.
  • Launch Command Prompt, and type “telnet towel.blinkenlights.nl”, and hit Enter.

  • To get out of it click ctrl+c

7. Check the PC Battery Details in CMD

  • Launch CMD make sure runs as Admin in case it doesn’t work.
  • The command is Powercgf battery report.
  • This generates your pc battery report in the form of an HTML file.
  • To see that just copy-paste the path is shown and hit enter in CMD. 

8. Check Command Prompt History

  • The command is Doskey /history.

 9. Abort a Command in CMD

To undo some action, we use CTRL + Z. But in case of command prompt. You can’t undo with CTRL + Z. To stop/abort a command from executing, simple press CTRL + C to stop it. However, this shortcut key can’t actions that are undoable example “format” and “chkdsk” commands. For detailed information on how to abort commands in cmd article click here

CTRL + C

or

Ctrl+ Pause/break

10. View Computer’s Important Network Information

  • Open CMD as an administrator mode
  • type “ipconfig/all,” and press Enter.

This displays crucial network details like IP address, subnet mask, and gateway, helping you troubleshoot and understand your computer’s network configuration.

View-Your-Computer's-Important-Network-Information

11. Clear Command Prompt Screen

If you simple want to clear current input command text, Simple press ESC key. To clear the entire screen, don’t close and reopen the cmd, instead use “cls” command or “CTRL + L” shortcut key. The result is shown below.

Clear-CMD-Screen-Using-the-cls-command_2

So these are some Command Prompt hacks for Windows. Try out these commands and make your interaction with cmd more fun and joyful!

12. Open CMD as an Administrator Automatically

Step 1: Right-click on empty space on the desktop and select New > Shortcut.

Create-Desktop-Shortcut_1

Step 2: Now type the location of the item, simple type cmd.exe, and click Next.

Run-CMD-automatically_1

Step 3: Provide a name for your shortcut like Command Prompt and click Finish.

Run-CMD-automatically_2

The Task Manager desktop shortcut is created and will appear on your Windows desktop.

Step 4: Now Right-click on the cmd desktop shortcut and select Properties

Run-CMD-automatically_3

Step 5: Now, go to Advance Settings and check the Run as administrator box and click OK.

Run-CMD-automatically_4

Hence you have successfully created cmd desktop shortcut that automatically open as run as administrator.

Also Read



Last Updated : 08 Mar, 2024
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads