Today, when you turn on the computer, what you see is the graphic interface. In fact, you perform the functions through it with the mouse. These orders were previously given with text commands with the keyboard using a tool called a command prompt or CMD (command console), which interpreted those ?commands? and acted accordingly. And even if you think it is a thing of the past, knowing how to use the command prompt can be extremely useful, especially if you are running Windows 10.
To use the command console, you must first open it. The fastest and easiest way to do this is to type "CMD" in the Windows search box and click on the "Command Prompt" button. An alternative method will be to press the Windows key and the "R" key. Then, type "cmd.exe" in the "Run" window and press "Enter."
Note: You may need to run it in Administrator mode to perform some of these commands. If that is your case, right-click on the icon of the system symbol and select "Run as administrator".
The most useful commands
You don't need to know all the command prompt commands to find some interesting use. These are our favorites and some of the ones we consider most useful.
Help: It is possibly the most important of all system command commands. When you write it, you will be presented with a list of available commands. If you do not learn anything more from this guide, you should know that "help" is there for when you have doubts.
Command Name + / ?: When entering a certain command (without the quotes), I will tell you everything you need to know about any of the commands in this list. That is, it shows more detailed information about what that command does and gives examples of how it works.
IPConfig: If you have network problems, IPConfig be very useful for many reasons. When you run it, it tells you a lot about your PC and your local network, including the IP address of your router, the system you are currently using and what is the status of your various network connections.
Ping: Do you need to confirm if your internet connection is officially every or if there is any software problem that causes an error? Type the Ping command. It doesn't matter if it's Google.com or your own personal remote server. You can check for network errors and diagnose their status, speed and quality.
Chkdsk: The full name is Check Disk. "Chkdsk" examines the chosen unit for errors. Although there are many Windows and third-party tools to check for errors in a drive, Check Disk is a classic that works well and can save you data loss if you find a problem soon enough.
SFC: Abbreviation for System File Checker, the command, in this case, is ?SFC / scannow?. Scan through all Windows system files to look for any errors and repair them if possible. Warning! This may take some time.
Cls: The results of the system symbol may be useful, but they are not well organized or easy to read. If the screen is getting too full, simply type "Cls" and press Enter to erase it.
Dir: If you are using the command prompt to navigate your file system, the "Dir" command will show all files and folders within the current folder.
Netstat: This command shows all kinds of information about the existing connections on your PC, including TCP connections, open ports, Ethernet statistics and the routing table.
Exit: It does exactly what the word says. You don't want to reach the mouse or you can't click on the ?X? in the upper right corner? Simply type "exit" and press Enter to exit the command prompt.
Shutdown: Although it is not necessary to turn off the Windows 10 computer at night, you can do so through the command prompt and the Start menu. Simply type "Shutdown", press Enter and your PC will shut down.
Less known, but worth it
Not all system command commands are commonly used, but that does not mean that there are not some useful functions among the least common. These are some of our favorites that often go unnoticed.
Ipconfig / flushdns: It is an extension of the IPConfig command. When you encounter strange network or connection problems or change your DNS server, this command will often clear up any problems you have. Clear the details of the Windows DNS cache.
Assoc: It is used to display and change associations of file extensions (such as .txt, .doc, etc.). "Assoc" can be a useful command to know the extensions. Writing "assoc (.ext)" where .ext is the type of file in question, I will tell you what it means. For example, if you put ?.txt? you will say that it is a text file. If you want to change that, you can write ?assoc.log = txtfile? and all the files.log will be considered text files. Note: This is a powerful command and should be used with caution.
Cipher: It can be used to view and modify the encryption information of system files and folders. Depending on the additional parameters applied, you can have it encrypt the files to protect them from prying eyes, create new encryption keys and search for existing encrypted files. For the full list of parameters, see the full Microsoft breakdown.
Telnet: It is not normally used to access modern devices remotely, but some may still require configuration through the terminal network protocol (Telnet). It is not activated by default in Windows 10, so to use it you will have to activate it. Open Programs and features by looking in the Windows search bar or by going to Control panel> Programs> Programs and features.
Once there, click on "Activate or deactivate Windows features" in the upper left corner.
Next, check the box next to Telnet Client and click on the Accept button.
Once enabled, Telnet allows you to access remote devices or servers, even if you keep in mind that it is completely decrypted (the dream of a hacker). The commands will be very specific for each situation, but they will look like, for example, ?telnet DigitalTrends.com 80?, which will make you try to connect to DigitalTrends.com on port 80. Not work, but this is how it could be typical command.
&: This command allows you to execute two commands at the same time. All you need to do is put ?&? between them and both will run at the same time.
| clip: put this command after the original command copy the output directly to your clipboard. Let's say you want to copy the IPConfig information, all you need is to enter ?ipconfig | clip ?and the results will be added to your clipboard, so you can paste them wherever you want.
Nslookup: Do you want to find the IP address of any website? This command will do it for you. Simply type "nslookup" followed by the URL in question and the command prompt show an IP address.