{"id":8996,"date":"2026-05-30T01:51:25","date_gmt":"2026-05-29T23:51:25","guid":{"rendered":"https:\/\/mybox.com\/help\/?post_type=manual_kb&#038;p=8996"},"modified":"2026-05-30T01:51:26","modified_gmt":"2026-05-29T23:51:26","slug":"comenzi-ssh-cd","status":"publish","type":"manual_kb","link":"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/","title":{"rendered":"Comenzi SSH - CD"},"content":{"rendered":"<div class=\"translation-block translation-block-merged\">\n<p class=\"wp-block-paragraph\">In server administration, backend management, and cloud architecture deployment, moving between folder structures cleanly is a daily requirement. The <strong><code>cd<\/code><\/strong> command stands for <strong>Change Directory<\/strong>. It is the primary terminal utility used to navigate across the directory tree of a Linux-based operating system.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">By passing explicit arguments to this utility, you can shift your terminal context to any folder on the server, allowing you to execute scripts, manage files, or audit application code bases in the correct directory.<\/p>\n\n\n\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_86 ez-toc-wrap-left counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<div class=\"ez-toc-title-container\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<span class=\"ez-toc-title-toggle\"><\/span><\/div>\n<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:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#Direct_Navigational_Patterns\" >Direct Navigational Patterns<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#1_Relative_Path_Navigation_Subdirectory_Access\" >1. Relative Path Navigation (Subdirectory Access)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#2_Absolute_Path_Navigation_Cross-Directory_Jumps\" >2. Absolute Path Navigation (Cross-Directory Jumps)<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#3_Traversal_Navigation_Using_the_Two-Dot_Operator\" >3. Traversal Navigation (Using the Two-Dot Operator)<\/a><\/li><\/ul><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#Essential_Navigation_Shortcuts\" >Essential Navigation Shortcuts<\/a><ul class='ez-toc-list-level-3' ><li class='ez-toc-heading-level-3'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/mybox.com\/help\/ro\/knowledgebase\/ssh-commands-cd\/#The_Case-Sensitivity_Rule\" >The Case-Sensitivity Rule<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Direct_Navigational_Patterns\"><\/span>Direct Navigational Patterns<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<\/div>\n\n<div id=\"mybox-2646430253\" class=\"mybox-content mybox-entity-placement\"><div class=\"early-access-banner-inpost\">\r\n  <div class=\"banner-left-inpost\">\r\n    <div class=\"icon-box-inpost\">\r\n      <img decoding=\"async\" src=\"https:\/\/mybox.com\/help\/wp-content\/uploads\/2026\/02\/square-info-icon.svg\" alt=\"Info\">\r\n    <\/div>\r\n    <div class=\"text-box-inpost\">\r\n      <span class=\"label-inpost\"><span class=\"translation-block translation-block-banner-text\">Acces timpuriu<\/span><\/span>\r\n      <h4><span class=\"translation-block translation-block-banner-text\">Mai ave\u021bi nevoie de ajutor?<\/span><\/h4>\r\n      <p><span class=\"translation-block translation-block-banner-text\">Contacta\u021bi echipa noastr\u0103 de servicii pentru clien\u021bi.<\/span><\/p>\r\n    <\/div>\r\n  <\/div>\r\n\r\n  <div class=\"banner-right-inpost\">\r\n    <a href=\"https:\/\/panel.mybox.com\/helpdesk2\/v\/list\/\" class=\"banner-button-inpost\"><span class=\"translation-block translation-block-banner-text\">Trimite mesaj<\/span><\/a>\r\n  <\/div>\r\n<\/div><\/div>\n\n<div class=\"translation-block translation-block-merged\"><p class=\"wp-block-paragraph\">The <code>cd<\/code> command handles folder shifts using two distinct pathing models based on your destination:<\/p>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"1_Relative_Path_Navigation_Subdirectory_Access\"><\/span>1. Relative Path Navigation (Subdirectory Access)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When you want to step into a folder that sits directly inside your current location, you do not need to type out the entire system path. You simply pass the immediate target folder name.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The Scenario:<\/strong> Imagine you run a <code>pwd<\/code> check and see you are currently positioned inside the folder path <code>\/home\/mybox\/yourlogin\/page.com\/public_html<\/code>.<\/li>\n\n\n\n<li><strong>The Action:<\/strong> Since <code>wp-content<\/code> lives directly inside your current <code>public_html<\/code> workspace, you open it by executing:Bash<code>cd wp-content<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"2_Absolute_Path_Navigation_Cross-Directory_Jumps\"><\/span>2. Absolute Path Navigation (Cross-Directory Jumps)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">When you need to jump to a completely separate branch of the server filesystem, you must pass the exact <strong>absolute path<\/strong> starting from the system root (<code>\/<\/code>).<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The Scenario:<\/strong> You want to jump from your current workspace straight into a completely different website directory located at <code>\/home\/mybox\/yourlogin\/yourpage.com\/public_html<\/code>.<\/li>\n\n\n\n<li><strong>The Action:<\/strong> Execute the command with the full leading path string:Bash<code>cd \/home\/mybox\/yourlogin\/yourpage.com\/public_html<\/code><\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"3_Traversal_Navigation_Using_the_Two-Dot_Operator\"><\/span>3. Traversal Navigation (Using the Two-Dot Operator)<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">If you are shifting between folders that share a nearby parent directory, you can use the double-dot (<code>..<\/code>) relative symbol to tell the terminal to step backward out of your current folder.<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>The Action:<\/strong> Instead of typing out the long absolute path in the scenario above, you can step up out of <code>public_html<\/code> and <code>website.com<\/code>, then go down into your alternative project folder like this:Bash <code>cd ..\/..\/yourwebsite.com\/public_html<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Essential_Navigation_Shortcuts\"><\/span>Essential Navigation Shortcuts<span class=\"ez-toc-section-end\"><\/span><\/h2>\n\n\n\n<p class=\"wp-block-paragraph\">The Linux shell includes built-in shortcuts to speed up your terminal navigation and help you move between folders with fewer keystrokes:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong><code>cd ..<\/code><\/strong> (with a space and two dots) steps your terminal exactly <strong>one level up<\/strong> into the immediate parent folder of your current directory.<\/li>\n\n\n\n<li><strong><code>cd<\/code><\/strong> (executed completely alone with no arguments) acts as an instant return shortcut, dropping you straight back into your user account&#8217;s primary <strong>home directory<\/strong> root.<\/li>\n\n\n\n<li><strong><code>cd -<\/code><\/strong> (with a space and a single dash) functions like a back button, returning you instantly to the <strong>previous directory<\/strong> you were working in right before your last folder change.<\/li>\n<\/ul>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h3 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"The_Case-Sensitivity_Rule\"><\/span>The Case-Sensitivity Rule<span class=\"ez-toc-section-end\"><\/span><\/h3>\n\n\n\n<p class=\"wp-block-paragraph\">The Linux shell is strictly case-sensitive. This means the system treats <code>wp-content<\/code>, <code>WP-Content<\/code>, and <code>WP-CONTENT<\/code> as three entirely separate folders. You must type out every directory name exactly as it appears in the file system to avoid &#8220;No such file or directory&#8221; errors.<\/p>\n<\/blockquote>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n<\/div>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"template":"","format":"standard","manualknowledgebasecat":[54],"manual_kb_tag":[1180,6197,6223,6224,6225,6226,6227,6228,6229,6230],"class_list":["post-8996","manual_kb","type-manual_kb","status-publish","format-standard","hentry","manualknowledgebasecat-ssh","manual_kb_tag-server-administration","manual_kb_tag-file-system","manual_kb_tag-backend-management","manual_kb_tag-cloud-architecture","manual_kb_tag-change-directory","manual_kb_tag-cd-command","manual_kb_tag-terminal-navigation","manual_kb_tag-linux-shell","manual_kb_tag-directory-tree","manual_kb_tag-relative-path-navigation"],"_links":{"self":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8996","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb"}],"about":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/types\/manual_kb"}],"author":[{"embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/users\/1"}],"version-history":[{"count":1,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8996\/revisions"}],"predecessor-version":[{"id":8997,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb\/8996\/revisions\/8997"}],"wp:attachment":[{"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/media?parent=8996"}],"wp:term":[{"taxonomy":"manualknowledgebasecat","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manualknowledgebasecat?post=8996"},{"taxonomy":"manual_kb_tag","embeddable":true,"href":"https:\/\/mybox.com\/help\/ro\/wp-json\/wp\/v2\/manual_kb_tag?post=8996"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}