15 important CMD commands for Windows users
Use of commands in the Windows has been limited and even Microsoft considered Command Prompt as an unnecessary tool in this graphics based era and pushed command line aside. But still there are few commands which every Windows user should know. Let us see here few important CMD commands which are important for Windows users.
Microsoft has added many new feature in Windows 8 and many files in the Windows are associated with a particular program which open those files by default. But sometimes remembering the programs which open the specific files can be difficult. Using the command assoc you can see the complete list of file extensions and programs which they are connected with. To change the file associations you can extend the command, like assoc.txt will change the file association for the text files to other program which enter beside equal sign.
If you delete files from the mechanical hard drive, actually those files were not deleted at all. Instead it shows those files are no longer available and the space they were using is free. Those deleted files remain recoverable until they are overwritten with new data.
CIpher command is used to wipe the directory completing by writing some random data to it. For example, let use take to wipe out the D drive use Cipher/w:c which wipes out the free space on the drive. This command doesn’t overwrite the undeleted data, so that you will not wipe files by executing this command.
Drivers are the very important programs for all the utilities on your PC. If any drivers were not configured properly can cause some problems and cause few hardware problems too. So it is the best thing to access the list of all drivers on your computer. Driverquery command is used to list all drivers installed on your PC and driverquery-v to get more information that includes the directory in which driver is installed.
This is very popular and important command which shows the IP address that your PC is using currently. If you are using router, you will receive local network address of the router which you are using. With extensions like ipconfig/release or ipconfig/renew can prompt your PC to ask for new IP address. ipconfig/flushdns is used to refresh your DNS address.
5. File Compare
As the name itself says, this command is used to compare the text between two files and very helpful for the programmers and writers to find out the minute changes between two version of a single file. Just type fc and enter the directory and the path name of two files which you would like to compare.
This command will provide the complete list of the Ports that are opened currently and the related IP addresses. netstat-en will give all information regarding the ports and it also tells the state of the port like whether it is in listening mode, established or closed. This is very useful in cases like if you want to troubleshoot devices which are connected to your PC and if it is infected with trojan and trying to locate the malicious connection.
Ping is helpful to check whether the packets are making it to the particular network device. Using Ping along with IP address or web domain will send the series of the packets to particular address. If they returned, it means that the device is able to communicate with your PC, if it fails then it means that there is something blocking the communication between PC and the device.
It is the advanced version of the Ping, which is useful when there are multiple routers between the PC and the device that you are testing. Similar to ping it can also be used by typing pathping along with IP address.
Tracert command is used to trace the domain which you like. It can be used similar to pathping like enter the command followed by IP address or domain and it will give you the information about every step in the route between target and your PC.
Windows 8 support a new command shutdown which shutdown your PC. With the extension shutdown/r/o, it restarts your PC and launches Advanced Start Options menu, where you can access the safe mode and Windows recovery utilities. When you want to restart your PC for the troubleshooting purposes then this command is very useful.
Powercfg is the very useful and powerful command which is used o manage and track how your PC uses the energy. With the extensions it has so many applications.
- Powercfg/hibernate on and powercfg/hibernate off commands are used to manage hibernation.
- powercfg/a command is used to view the power saving states which is currently available on your PC.
- Powercfg/devicequery s1_supported displays list of devices on your PC which support connected standby. With this command the devices can be used to bring your PC out off standby even remotely.
- powercfg/lastwake will display which device last woke your PC from sleep.
- Powercfg/energy will give you the detailed power consumption report of your PC.
12. System File checker
System File Checker is the tool which automatically scan and repair your Windows system files. sfc/scannow command will find the corrupt or missing files and they will be replaced automatically using cached copies in Windows.
13. Recovery Image
All the Windows device ship out the factory with the recovery image, but this image may include a bloatware you would haven’t re-installed. If you have uninstalled the software then you can create a new image using recimg command. This command will give you the detailed explanation for how to use it.
The name itself suggests that it lists all the tasks that are currently running on your PC, which is similar to the Task Manager application on your PC. This command may even find the tasks that are hidden from view in that utility. It can be used with extensions like Tasklist-svc which show the services related to each task and tasklist-v is used to get more details of the task, tasklist-m is used to locate .dll files that are associated with active tasks.
Tasks which appear with the tasklist command will contain executable and process ID that are associated with them. A program can be force stopped using taskkill-im followed by the executable name, taskkill -pid followed by process ID. This is also but similar to the task manager which is used to kill unresponsive programs.