{"id":24937,"date":"2022-02-17T14:01:57","date_gmt":"2022-02-17T14:01:57","guid":{"rendered":"https:\/\/ded9.com\/?p=24937"},"modified":"2025-11-04T11:36:50","modified_gmt":"2025-11-04T11:36:50","slug":"the-most-common-cmd-commands","status":"publish","type":"post","link":"https:\/\/ded9.com\/de\/the-most-common-cmd-commands\/","title":{"rendered":"Master CMD: Essential Windows Commands You Should Know"},"content":{"rendered":"<p><span style=\"font-size: 12pt;\">Command Prompt Is Still A Great Tool For Windows.\u00a0Here&#8217;s A Look At Some Of The Most Commonly Used CMD Commands Every Windows User Should Know.<\/span><\/p>\n<p><strong>Command<\/strong> prompts slowly disappear from the\u00a0<strong>Windows<\/strong> interface for logical reasons: CMD commands are the most unnecessary <strong>Windows<\/strong> utility, primarily text-based inputs.<br \/>\nHowever, many of these commands are still widely used, and new features have even been added to them in <a href=\"https:\/\/ded9.com\/how-to-remove-the-windows-8-10-and-11-password-with-or-without-the-previous-password\/\"><strong>Windows<\/strong>\u00a08<\/a> and 10.<\/p>\n<p>Below, we have compiled the essential commands that every <strong>Windows<\/strong> user should know.<\/p>\n<h2><span style=\"font-size: 18pt;\">Windows <a href=\"https:\/\/en.wikipedia.org\/wiki\/Cmd.exe\" target=\"_blank\" rel=\"noopener\">CMD<\/a> Commands<\/span><\/h2>\n<h3><span style=\"font-size: 18pt;\">1- Assoc<\/span><\/h3>\n<h3><img fetchpriority=\"high\" decoding=\"async\" class=\"aligncenter wp-image-24939\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands.png\" alt=\"Assoc\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>Most files in\u00a0<strong>Windows<\/strong> are associated with a specific program and open with that program by default.\u00a0Too often, remembering these connections can be confusing.\u00a0If you have this problem, you can enter the Assoc command to display a complete list of filename extensions and related programs.<\/p>\n<p>You can even change file connections to programs with the same command. For example, command = Assoc. txt changes the relationship of text files to any program you put after the &#8220;=&#8221; sign. The Assoc command detects both extension letters and application letters.<\/p>\n<p>Windows 10 can quickly change file relationships with different programs in a more user-friendly interface. To do this, go to Settings (Windows + I)&gt; Apps&gt; Default apps&gt; Choose default app by file type.<\/p>\n<h3><span style=\"font-size: 18pt;\">2- Cipher<\/span><\/h3>\n<h3><img decoding=\"async\" class=\"aligncenter wp-image-24940\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-1.png\" alt=\"Cipher\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-1.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-1-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>Deleting files on a mechanical hard drive does not completely erase them. Those files you delete are labeled as those that are no longer available, and the space they occupy is freed up. We will still retrieve files until the system overwrites them with new data, which can be time-consuming.<\/p>\n<p>However, the Cipher command clears a random path or data written to it. For example, remove the C drive by using the cipher \/ w: d command. Running it clears free or empty space on the drive. Of course, this command does not write anything to the deleted data, so running this command will not delete the files you need.<\/p>\n<h3><span style=\"font-size: 18pt;\">3- Driverquery<\/span><\/h3>\n<h3><img decoding=\"async\" class=\"aligncenter wp-image-24941\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-2.png\" alt=\"Driverquery\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-2.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-2-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>Drivers are still one of the most important software programs installed on a computer. Drivers that are not correctly configured, are missing, or even outdated, can cause any model you can think of. So, it&#8217;s best to have access to everything you have on your computer.<\/p>\n<p>Driverquery does this. For even more information, run this command as a driver query.<\/p>\n<h3><span style=\"font-size: 18pt;\">4- File Compare<\/span><\/h3>\n<p>You can use this command to identify differences in the text between two files. Just type the knowledge in FC with the directory path and file name of the two files you want to compare. This command is more advantageous for programmers when finding small changes between two file versions.<\/p>\n<p>You can run this command in several different ways to get more information. If you type with b \/, only the binary output is compared. Only the ski text is reached if you use it with \/ \/.<\/p>\n<p>For example, you can use it as follows:<\/p>\n<p>fc \/ l &#8220;C: \\ Program Files (x86) \\ example1.doc&#8221; &#8220;C: \\ Program Files (x86) \\ example2.doc&#8221;<\/p>\n<p>The above command compares skeletal text in two Word files.<\/p>\n<h3><span style=\"font-size: 18pt;\">5- Ipconfig<\/span><\/h3>\n<p>This command displays your computer&#8217;s IP address. If you use a router, you will see the router&#8217;s local network address.<\/p>\n<p>The Ipconfig command is handy because of its plugins. ipconfig \/ release first, ipconfig \/ renew then forces the computer to request a new IP address; this is when the laptop claims one is not available. You can use the ipconfig \/ flushdns command to refresh DNS.<\/p>\n<h3><span style=\"font-size: 18pt;\">6- Netstat<\/span><\/h3>\n<p>Entering the netstat command will display a list of currently open ports and TCP addresses. It even tells you the port&#8217;s status, whether it is listening, set up, or closed.<\/p>\n<p>This command is handy when looking for a problem with devices connected to a computer or when you are afraid that a Trojan has infected your system. You are trying to detect a malicious connection.<\/p>\n<h3><span style=\"font-size: 18pt;\">7- Ping<\/span><\/h3>\n<p>Sometimes, you need to know if packets reach a specific device on the network. It is where Ping comes in handy.<\/p>\n<p>Type ping with an IP address or web address to send a series of test packets to the specified address. If the packets reach their destination and return, the device can communicate with the router. But if they do not reach their goal, you will notice that something is in the way of communication between the device and the computer.<\/p>\n<h3><span style=\"font-size: 18pt;\">8- Pathping<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24942\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-3.png\" alt=\"Pathping\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-3.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-3-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>If there are multiple routers between your computer and the device you are testing, you can use Pathping. This command is a more advanced version of the ping command. Type it in the IP address, but unlike ping, it will display the test packets&#8217; path information.<\/p>\n<h3><span style=\"font-size: 18pt;\">9- Tracert<\/span><\/h3>\n<p>This command is similar to pathping. Type it with the IP address or domain you want. You will receive information about each step of the journey between your computer and the destination. However, the difference between tracers and pathping is that tracers track the time between each hop between servers or devices in milliseconds.<\/p>\n<h3><span style=\"font-size: 18pt;\">10- Powercfg<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24943\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-4.png\" alt=\"Powercfg\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-4.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-4-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>The powercfg command is compelling for managing and monitoring how much energy your computer consumes. You can work in hibernation using the powercfg hibernate on and powering off orders. You can view power-saving statuses currently available on your computer using the powercfg \/ a command.<\/p>\n<p>Another command used is powercfg \/ device query s1_supported, which displays a list of all the computer devices supporting connected standby. When enabled, you can use these devices to take your laptop out of standby, even remotely.<\/p>\n<p>You can activate it by selecting the device in Device Manager, opening the properties, going to the Power Management tab, and checking to Allow this device to wake the computer.<\/p>\n<p>The Powercfg \/ last wake command indicates which device last woke the computer.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24944\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-5.png\" alt=\"The Powercfg \/ last wake command indicates which device last woke the computer.\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-5.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-5-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/p>\n<p>Use the powercfg \/ energy command to create a complete and detailed report on your computer&#8217;s power consumption. After completing the order, the relevant information is stored in the specified directory.<\/p>\n<p>This report alerts you to any system errors that increase the system&#8217;s power consumption, such as when devices block specific sleep modes.<\/p>\n<p>Windows 8 added the powercfg \/ battery report command, which analyzes the time and length of charge and discharge cycles, average battery life, and estimated battery capacity.<\/p>\n<h3><span style=\"font-size: 18pt;\">11- Shutdown<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24945\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-6.png\" alt=\"Shutdown\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-6.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-6-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>The Shutdown command used to shut down the system has been added to Windows 8.<\/p>\n<p>The shutdown \/ r \/ o command restarts the computer and displays the Advanced Start Options menu.<\/p>\n<h3><span style=\"font-size: 18pt;\">12- Systeminfo<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24946\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-7.png\" alt=\"Systeminfo\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-7.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-7-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>This command gives an accurate report of your computer&#8217;s configuration. The list includes operating systems and hardware. For example, you can see the exact date of Windows installation, the time of the last system boot, the BIOS version, general and available memory, installed patches, network card settings, and so on.<\/p>\n<p>Use the system info \/ s command with the computer&#8217;s hostname or local area network to retrieve information about that system. Of course, you may need to enter a few extra keys for your domain, username, and password:<\/p>\n<p>systeminfo \/ s [host_name] \/ u [domain] \\ [user_name] \/ p [user_password]<\/p>\n<h3><span style=\"font-size: 18pt;\">13 &#8211; System File Checker<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24947\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-8.png\" alt=\"System File Checker\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-8.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-8-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>This command runs the AutoScan and Restore tool, focusing on Windows system files.<\/p>\n<p>You must have administrator privileges to execute this command. Enter the SFC \/ scannow command. If it finds corrupted or missing files, it will automatically replace them with cached copies stored by Windows for that purpose only.<\/p>\n<h3><span style=\"font-size: 18pt;\">14- Tasklist<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24948\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-9.png\" alt=\"Tasklist\" width=\"533\" height=\"278\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-9.png 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-9-300x156.png 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>Use the tasklist command to get a list of everything that runs on your computer.<\/p>\n<p>If you use the command Tasklist -svc, Services related to each task are displayed, and Tasklist -v shows more details on each job. Tasklist -m lists the DLL files associated with each active duty. These commands are widely used for advanced troubleshooting.<\/p>\n<h3><span style=\"font-size: 18pt;\">15- Chkdsk<\/span><\/h3>\n<h3><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-24949\" src=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands.jpeg\" alt=\"Chkdsk\" width=\"533\" height=\"288\" srcset=\"https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands.jpeg 533w, https:\/\/ded9.com\/wp-content\/uploads\/2022\/02\/windows-command-prompt-commands-300x162.jpeg 300w\" sizes=\"(max-width: 533px) 100vw, 533px\" \/><\/h3>\n<p>Windows automatically marks the drive to scan chkdsk when it indicates that the local sector drive has a broken sector, missing clusters, or other physical or logical errors.<\/p>\n<p>If you think the hard drive is broken, scan it yourself. The most basic command is chkdsk c, which quickly scans the C drive without restarting the computer. Using parameters such as f \/ or r \/ or x \/ or b \/ as: chkdsk \/ f \/ r \/ x \/ bc, chkdsk corrects all errors, recovers data, or clears the list of bad sectors.<\/p>\n<h2>FAQ<\/h2>\n<div id=\"rank-math-rich-snippet-wrapper\"><div id=\"rank-math-faq\" class=\"rank-math-block\">\n<div class=\"rank-math-list \">\n<div id=\"faq-1\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">What is CMD?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>CMD is Windows\u2019 command-line tool for executing commands to manage files, system settings, and network tasks.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-2\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Which commands are used for files and folders?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Common ones: dir, cd, mkdir, del, copy, ren, cls, exit.<\/p>\n\n<\/div>\n<\/div>\n<div id=\"faq-3\" class=\"rank-math-list-item\">\n<h3 class=\"rank-math-question \">Which commands help with networking and diagnostics?<\/h3>\n<div class=\"rank-math-answer \">\n\n<p>Use ipconfig, ping, tracert, systeminfo, and net commands for network and system checks.<\/p>\n\n<\/div>\n<\/div>\n<\/div>\n<\/div><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Command Prompt Is Still A Great Tool For Windows.\u00a0Here&#8217;s A Look At Some Of The Most Commonly Used CMD Commands Every Windows User Should Know. Command prompts slowly disappear from the\u00a0Windows interface for logical reasons: CMD commands are the most unnecessary Windows utility, primarily text-based inputs. However, many of these commands are still widely used, [&hellip;]<\/p>\n","protected":false},"author":6,"featured_media":24938,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[70],"tags":[27],"class_list":["post-24937","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-cmd"],"acf":[],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/24937","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/users\/6"}],"replies":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/comments?post=24937"}],"version-history":[{"count":6,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/24937\/revisions"}],"predecessor-version":[{"id":264868,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/posts\/24937\/revisions\/264868"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media\/24938"}],"wp:attachment":[{"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/media?parent=24937"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/categories?post=24937"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ded9.com\/de\/wp-json\/wp\/v2\/tags?post=24937"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}