{"id":3522,"date":"2016-07-17T06:33:11","date_gmt":"2016-07-17T06:33:11","guid":{"rendered":"https:\/\/www.testingdocs.com\/questions\/?p=3522"},"modified":"2024-08-09T02:55:27","modified_gmt":"2024-08-09T02:55:27","slug":"basic-dos-commands-to-know-for-testers","status":"publish","type":"post","link":"https:\/\/www.testingdocs.com\/questions\/basic-dos-commands-to-know-for-testers\/","title":{"rendered":"Basic DOS Commands [ 2024 ]"},"content":{"rendered":"<h2>Basic DOS Commands<\/h2>\n<p>In this tutorial, you will discuss basic MS-DOS commands testers use during the testing activities. DOS commands are entered at the DOS prompt using the Command Prompt.<\/p>\n<ul>\n<li><a href=\"https:\/\/www.testingdocs.com\/questions\/how-to-open-command-prompt-on-windows-10\/\">How to open Windows Command Prompt<\/a><\/li>\n<\/ul>\n<p>Some of the basic DOS commands are as follows:<\/p>\n<ul>\n<li>DIR<\/li>\n<li>CLS<\/li>\n<li>CD<\/li>\n<\/ul>\n<h3>DIR<\/h3>\n<p>The <em>dir<\/em> command displays the list of files and subdirectories in a directory. Directories are folders that contain files. Unlike files, directories do not have extensions. DOS commands are not case-sensitive.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone wp-image-3534 size-full\" title=\"Basic DOS Commands\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command.png\" alt=\"Basic DOS Commands\" width=\"1920\" height=\"943\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command-300x147.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command-1024x503.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command-768x377.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/dir-DOS-command-1536x754.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>CLS<\/h3>\n<p>The <em>cls<\/em> command clears the current display screen and returns control to the prompt. This command is generally used to wipe out the previous command(s) output on the screen. We can start fresh with a blank command window.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3537\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command.png\" alt=\"cls command\" width=\"1920\" height=\"947\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command-300x148.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command-1024x505.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command-768x379.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/cls-DOS-command-1536x758.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<p>Command prompt after the <em>cls<\/em> command is executed.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3539\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen.png\" alt=\"\" width=\"1920\" height=\"917\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen-300x143.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen-1024x489.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen-768x367.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Cls-dos-command-clear-screen-1536x734.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h3>Change directory (CD or CHDIR)<\/h3>\n<p>The <em>cd<\/em> command stands for Change Directory. It is used to change the directory, and you can specify the directory in the command.<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-3546\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command.png\" alt=\"\" width=\"1920\" height=\"960\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command.png 1920w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command-300x150.png 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command-1024x512.png 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command-768x384.png 768w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/change-directory-DOS-command-1536x768.png 1536w\" sizes=\"auto, (max-width: 1920px) 100vw, 1920px\" \/><\/p>\n<p>For example, if we want to change the directory to drivers, type the following command at the prompt and press Enter:<\/p>\n<p>cd D:\\Drivers<\/p>\n<p>Now the Windows prompt should change to D:\\Drivers&gt;<\/p>\n<h2>Change drive<\/h2>\n<p>To change to a directory on a different drive, we must type the drive&#8217;s name. For example, to change to the D drive, you must enter D: or d:<\/p>\n<p>&nbsp;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-21635\" src=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Change-Drive-Windows.jpeg\" alt=\"Change Drive Windows\" width=\"1181\" height=\"643\" title=\"\" srcset=\"https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Change-Drive-Windows.jpeg 1181w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Change-Drive-Windows-300x163.jpeg 300w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Change-Drive-Windows-1024x558.jpeg 1024w, https:\/\/www.testingdocs.com\/questions\/wp-content\/uploads\/Change-Drive-Windows-768x418.jpeg 768w\" sizes=\"auto, (max-width: 1181px) 100vw, 1181px\" \/><\/p>\n<p>&nbsp;<\/p>\n<h2>TesingDocs Youtube Channel<\/h2>\n<ul>\n<li><a href=\"https:\/\/www.youtube.com\/@testingdocs\" target=\"_blank\" rel=\"noopener\">https:\/\/www.youtube.com\/@testingdocs<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Basic DOS Commands In this tutorial, you will discuss basic MS-DOS commands testers use during the testing activities. DOS commands are entered at the DOS prompt using the Command Prompt. How to open Windows Command Prompt Some of the basic DOS commands are as follows: DIR CLS CD DIR The dir command displays the list [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":23592,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-3522","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","has-post-title","has-post-date","has-post-category","has-post-tag","has-post-comment","has-post-author",""],"_links":{"self":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/3522","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/comments?post=3522"}],"version-history":[{"count":18,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/3522\/revisions"}],"predecessor-version":[{"id":23594,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/posts\/3522\/revisions\/23594"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media\/23592"}],"wp:attachment":[{"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/media?parent=3522"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/categories?post=3522"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.testingdocs.com\/questions\/wp-json\/wp\/v2\/tags?post=3522"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}