{"id":14543,"date":"2025-09-11T13:24:57","date_gmt":"2025-09-11T13:24:57","guid":{"rendered":"https:\/\/www.bodhost.com\/kb\/?p=14543"},"modified":"2026-02-26T14:02:06","modified_gmt":"2026-02-26T14:02:06","slug":"change-directories-in-command-prompt","status":"publish","type":"post","link":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/","title":{"rendered":"How to Change Directories in Command Prompt (CMD)"},"content":{"rendered":"<p>This article explains how to change directories in CMD easily.<\/p>\n<p>When working in the Windows Command Prompt, moving between folders (directories) is one of the most common tasks. Knowing how to switch directories helps you access files faster and execute commands more efficiently.<\/p>\n<h3 data-pm-slice=\"0 0 []\"><strong>Steps to Change Directories in Command Prompt (CMD)<\/strong><\/h3>\n<ol>\n<li>Press \u2018<span style=\"color: #3366ff;\">Windows + R<\/span>\u2019, type \u2018cmd\u2019, and hit \u2018Enter\u2019. It will open in your user folder by default.<\/li>\n<li>To check your current directory, type:\n<pre>cd<\/pre>\n<p>This will display the full path of the directory you\u2019re currently in.<\/li>\n<li>To go into a different folder within the same path, use the &#8216;<span style=\"color: #3366ff;\">cd<\/span>&#8216; command followed by the folder name:<br \/>\ncd foldername<br \/>\nExample: If you are in &#8216;C:\\Users\\Jack&#8217; and want to open the &#8216;<span style=\"color: #3366ff;\"><em>Documents<\/em> folder<\/span>&#8216;, run:<\/p>\n<pre>cd Documents<\/pre>\n<\/li>\n<li>You can also jump directly to a folder by typing its full path:<br \/>\n<span style=\"color: #3366ff;\">cd C:\\Program Files<\/span><\/li>\n<li>To go up to the parent directory, type:\n<pre>cd ..<\/pre>\n<p>Example: From <span style=\"color: #3366ff;\">C:\\Users\\Jack\\Documents<\/span>, running cd .. will return you to <span style=\"color: #3366ff;\">C:\\Users\\Jack<\/span>.<\/li>\n<li>If you want to change from one drive to another (for example, from <span style=\"color: #3366ff;\">C: to D<\/span>:), just type the drive letter with a colon:\n<pre>D:<\/pre>\n<p>After switching, you can again use the &#8216;<span style=\"color: #3366ff;\">cd<\/span>&#8216; command to move through folders on that drive.<\/li>\n<\/ol>\n<p>&nbsp;<\/p>\n<p>That&#8217;s it!<\/p>\n<p>Learn more about the tutorial <a href=\"https:\/\/www.bodhost.com\/kb\/how-to-copy-files-from-one-directory-to-another-using-cmd\/\" target=\"_blank\" rel=\"noopener\"><em>How to Copy Files from One Directory to Another Using CMD.<\/em><\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>This article explains how to change directories in CMD easily. When working in the Windows Command Prompt, moving between folders (directories) is one of the most common tasks. Knowing how&hellip;<\/p>\n<p><a href=\"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/\" class=\"more-link\">Read More<\/a><\/p>\n","protected":false},"author":21,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[837],"tags":[1649,1650],"class_list":["post-14543","post","type-post","status-publish","format-standard","hentry","category-tutorial","tag-change-directories-in-command-prompt","tag-change-directories-through-command"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Change Directories in Command Prompt<\/title>\n<meta name=\"description\" content=\"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Change Directories in Command Prompt\" \/>\n<meta property=\"og:description\" content=\"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/\" \/>\n<meta property=\"og:site_name\" content=\"Knowledge Base - bodHOST\" \/>\n<meta property=\"article:published_time\" content=\"2025-09-11T13:24:57+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2026-02-26T14:02:06+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/09\/Change-Directories-in-Command-Prompt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"628\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Serena\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:image\" content=\"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/09\/Change-Directories-in-Command-Prompt.png\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Serena\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/\"},\"author\":{\"name\":\"Serena\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\"},\"headline\":\"How to Change Directories in Command Prompt (CMD)\",\"datePublished\":\"2025-09-11T13:24:57+00:00\",\"dateModified\":\"2026-02-26T14:02:06+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/\"},\"wordCount\":232,\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"keywords\":[\"Change Directories in Command Prompt\",\"Change Directories through Command\"],\"articleSection\":[\"Tutorial\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/\",\"name\":\"How to Change Directories in Command Prompt\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\"},\"datePublished\":\"2025-09-11T13:24:57+00:00\",\"dateModified\":\"2026-02-26T14:02:06+00:00\",\"description\":\"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/change-directories-in-command-prompt\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Tutorial\",\"item\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/category\\\/tutorial\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Change Directories in Command Prompt (CMD)\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#website\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\"},\"alternateName\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#organization\",\"name\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"contentUrl\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/wp-content\\\/uploads\\\/2025\\\/10\\\/Profile-Pic.png\",\"width\":240,\"height\":240,\"caption\":\"Web Hosting Knowledge Base | bodHOST Hosting FAQ\"},\"image\":{\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/#\\\/schema\\\/person\\\/ffd3f118493c99471ae5bd4790a55830\",\"name\":\"Serena\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g\",\"caption\":\"Serena\"},\"url\":\"https:\\\/\\\/www.bodhost.com\\\/kb\\\/author\\\/seema\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Change Directories in Command Prompt","description":"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/","og_locale":"en_US","og_type":"article","og_title":"How to Change Directories in Command Prompt","og_description":"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.","og_url":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/","og_site_name":"Knowledge Base - bodHOST","article_published_time":"2025-09-11T13:24:57+00:00","article_modified_time":"2026-02-26T14:02:06+00:00","og_image":[{"width":1200,"height":628,"url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/09\/Change-Directories-in-Command-Prompt.png","type":"image\/png"}],"author":"Serena","twitter_card":"summary_large_image","twitter_image":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/09\/Change-Directories-in-Command-Prompt.png","twitter_misc":{"Written by":"Serena","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/#article","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/"},"author":{"name":"Serena","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830"},"headline":"How to Change Directories in Command Prompt (CMD)","datePublished":"2025-09-11T13:24:57+00:00","dateModified":"2026-02-26T14:02:06+00:00","mainEntityOfPage":{"@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/"},"wordCount":232,"publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"keywords":["Change Directories in Command Prompt","Change Directories through Command"],"articleSection":["Tutorial"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/","url":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/","name":"How to Change Directories in Command Prompt","isPartOf":{"@id":"https:\/\/www.bodhost.com\/kb\/#website"},"datePublished":"2025-09-11T13:24:57+00:00","dateModified":"2026-02-26T14:02:06+00:00","description":"Easily change directories in CMD with simple commands. Learn how to navigate folders and switch drives in Windows Command Prompt.","breadcrumb":{"@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.bodhost.com\/kb\/change-directories-in-command-prompt\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Tutorial","item":"https:\/\/www.bodhost.com\/kb\/category\/tutorial\/"},{"@type":"ListItem","position":2,"name":"How to Change Directories in Command Prompt (CMD)"}]},{"@type":"WebSite","@id":"https:\/\/www.bodhost.com\/kb\/#website","url":"https:\/\/www.bodhost.com\/kb\/","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","description":"","publisher":{"@id":"https:\/\/www.bodhost.com\/kb\/#organization"},"alternateName":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.bodhost.com\/kb\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.bodhost.com\/kb\/#organization","name":"Web Hosting Knowledge Base | bodHOST Hosting FAQ","url":"https:\/\/www.bodhost.com\/kb\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/","url":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","contentUrl":"https:\/\/www.bodhost.com\/kb\/wp-content\/uploads\/2025\/10\/Profile-Pic.png","width":240,"height":240,"caption":"Web Hosting Knowledge Base | bodHOST Hosting FAQ"},"image":{"@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.bodhost.com\/kb\/#\/schema\/person\/ffd3f118493c99471ae5bd4790a55830","name":"Serena","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/8bf3c9f6220a13a4d46295ad7c38a0c9e351ca3a57d0e417580c8e8b83a12a50?s=96&d=mm&r=g","caption":"Serena"},"url":"https:\/\/www.bodhost.com\/kb\/author\/seema\/"}]}},"_links":{"self":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/14543","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/users\/21"}],"replies":[{"embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/comments?post=14543"}],"version-history":[{"count":11,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/14543\/revisions"}],"predecessor-version":[{"id":14646,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/posts\/14543\/revisions\/14646"}],"wp:attachment":[{"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/media?parent=14543"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/categories?post=14543"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.bodhost.com\/kb\/wp-json\/wp\/v2\/tags?post=14543"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}