Monday, August 8

We explain how to use the command prompt in Windows 10 | Digital Trends Spanish

It is much easier to troubleshoot your computer when you know how to use command prompt in Windows 10 and 11. There are many commands that you can use, but we will show you only the most common ones that can be helpful; some of you may never use them, but they’ll make you feel like an expert in no time.

You will be interested in:

When you turn on your computer, what you see is the graphical interface. In fact, you perform the functions through it with the mouse. These commands used to be given with text commands on the keyboard using a tool called the command prompt or CMD (command console), which interpreted these “commands” and acted accordingly.

To use the command console, you must first open it. The quickest and easiest way to do this is to type “CMD” in the Windows search box and click Symbol of the system. An alternative method would be to press the keys Windows + R. Then type “cmd.exe” in the window Run and press Enter.

Note– You may need to run it in Administrator mode to perform some of these commands. If that’s the case, right-click on the command prompt icon and select Execute as an administrator.

The most useful commands

You don’t need to know all the command prompt commands to find any interesting uses. These are our favorites and some of the ones we find most useful.

Help: It is possibly the most important of all the command prompt commands. As you type it, it will present you with a list of available commands. If you do not learn anything else from this guide, you should know that the “help” is there for when you have doubts.

“Command name + /?”: When you enter a certain command (without the quotes), it 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 will come in handy for many reasons. Running it tells you a lot about your computer and your local network, including the IP address of your router, the system you are currently using, and the status of your various network connections.

Ping: Do you need to confirm if your internet connection is officially down or if there is a software problem causing an error? Type the Ping command. It doesn’t matter if it’s or your own personal remote server. You will be able to check for network errors and diagnose their status, speed and quality.

how to use command prompt

Chkdsk: the full name is Check Disk. “Chkdsk” examines the chosen drive for errors. Although there are many Windows and third-party tools to check a drive for errors, Check Disk is a classic that works well and could save you from data loss if you find a problem early enough.

SFC: short for System File Checker, the command, in this case, is “SFC / scannow”. It will scan through all Windows system files to look for any errors and repair them if possible. Warning! This may take some time.

Cls: The command prompt results can be helpful, but they are not well organized or easy to read. If the screen is getting too crowded, just type “Cls” and hit Enter to clear it.

Dir: If you are using the command prompt to navigate your file system, the “Dir” command will display all files and folders within the current folder.

Netstat: This command displays all kinds of information about the existing connections on your computer, including TCP connections, open ports, Ethernet statistics, and the routing table.

Exit: It does exactly what the word says. Can’t reach for the mouse or can’t click the “X” in the upper right corner? Just type “exit” and hit Enter to exit the command prompt.

Shutdown: Although it is not necessary to shut down your Windows computer at night, you can do so through the command prompt and the Start menu. Just type “Shutdown,” hit Enter, and your computer will shut down.

Less known, but worth it

Not all command prompt commands are in common use, but that doesn’t mean there aren’t some useful functions among the less common. These are some of our favorites that often go unnoticed.

Ipconfig / flushdns: it is an extension of the IPConfig command. When you run into strange network or connection problems or change your DNS server, this command will often clear up any problems you are having. Clear the details of the Windows DNS cache.

Assoc: It is used to display and change the associations of file extensions (such as .txt, .doc, etc.). “Asoc” can be a useful command to know the extensions. Typing “assoc [.ext]”–Where .ext is the file type in question– will tell you what it means. For example, if you put “.txt” it will tell you that it is a text file. If you want to change that, you can type “assoc.log = txtfile” and all .log files will be considered text files.

Note– This is a powerful command and should be used with caution.

Cipher: can be used to view and modify encryption information for system files and folders. Depending on the additional parameters applied, you can have it encrypt 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 via the terminal network protocol (Telnet). It is not activated by default in Windows, so to use it you will have to activate it. Open Programs and Features by searching in the Windows search bar or by going to Control Panel> Programs> Programs and Features.

Control Panel screen in Windows 11 to enable Telnet

Once there, click on “Turn Windows Features On or Off” in the upper left corner. Next, check the box next to Telnet Client and click the OK button.

Once enabled, Telnet allows you to access remote devices or servers, although keep in mind that it is completely decrypted (a dream of a hacker). The commands will be very specific to each situation, but will look like, for example: “telnet 80”, which will cause it to try to connect to on port 80. It won’t work, but this is how it might be a typical command.

&: this command will allow you to run two commands at the same time. All you need to do is put “&” between them and they will both run at the same time.

| clip: putting this command after the original command will copy the output directly to your clipboard. Let’s say you want to copy the information from IPConfig, all you need to do is 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. Just type “nslookup” followed by the URL in question and the command prompt will display an IP address.

Some additional tips

Although the above commands are the most useful when using the command prompt, there are more you can run. When learning how to use the command prompt, it is good that you also take note of these handy tricks.

Function keys– Although not used as often in modern software, function keys (F) can do a lot in a command prompt setup:

F1 allows you to paste your last command, character by character.

F2 pastes the last command only on a specified character.

F3 sticks it out completely.

F4 removes a command up to a specified character.

F5 paste the last command used without cycling.

F6 paste “^ Z”.

F7 gives you a list of previously used commands.

F8 paste the used cyclable commands.

F9 allows you to paste a command from the recently used list.

Driverquery– Although this is one command, it is unlikely to be used by many. However, if you ever want to see a complete list of all the drivers currently working on your computer, typing “driverquery” at the command prompt is a great way to do it.

Change CMD color– You can get creative here if you want. If you’re not a fan of classic white text on a black background, you can change the command prompt color scheme with just a few clicks. Click on the edge of the window and a menu will appear Properties (edit). Select the tab Colors and change the colors to your liking.

Compare files– You can conveniently compare a list of differences between similar versions of a file using a simple shortcut via the Compare Files function of CMD. To try, type “FC”, the two file name locations, and the drive letter. It might look like this: “fc C: UsersTestDesktoptest.txt C: UsersTestDesktoptest2.txt”.

Watch star wars: that’s right, you can watch episode IV of Star wars original A new hope (which is certainly not everyone’s favorite). The movie is in ASCII graphics, but you can find it complete with the correct command cheat. First, follow the instructions in our guide to enable Telnet. Then type “telnet” and enjoy watching A new hope in ASCII format.

Editor’s Recommendations