Command Prompt Tricks | Many people think that command prompt Aka CMD is just another boring and useless tool comes built in with windows. But anyone with some knowledge of command prompt can tell you about its usefulness.
Here are many simple commands to do hectic tasks. These CMD hacks save you tons of time. We will surely reveal many secrets of command prompt. So let’s cut the crap and jump straight into command prompt tricks and hacks for 2018.
Run CMD Automatically As Administrator
Many basic command executions require running CMD as an administrator. Many of us forget to run a command prompt as an administrator and had to repeat a lengthy process. To solve this problem you can create a shortcut of command prompt on your desktop. After creating a shortcut right click on shortcut à properties à Advance à Run As Administrator and save it. Now you can never forget to run the command prompt as an administrator.
Saving Output of Any Command In A File
Redirection operators (especially > >>) are very useful in command prompt. These might seems useless but they can help you to save the data produced by a command in a log file. This will help any tech blogger to upload an exact command and its output.
- Also Read: How To Hack WiFi Password Using CMD
For example, you might execute systeminfo > c:\mycomputerinfo.txt to save the information provided by the systeminfo command to that file. You could then attach the file to your forum post.
You can simply do it by executing a command, location, and name of a file.
A simple example is ipconfig /all > “C:\Users\Malik\Desktop\Ping Results.txt”
This command will create a file and save on given location with the exact same name. Redirection operator > will save a file if the name is unique or over right if already exist.
On the other hand >> will save the file if its name is unique or save it to the bottom of without overwriting the original file.
Tree Command To Locate Folders
Tree command is very helpful for anyone who saved tons of data and often forgot the location of folders. You can simply type a location and execute tree command after it to see the structure of folders in your drives.
You can do so by typing [c:\] tree c:\ Or C:users/malik/pictures/tree.
You can learn more about tree command by clicking here. https://jpsoft.com/help/tree.htm
Robocopy And Xcopy For Backups
Robocopy is a great way to create backups just like any third party windows backup program. Robocopy command is not available in Windows XP. Luckily you can use xcopy command to create backups in Windows XP and earlier versions.
To create a backup using robocopy you have to type robocopy followed by files you want to create backup followed by destination to save a backup.
robocopy c:\users\haya\documents e:\backupfolder\documents/copyall/e /r:0 /dcopy:t /mir
You can change the directories and file names and locations to create backups.
Example for xcopy command
xcopy c:\users\haya\documents e:\backupfolder\documents /c /d /e /h /i /k /q /r /s /x /y.
You have to create a script file and to run it in task scheduler with a proper schedule to create your own backups properly.
Easily All Information About Your Computer Network
There are many times when we need to know details of our own computer network connection. Everyone knows that you can find all information in control panel but this information is not in organized form.
On the other hand, you can just type ipconfig/all in command prompt and hit enter to find information about computer network in an organized form. You can clearly see your hostname, IP address, DNS info, and many more. You can also save this information using redirection key as mentioned above.
Use Arrow keys to Load Previously Used Commands
We all think that arrow keys are just for going left, right, up and down in a folder. But in the command prompt, you can save your time by using arrow keys. You can use up and down keys to go to command you executed and then hit the right arrow to execute it.
It saves a lot of time when you forgot something in a command. You can simply arrow up to that command to enter this command automatically to CMD window. This command is now ready for editing.
Use Tab Completion To Automatically Complete
How many times you forget the right path to the file or folder while using CMD. I think everyone is weak in remembering all paths and locations. Don’t worry you can use Tab button to auto-complete your command especially location.
You have to enter the command and file path up to the point you can remember and then hit tab key again and again to select the right to autocomplete path. You can use Shift+TAB to go in reverse order.
Use Quick Edit Mode To Easily Copy And Paste In CMD
This is by far the best secret way to copy and paste in command prompt. You just have to right click on title bar of CMD à Properties à OptionsàEdit Optionsà check Quick Edit Mode and save it by clicking OK. Now quick edit mode is enabled for a lifetime. You can now simply copy anything from cmd. For pasting, you just have to hit right click once.
CMD Hack To Find WiFi Thief
Command prompt can tell you if some unwanted person is connected to your wifi network and using it secretly. You can simply execute ipconfig/all command and save it using redirection keys. Then open your browser and type the default IP of your router. Enter admin and password and find connected devices. Compare information of your device to the ones showing in a router. You have to change the password of your wifi if you find any suspicious device.
Tracing Hackers Using Command Prompt Trick
You can find the list of a computer which is connected to your computer by executing netstat –a command. You can see proto column to see the type of data transmission.
You can also see port used for connection with local address and foreign address. The state tells you the state of the connection. A state can be connected, waiting, or timed out.
I hope you are benefited from every CMD hack, tricks, and secret. We appreciate if you share your favorite Command prompt tricks, hacks, and secrets in comments with us.
Command Prompt TricksCommand Prompt Tricks Command Prompt Tricks Command Prompt Tricks, Command Prompt Tricks, Command Prompt Tricks