{"id":5382,"date":"2022-02-02T06:38:00","date_gmt":"2022-02-02T05:38:00","guid":{"rendered":"https:\/\/expert-only.com\/?p=5382"},"modified":"2022-03-29T13:31:49","modified_gmt":"2022-03-29T11:31:49","slug":"clear-the-command-line-screen-prompt","status":"publish","type":"post","link":"https:\/\/expert-only.com\/en\/ms-dos\/clear-the-command-line-screen-prompt\/","title":{"rendered":"Clear the command line screen prompt"},"content":{"rendered":"\n<p><strong>How to clear the Windows command line screen prompt ? MS-DOS allows to manage the Windows system in a very effective way, for example by using scripting to automate tasks. After running multiple commands on the black dos screen, it is very convenient to clear the old messages. <\/strong><\/p>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"h-how-to-clear-the-windows-command-line-screen-prompt-use-the-cls-command\">How to clear the Windows command line screen prompt ? Use the cls command.<\/h2>\n\n\n\n<p>The <strong><a href=\"https:\/\/en.wikipedia.org\/wiki\/CLS_(command)\" target=\"_blank\" rel=\"noreferrer noopener\">cls<\/a> <\/strong>command stands for <strong>CL<\/strong>ear <strong>S<\/strong>creenline in Windows. It cleans the screen from the previous commands results. It is a very useful batch to have a much clearer vision on your command-line work. The result is an empty command prompt window.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"508\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-clear-prompt_en.png\" alt=\"cls command to clear the command prompt\" class=\"wp-image-5372\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-clear-prompt_en.png 980w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-clear-prompt_en-300x156.png 300w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-clear-prompt_en-768x398.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><figcaption>cls command to clear the command prompt<\/figcaption><\/figure><\/div>\n\n\n\n<p><strong>So simply run the cls command in your ms-dos prompt to empty the screen.<\/strong><\/p>\n\n\n\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"generic\" data-enlighter-theme=\"\" data-enlighter-highlight=\"\" data-enlighter-linenumbers=\"\" data-enlighter-lineoffset=\"\" data-enlighter-title=\"\" data-enlighter-group=\"\">REM the following command clears the current windows batch\n\ncls<\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"980\" height=\"508\" src=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-result-empty-prompt_en.png\" alt=\"after cls executin the command line prompt is empty\" class=\"wp-image-5377\" srcset=\"https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-result-empty-prompt_en.png 980w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-result-empty-prompt_en-300x156.png 300w, https:\/\/expert-only.com\/wp-content\/uploads\/2022\/02\/dos-command-line-cls-result-empty-prompt_en-768x398.png 768w\" sizes=\"auto, (max-width: 980px) 100vw, 980px\" \/><figcaption>after cls executin the command line prompt is empty<\/figcaption><\/figure><\/div>\n\n\n\n<p>To go further, let&#8217;s check <strong><a href=\"https:\/\/expert-only.com\/en\/ms-dos\/copy-recursively-files-and-folders-in-cmd-with-xcopy\/\">how to copy recursively multiple files and folders with Windows command line<\/a><\/strong>. <\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>How to clear the Windows command line screen prompt ? MS-DOS allows to manage the Windows system in a very effective way, for example by using scripting to automate tasks. After running multiple commands on the black dos screen, <a class=\"mh-excerpt-more\" href=\"https:\/\/expert-only.com\/en\/ms-dos\/clear-the-command-line-screen-prompt\/\" title=\"Clear the command line screen prompt\">&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":5532,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[410],"tags":[412,418],"class_list":{"0":"post-5382","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-ms-dos","8":"tag-batch","9":"tag-folder"},"_links":{"self":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/5382","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/comments?post=5382"}],"version-history":[{"count":0,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/posts\/5382\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media\/5532"}],"wp:attachment":[{"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/media?parent=5382"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/categories?post=5382"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/expert-only.com\/en\/wp-json\/wp\/v2\/tags?post=5382"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}