{"id":13438,"date":"2025-09-16T15:31:20","date_gmt":"2025-09-16T11:31:20","guid":{"rendered":"https:\/\/www.temok.com\/blog\/?p=13438"},"modified":"2026-04-20T13:51:56","modified_gmt":"2026-04-20T09:51:56","slug":"windows-command-prompt-cheat-sheet","status":"publish","type":"post","link":"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/","title":{"rendered":"Windows Command Prompt Cheat Sheet: Basic To Advanced Commands"},"content":{"rendered":"<span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 8<\/span> <span class=\"rt-label rt-postfix\">min read<\/span><\/span><p>You&#8217;re not the only one who frequently forgets Windows CMD commands. Although it might be challenging to remember all the correct commands, the Command Prompt is still a useful tool for controlling files, programs, storage, networks, and system settings. Because of this, having a handy Windows Command Prompt Cheat Sheet\u2014whether you print it off or save it to your desktop\u2014can be a huge help.<\/p>\n<p>It&#8217;s smart to have CMD commands on your computer or paper as a CMD commands cheat sheet\u00a0since sometimes you forget them when using Microsoft Windows. The most frequently used commands are included in this Windows 11 command prompt cheat sheet, although it is not comprehensive. However, keep a copy of this command prompt commands cheat sheet\u00a0on your working desk, in your pocket, or with you at all times.<\/p>\n<p>Keep reading and exploring to learn the best Windows CMD commands cheat sheet you can ever get in 2025.<\/p>\n<p><img data-recalc-dims=\"1\" loading=\"lazy\" decoding=\"async\" class=\"aligncenter size-full wp-image-17630\" src=\"https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?resize=750%2C500&#038;ssl=1\" alt=\"Windows Command Prompt Cheat Sheet\" width=\"750\" height=\"500\" srcset=\"https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?w=750&amp;ssl=1 750w, https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?resize=300%2C200&amp;ssl=1 300w, https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?resize=24%2C16&amp;ssl=1 24w, https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?resize=36%2C24&amp;ssl=1 36w, https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?resize=48%2C32&amp;ssl=1 48w\" sizes=\"auto, (max-width: 750px) 100vw, 750px\" \/><\/p>\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_83 counter-hierarchy ez-toc-counter ez-toc-grey ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a1bb643af4a4\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #999;color:#999\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a1bb643af4a4\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#What_is_the_Windows_Command_Line\" >What is the Windows Command Line?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#The_Best_Windows_Command_Prompt_Cheat_Sheet_in_2025\" >The Best Windows Command Prompt Cheat Sheet in 2025<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#Directory_Navigation\" >Directory Navigation<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#File_Management\" >File Management<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#Disk_Management\" >Disk Management<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#System_Information_and_Networking\" >System Information and Networking<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#Process_Management\" >Process Management<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#Shortcut_keys\" >Shortcut keys<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#Conclusion\" >Conclusion<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-10\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#FAQs_Frequently_Asked_Questions\" >FAQs (Frequently Asked Questions)<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-11\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#How_Do_I_Get_A_List_Of_Command_Prompts\" >How Do I Get A List Of Command Prompts?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-12\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#What_Cool_Things_Can_I_Do_In_CMD\" >What Cool Things Can I Do In CMD?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-13\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#What_Are_The_Basic_Commands_In_CMD\" >What Are The Basic Commands In CMD?<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-14\" href=\"https:\/\/www.temok.com\/blog\/windows-command-prompt-cheat-sheet\/#How_To_Use_CMD_For_Everything\" >How To Use CMD For Everything?<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2><span class=\"ez-toc-section\" id=\"What_is_the_Windows_Command_Line\"><\/span><strong>What is the Windows Command Line?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You may run commands on your machine using the textual interface known as the Windows command line. Additionally, the command line (CMD), sometimes known as the &#8220;command prompt&#8221; or just &#8220;prompt,&#8221; is a text-based tool for managing your computer and is used to issue, produce, or execute instructions. Nonetheless, the command line may be used for several fixes, such as launching applications and obtaining system preferences. Although it may appear intimidating at first, using the command line is actually rather easy. Furthermore, you may quickly learn how to use Windows&#8217; command line functions to run your computer more efficiently with a little work.<\/p>\n<p>Additionally, the command-line terminal for Microsoft Windows PCs is the Microsoft Windows commands prompt, which is comparable to the Terminal in Unix and <a href=\"https:\/\/www.temok.com\/linux-virtual-private-server-vps-usa\" target=\"_blank\" rel=\"noopener\">Linux<\/a>. Although it is not MS-DOS, it mimics a number of command-line structures and features from Microsoft&#8217;s now-defunct text-only <a href=\"https:\/\/blog.temok.com\/operating-systems\/\" target=\"_blank\" rel=\"noopener\">computer operating systems<\/a>. Now, we will talk about some of the useful Windows command prompt cheat sheet you will need in your daily use.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"The_Best_Windows_Command_Prompt_Cheat_Sheet_in_2025\"><\/span><strong>The Best Windows Command Prompt Cheat Sheet in 2025<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Here is the best Windows commands cheat sheet you can ever get in 2025:<\/p>\n<h3><span class=\"ez-toc-section\" id=\"Directory_Navigation\"><\/span><strong>Directory Navigation<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>You may inspect and move directories with the use of this command line cheat sheet Windows.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Explanation<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">c:<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Change the present drive to the C:\\ drive.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">d:<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Change the existing drive to the D:\\ drive.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CD c:\\path\\to\\my_folder<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To change directory to c:\\path\\to\\my_folder<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CD..<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To navigate to the parent directory of the existing working directory file.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CD .\\new_folder<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To navigate to the folder new_folder located in the existing working directory.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CD \/D d:\\videos\\<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Change the present drive to D:\\ and access the folder videos on it.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display files and folders in the existing directory<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/A c:\\apps\\<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display files &amp; folders in the directory c:\\apps\\<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/A:D<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display only folders (D: directories)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/A:-D<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display only files (D: directories; -: not)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/A:H<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display hidden files &amp; folders<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/O<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display files &amp; folders sorted alphabetically.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/O:S<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display files &amp; folders sorted by file size from least to largest.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/O:-S<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display files and folders organized by file size from largest to smallest<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DIR \/B<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display only the names of files &amp; folders in the present working directory file<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SORT<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Take data from a source file\/pipeline, sort its insides alphabetically (defaulting: A to Z and vice versa), and display the output.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SORT &#8220;C:\\music\\playlist.m3u&#8221;<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To sort the contents of C:\\music\\playlist.m3u line by line.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">MOVE<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To move a file or files.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">MOVE c:\\f1\\text.txt c:\\f2<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Move the file text.txt from a folder c:\\f1 to another folder c:\\f2<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">MD new_folderMAKEDIR new_folder<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To create a new folder called new_folder in the existing directory.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">RD new_folderRMDIR new_folder<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To delete the folder called new_folder in the existing directory.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TREE<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Show the directory building of a disk\/folder.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TREE &#8220;C:\\Program Files&#8221;<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Show the directory construction of the folder &#8220;Program Files&#8221; on the disk C:\\<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TREE C:\\ \/F<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display the names of the records in each folder in the file directory structure of the C:\\ drive.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ATTRIB<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display\/set the characteristics of the files in the current directory<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ATTRIB +H +S +R myItem<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Hide a file\/folder myItem<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Also Read:<\/strong> <a href=\"https:\/\/blog.temok.com\/400-linux-basic-commands-you-should-know\/\" target=\"_blank\" rel=\"noopener\">400+ Linux Basic Commands You Should Know<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"File_Management\"><\/span><strong>File Management<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The command line cheat sheet\u00a0listed below is used to manage and work with files.<\/p>\n<p>However, similar to Unix, CMD allows pipelines. By placing the pipe character &#8220;|&#8221; between two commands, you may send the output of one to the next. Moreover, here is the File Management Windows Command Prompt Cheat Sheet:<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Explanation<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">COPY text.txt C:\\schoolwork<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To copy the file text.txt to a folder with the path C:\\schoolwork.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DEL text.txtERASE text.txt<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Delete the file text.txt<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">REN text.txt script.batRENAME text.txt script.bat<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Rename the file text.txt to script.bat<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">REPLACE .\\src\\hey.txt .\\dest<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To overwrite; replace a file named hello.txt in a local folder src with an additional hello.txt in a local folder dest, both files allocating the same name.<br \/>\nWarning: Don&#8217;t postulate .\\dest\\hey.txt anywhere here.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">XCOPY<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Copy files and directory trees to an alternative folder.<br \/>\nXCOPY is similar to COPY, but with extra switches to specify the source and end point paths in detail.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">XCOPY \/S folder1 folder2<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Copy folders &amp; subfolders of folder1 to folder2<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ROBOCOPY<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Robust copying of files &amp; directories: by default, such copying only happens if the source and <a href=\"https:\/\/blog.temok.com\/api-endpoint\/\" target=\"_blank\" rel=\"noopener\">endpoint<\/a> differ in time stamps or file sizes.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">EXPAND gameData.cab<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Decompresses the compressed .CAB filing cabinet file, gameData.cab<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">FC file1.ext file2.ext<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Compare the contents of 2 files (file1.ext, file2.ext) and display non-matching lines<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">COMP file1.ext file2.ext<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Compare the contents of 2 files (file1.ext, file2.ext) and display non-matching items<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">FIND &#8220;python&#8221; in run.bat<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Output every line that covers a text string (which you must encircle in quotation marks) &#8220;python&#8221; in the file run.bat<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">FIND \/C &#8220;python&#8221; in run.bat<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Count every line that covers a text string (which you must encircle in quotation marks) &#8220;python&#8221; in the file run.bat<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">PRINT resume.txt<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Print the contents of the file resume.txt<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">OPENFILES \/QUERY<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Query\/display open files<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">OPENFILES \/DISCONNECT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Disconnect files unlocked by network users.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TYPE test.txt<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">It displays the contents of the file test.txt type<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TYPE playlist.m3u SORT \/unique \/o C:\\work\\unique_play.m3u<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">It sorts a file playlist.m3u and output only the exclusive values to a file C:\\work\\unique_play.m3u<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">MORE<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display the contents of one or more files, one display screen at a time.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ASSOC<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display or change the connotation between a file extension and a file type<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NOTEPAD<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Open the Notepad app from the CMD.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><strong>Also Read:<\/strong> <a href=\"https:\/\/blog.temok.com\/docker-commands-cheat-sheet\/\" target=\"_blank\" rel=\"noopener\">Docker Commands Cheat Sheet: Mastering Your Ultimate Cheat Sheet<\/a><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Disk_Management\"><\/span><strong>Disk Management<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The following Windows Command Prompt Cheat Sheet\u00a0is simple to complete and may be automated on CMD.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Explanation<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CHKDSK<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Check &amp; repair disk problems (local disks only)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CHKDSK \/F A:<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To fix <a href=\"https:\/\/blog.temok.com\/508-resource-limit-is-reached\/\" target=\"_blank\" rel=\"noopener\">errors<\/a> on A: drive.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CHKDSK \/R A:<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To recover data on A: drive.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CHKDSK \/X A:<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Dismount drive A:<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CIPHER \/E classified<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To encrypt the folder: classified.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CIPHER \/D secret_recipe.txt<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To decrypt the file secret_recipe.txt<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DEFRAG<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">For Disk Defragmentation<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CHKNTFS<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display\/modify disk-checking on startup<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">COMPACT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display\/change the density of files in NTFS partitions<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">CONVERT<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Convert the FAT disk volume to NTFS.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DISKPART<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display and regulate disk partition properties<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">FORMAT<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To format the disk<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">FSUTIL<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">For file system management<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">LABEL d:x<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To rename disk D:\\ to X:\\<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SUBST p: c:\\taxes<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To assign drive P:\\ to the local folder C:\\taxes<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SUBST p: \/D<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To remove the path represented by P:\\<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">RECOVER d:\\data.dat<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Recover the file data.dat from a bad or defective disk D:\\<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">VOL<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display the current disk volume tag and serial number.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">POWERCFG<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Control power settings and organize Hibernate\/Standby modes<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SFC \/SCANNOW<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Scan and bring up-to-date protected system files.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"System_Information_and_Networking\"><\/span><strong>System Information and Networking<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>When <a href=\"https:\/\/www.technology-solved.com\/troubleshoot-a-computer\/\" target=\"_blank\" rel=\"noopener\">troubleshooting computers<\/a> and computer networks, the following Windows Command Prompt Cheat Sheet might become useful.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Explanation<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">VER<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display the current operating system version.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SYSTEMINFO<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">List system configuration<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">HOSTNAME<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Show the <a href=\"https:\/\/blog.temok.com\/what-is-private-dns\/\" target=\"_blank\" rel=\"noopener\">computer&#8217;s hostname<\/a> on the network.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DRIVERQUERY<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Show all installed device drivers.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">DATE<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display\/set system date<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TIME<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display\/set system time<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">GPRESULT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display the Resultant Set of Policy (RSoP) info for a remote user and computer.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">GPUPDATE<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Update group policies<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">IPCONFIG<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display Windows IP network configurations.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">IPCONFIG \/release<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Release your current local IP address.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">IPCONFIG \/renew<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Request a new local IP address.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">IPCONFIG \/flushdns<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Reset the contents of the <a href=\"https:\/\/blog.temok.com\/how-to-fix-dns-server-not-responding\/\" target=\"_blank\" rel=\"noopener\">DNS server<\/a> client resolver cache.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">PING google.com<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Send ICMP requirements to the target google.com and check the host availability.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">PATHPING<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Trace route and deliver network latency and packet loss for individually router and link in the path<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NET<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">It provides various network services.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NET use M: \\\\gameServ \/user: &#8220;ReadyPlayerOne&#8221; player1<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">It assigns as disk M:\\ the path \\\\gameServ, logging in as &#8220;ReadyPlayerOne&#8221; and password &#8220;player1&#8221;<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TRACERT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To find the <a href=\"https:\/\/blog.temok.com\/ip-address\/\" target=\"_blank\" rel=\"noopener\">IP address<\/a> of any remote host.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NSLOOKUP<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To find IP addresses on a nameserver.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ROUTE<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To manipulate network routing tables.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ROUTE PRINT<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Displays network route details<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">ARP -A<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">List IP addresses and conforming physical addresses (Address Resolution Protocol)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NETSH<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Configure network boundaries, Windows firewall, routing, and remote access<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">NETSTAT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display current TCP\/IP network links and protocol statistics<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">GETMAC<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Shows all the Apple MAC addresses of the network adapters<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Process_Management\"><\/span><strong>Process Management<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>The following Windows Command Prompt Cheat Sheet\u00a0is similar to those in Task Manager. Keep in mind that variables are called in arithmetic or logical statements by surrounding them in two &#8220;%&#8221; marks, such as &#8220;%a%.&#8221;<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Explanation<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SCHTASKS<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Create\/edit a task on Task Scheduler. Use this to create arranged tasks in Disk Management.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SET<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">List environment variables<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">PATH<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Display\/change the list of folders kept in the %PATH% environment variable<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SHUTDOWN \/R<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">To restart the computer<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">SHUTDOWN \/S \/T 60<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">To shut down the computer 60 seconds from now.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKLIST<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">List running tasks<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKLIST \/SVC<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Show services related to each task<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKLIST \/V<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Display detailed task information.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKLIST | FIND &#8220;1234&#8221;<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Get the name of the executable related to the process ID (PID) of 1234<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKKILL<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">End one or more tasks.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKKILL \/IM &#8220;msedge.exe&#8221;<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Terminate all Microsoft Edge instances:<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">TASKKILL \/PID 10736<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Terminate process with PID of 10736<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">REGREGEDIT<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Registry Editor<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">RUNAS \/USER:user2 program1<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Execute a program program1 as an alternative user user2<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">POWERSHELL<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Open a <a href=\"https:\/\/blog.temok.com\/powershell-vs-cmd\/\" target=\"_blank\" rel=\"noopener\">PowerShell<\/a> instance.<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h3><span class=\"ez-toc-section\" id=\"Shortcut_keys\"><\/span><strong>Shortcut keys<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Any Windows Command Prompt Cheat Sheet\u00a0must include techniques to make your job go more quickly, like the following.<\/p>\n<table style=\"border-collapse: collapse; width: 100%;\">\n<tbody>\n<tr>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Commands<\/th>\n<th style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Effect<\/th>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Tab<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Autocomplete<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">Ctrl+F<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Find text in console (opens dialog box)<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F1, F3, F5, F8<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Retype command<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F2<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Copy the existing command leftward of the cursor.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F4<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">Delete the existing command rightward of the cursor.<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F6<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Insert end-of-file character<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F7<\/td>\n<td style=\"border: 1px solid #000; background-color: #ffffff; padding: 8px; text-align: center;\">List the preceding commands from which you choose<\/td>\n<\/tr>\n<tr>\n<td style=\"border: 1px solid #000; background-color: #ff5640; padding: 8px; text-align: center; font-weight: bold;\">F9<\/td>\n<td style=\"border: 1px solid #000; background-color: #9fafcb; padding: 8px; text-align: center;\">Retype a command by entering its line number in the command History<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h2><span class=\"ez-toc-section\" id=\"Conclusion\"><\/span><strong>Conclusion<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>We genuinely hope that our Windows Command Prompt Cheat Sheet\u00a0will help you complete your job today swiftly and effectively, particularly if you have a history of misunderstanding Windows command prompt commands with other terminal scripting languages. You can also copy command in CMD prompt from our list and become a CMD pro in 2025.<\/p>\n<p>Especially if you have previously been confused by the Windows command line cheat sheet Windows with other console programming languages, we hope that our Windows 11 command prompt cheat sheet will help you finish your work today swiftly and effectively.<\/p>\n<h2><span class=\"ez-toc-section\" id=\"FAQs_Frequently_Asked_Questions\"><\/span><strong>FAQs (Frequently Asked Questions)<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h2>\n<h3><span class=\"ez-toc-section\" id=\"How_Do_I_Get_A_List_Of_Command_Prompts\"><\/span><strong>How Do I Get A List Of Command Prompts?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>To get the best CMD prompts, you can get the Windows Command Prompt Cheat Sheet from this blog. In another way, you can follow these steps:<\/p>\n<ul>\n<li>Type &#8220;help&#8221; into the Command Prompt window and hit Enter.<\/li>\n<li>However, this will provide a list of the main commands and system tools that are accessible in the Command Prompt, along with a synopsis of each.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"What_Cool_Things_Can_I_Do_In_CMD\"><\/span><strong>What Cool Things Can I Do In CMD?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<ul>\n<li>Utilize the Command Prompt to Encrypt Files<\/li>\n<li>Modify the Command Prompt Window&#8217;s Color<\/li>\n<li>Alter the Command Prompt&#8217;s Prompt Text<\/li>\n<li>Modify the Command Prompt Window&#8217;s Title<\/li>\n<li>List all of the drivers that are installed on your Windows 10 computer.<\/li>\n<li>In CMD, the keys F1 through F9 are shortcuts.<\/li>\n<li>Utilize the Command Prompt to Hide Folders<\/li>\n<li>Transfer the Command Output to the Clipboard<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"What_Are_The_Basic_Commands_In_CMD\"><\/span><strong>What Are The Basic Commands In CMD?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Typical commands for the Windows Command Prompt (CMD):<\/p>\n<ul>\n<li>Dir: Provides a list of the current directory&#8217;s files and folders.<\/li>\n<li>Cd: Changes the current directory.<\/li>\n<li>Md: Establishes a fresh directory.<\/li>\n<li>Rd: Removes (deletes) a directory.<\/li>\n<li>Copy: Makes duplicate files.<\/li>\n<li>Del: Removes data.<\/li>\n<li>Ren: Modifies file names.<\/li>\n<li>Type: Shows a text file&#8217;s contents.<\/li>\n<\/ul>\n<h3><span class=\"ez-toc-section\" id=\"How_To_Use_CMD_For_Everything\"><\/span><strong>How To Use CMD For Everything?<\/strong><span class=\"ez-toc-section-end\"><\/span><\/h3>\n<p>Another way to open the run box is to press Win + R at the same time, type cmd, and hit Enter. Moreover, enter the instructions now, and you can use the Windows CMD commands cheat sheet to accomplish anything.<\/p>\n","protected":false},"excerpt":{"rendered":"<p><span class=\"span-reading-time rt-reading-time\" style=\"display: block;\"><span class=\"rt-label rt-prefix\"><\/span> <span class=\"rt-time\"> 8<\/span> <span class=\"rt-label rt-postfix\">min read<\/span><\/span>You&#8217;re not the only one who frequently forgets Windows CMD commands. Although it might be challenging to remember all the correct commands, the Command Prompt is still a useful tool for controlling files, programs, storage, networks, and system settings. Because of this, having a handy Windows Command Prompt Cheat Sheet\u2014whether you print it off or [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":17630,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"pmpro_default_level":"","_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[5291,5294,5292,3099,5288,5293,3101,5287,3100,3098,5289,3097,5290],"class_list":["post-13438","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tech-guides","tag-cmd-commands-cheat-sheet","tag-command-line-cheat-sheet","tag-command-line-cheat-sheet-windows","tag-command-prompt-cheat-sheet","tag-command-prompt-commands-cheat-sheet","tag-copy-command-in-cmd-prompt","tag-terminal-commands-windows","tag-windows-11-command-prompt-cheat-sheet","tag-windows-cmd-commands-cheat-sheet","tag-windows-command-line-cheat-sheet","tag-windows-command-line-commands-cheat-sheet","tag-windows-command-prompt-cheat-sheet","tag-windows-commands-cheat-sheet","pmpro-has-access"],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/blog.temok.com\/wp-content\/uploads\/2024\/01\/Windows-Command-Prompt-Cheat-Sheet-1.webp?fit=750%2C500&ssl=1","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/posts\/13438","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/comments?post=13438"}],"version-history":[{"count":17,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/posts\/13438\/revisions"}],"predecessor-version":[{"id":17632,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/posts\/13438\/revisions\/17632"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/media\/17630"}],"wp:attachment":[{"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/media?parent=13438"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/categories?post=13438"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.temok.com\/blog\/wp-json\/wp\/v2\/tags?post=13438"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}