Useful Windows commands

The command prompt is an essential Windows component with which you can fix certain problems, improve system performance, test important components, and learn more about the OS. A list and application of the most useful commands can be found below.

Useful Windows commands

Contents

  1. How to find the command line in Windows 10/8.1/8/7
  2. Useful commands in the command prompt.
  3. IP address and list of network connections?
  4. Clearing the DNS cache.
  5. A list of processes and their closing.
  6. Checking the disk for errors
  7. Cipher -- Data encryption and volume partition cleaning
  8. Driver information
  9. System data validation and recovery

The command prompt is a handy tool that can quickly launch a desired program or a built-in system application. Some important commands cannot be executed outside the command prompt, so any Windows user will have to work with it sooner or later. Useful commands examples will be provided to show you how the command prompt works.

How to find the command line in Windows 10/8.1/8/7

Command prompt access can be done in various ways provided by the system. In different Windows versions, access to the command prompt may slightly change its location so that examples will be given for the most popular versions of the operating system.

The fastest way to access the command prompt is to enter through the “Start” button.

Right-click on the “Start” button and look for “Command Prompt” and “Command Prompt (Admin)”. In some versions of Windows, the command prompt can be replaced by a Windows PowerShell add-in that extends the regular command prompt’s capabilities.

Useful Windows commands

Another way to start a command prompt is to call it through the “Run” function. To call “Run”, press the Win+R key combination and enter the cmd command. Please note that in this case, the command prompt will be launched in the normal mode, not as an administrator.

Useful Windows commands

The other way to call the command prompt is to call it through a “Start” search.

To do this, go to the search and type “cmd” or “command prompt” (even if you enter an incomplete phrase, the desired option will be displayed), and then select the preferred option by right-clicking on the found icon.

Useful Windows commands

This method is perfect for Windows 8 and 8.1 users, where you should perform similar steps in the search box.

To find the command prompt in Windows 7, just go to the Start menu, select “Accessories”, where you also need to run the utility as administrator.

Useful Windows commands

Useful commands in the command prompt.

With the command prompt, the user can perform almost any action that can be done through the standard Windows interface. For example, by entering the control command, you can quickly call up the control panel, and the msinfo32 command will open a page with detailed information about the system.

It is also possible to run programs through a command prompt (for example, you can enter the command notepad, which will call the calculator), and do many other things. There are whole command collections on the web, where you can find out all the commands with a detailed description of each function. Below you will find a list of the most useful commands to which you should pay particular attention.

IP address and list of network connections?

IP address is important information that is useful to know when working in a web. You may need the address when connecting to other users, acting as a server, or in many other cases.

To find out this information, enter “ipconfig” in the command prompt and confirm the action by pressing Enter.

Useful Windows commands

You can enter “ipconfig /all” to display additional data.

Clearing the DNS cache.

DNS cache is a kind of journal where all visits to Internet resources are recorded. From the DNS cache, you can partially restore the deleted browser history and remember important sites. Sometimes there are so many entries that the cache needs to be cleaned.

To do this, use the command prompt and the command “ipconfig /flushdns”

Useful Windows commands

A list of processes and their closing.

The tasklist and taskkill commands are intended to view the list of processes and their emergency ending. Let’s look at each of them individually.

If you enter the tasklist command, you will see the list of current tasks, the amount of memory used by the process, and the PID.

Useful Windows commands

By knowing the PID of the required process, you can forced end it with the taskkill command. For example, to finish the Photoshop program, in our case, you should specify taskkill /PID 9248

Checking the disk for errors

The chkdsk command is used to call the built-in utility designed to check the disk and fix its errors. This program can be launched automatically during an emergency reboot or computer shutdown.

Useful Windows commands

Cipher — Data encryption and volume partition cleaning

The next useful command is Cipher – a particular utility with which you can encrypt and decrypt data and clean up the free disk space (clean up the empty disk space, which may have records of deleted files).

To open the utility, just enter the phrase “Cipher” in the command prompt, and then the built-in Windows encryptor will start. To clean up the data, use the command “cipher /w:D:” (where D is the desired disk).

Windows commands - cipher

Driver information

Removal and reinstalling of out-of-date drivers may take a long time if you do not use the built-in driverquery utility, which shows the entire list of installed drivers with installation dates. By entering the driverquery in the command prompt, detailed information about all drivers will be shown.

Windows commands - driverquery

System data validation and recovery

The Sfc (System File Checker) utility is a useful tool for fixing problems with missing or modified system files, which are important for stable Windows functioning. To run the utility, you need to enter “sfc” in the command prompt with administrator rights. More information about using this command can be found in the article «How to restore and check Windows system files integrity»

Useful Windows commands

Frequently Asked Questions

To clear the DNS cache in Windows open a command prompt or Windows PowerShell and use the command "ipconfig /flushdns".
You can do it with a command prompt. First, you need to know the PID of the desired process. Type the command "tasklist", find the desired process, and note its PID. Then at the command prompt, type the command "taskkill /PID 9248" where 9248 is the number of the PID of the process you want to close.
Use RS Partition Recovery software to recover your important data. It's designed exactly for such cases and allows you to recover data in case of accidental formatting, deletion, drive logical structure corruption, and many other cases. The recovery process is described in detail on our website.
To open the command prompt in Windows, right-click on "Start" and select "Command Prompt (Administrator)". In some Windows versions, the command prompt has been replaced by the Windows PowerShell (Admin) environment.
To check the disk for errors, type "chkdsk" at the command prompt and press "Enter" to start the scan process.
Leave a comment

Related Posts

Your drive has RAW file system
Your drive has RAW file system
What should you do if you try to open a disk or USB drive on your computer, but they can’t be accessed because they have a RAW file system? How can you restore access to a RAW disk or USB … Continue reading
How to recover unsaved OpenOffice Writer documents
How to recover unsaved OpenOffice Writer documents
Has an OpenOffice document been deleted or not saved in the process? Today we will talk about how to recover removed.ODT documents and additional autosave settings.
Data Recovery from RAID Synology NAS DS415+
Data Recovery from RAID Synology NAS DS415+
The use of RAID arrays in NAS devices does not guarantee protection against failures and data loss. For instance, you may encounter a situation where the data on your Synology NAS has been corrupted, or deleted, or the hard drive … Continue reading
How to check RAM for errors in Windows
How to check RAM for errors in Windows
Regularly checking the RAM for errors will help protect yourself from losing important data and other problems. Below we will describe the main ways of RAM checking with built-in Windows tools.
Online Chat with Recovery Software