Top 25 Best CMD Tricks Latest Collection 2021

Hey, guys, need some cool command prompt tricks?
Here I pick some most useful cmd tricks for you to run on your Windows PC and have fun.
There are many hidden secrets and cmd commands on windows PC. Let’s discover all and enjoy the live experience with them.
All different types of cmd hack 2021 collection are here for you.
Let’s turn on your Windows PC. Now start the command prompt and try these cmd commands directly on your PC.
Best command prompt tricks are here for you.
No computer knowledge or any experience needed for these commands to run.
Just type it and run it.
Let’s start commanding.
Here we go
  Best CMD Tricks Latest Collection 2021


 information help ( /? )

/? Let’s you know about the use of command, for e.g. to know what ‘shutdown’ does, simply type-

Shutdown /?  

It will show the list of all the switches that could be done with ‘shutdown’ command to do different functions.


This command traces out system’s IP address details, also it gives information about the gateway and Router’s pre-specified web interface. The syntax is –

ipconfig /all command


Use this to shut-down or restart pc with a single line of command.

  • shutdown /r /o: To start the system into various advanced options.

  • shutdown /s /t 0: To perform a regular shut down.

  • shutdown /r/t 0: To Restart the system.

sfc /scannow

This command scans the overall system and finds corrupt file. It also replaces them if necessary.

sfc /scannow


It gives the list of running tasks on the system. Use –m for DLL modules and –svc to show the services that support each listed in prompt.

  • tasklist

  • tasklist –

  • tasklist –svc


It terminates the task you don’t want to run. The syntax of this command includes ‘taskkill’ followed by –pid or –im, and the task to be terminated.

  • taskkill –pid 4104

  • taskkill –im iexplore.exe


This command can be used to directly copy files between the drives. The command-line to copy videos from drive C to the drive F will look like:

XCOPY c:\videos f:\photos /s /e 


This is a basic command but very useful to instantly access directories of your choices. To quickly access C drive, the command line will be –

cd c:\


This commands lists the content of a directory. The syntax is –



This command represents the contents of a directory/ sub directory in a tree format. The syntax for the C drive will be –

tree c:/

 net share:

This command stops windows from sharing specific folders, after connecting to a network. To execute it, first type net share in CMD to view all the shared folders and then run the following command to disable the shares –

  • net share C$ /delete

  • net share IPC$ /delete

  • net share ADMIN$ /

deleteipconfig /flushdns:

When the DNS settings are changed, they don’t take place immediately and take some time for a complete setup. Meanwhile, if you try to visit a particular site (changed DNS server settings for), the windows uses the ‘cache’, where previous responses are retained. The syntax is –



Use this command to keep track on system’s power consumption resources. Hibernation can be managed by following syntax –

  • powercfg /hibernate o

  • powercfg /hibernate of


This command is used to move files to desired locations.–


 netstat –an:

This command lists all the network connections along with the details of the port they are operating with.

netstat –an  


It can be run to know if any data packets weren’t received by the server or it it’s saturated.

ping – server name

 telnet –n

It helps to connect to the Telnet servers, if it’s installed. If not then it can be done by going to control panel.


 cipher –

Using this command, you can manage encryption, write data or delet

  1. Directory.  

  2. cipher /w:D:\  

If you want to wipe out the D drive.


Use this command to find the IP address of your desired server.


‘’ – server name.


Use this command to know whether the file is digitally signed or not.



Use this command to know additional information about the drivers.

driverquery -v  

To know the detail for each driver.


Use this command to know your file extensions. It can also be used to change file formats like-

assoc .txt=.pdf  

The above command is to change text to pdf.

netsh interface:

Use this command to know whether your system is connected to Wi-Fi or not.

netsh interface show interface | findstr /C: ”Wireless” /C: ”Name”  


Use this command to know how each packet interacts while moving to destination.


‘’ – server name


Use this command to design a custom recovery image for Windows 10.
so guys these are the best command tricks 2021 collection for you.
I hope you like it.
All the best and top. Cmd hacks I added in this list.
I hope you enjoying these cmd tricks 2021 in your windows pc.
their is many tasks and hidden features of windows which only can seen and executed by command prompt commands.
Now you have best command prompt commands.
Lets run it and execute it.
if you like these commands don’t forget to leave your valuable comment here.
If you want any different customized command trick or you know much more interesting cmd hacks let me know view comments.
Thank you