{"id":17544,"date":"2016-08-28T15:19:43","date_gmt":"2016-08-28T15:19:43","guid":{"rendered":"http:\/\/www.oracletutoring.ca\/blog\/?p=17544"},"modified":"2016-08-28T15:19:43","modified_gmt":"2016-08-28T15:19:43","slug":"navigating-the-file-system-from-the-terminal-aka-command-prompt-how-to-enter-a-two-or-more-word-directory-or-file-name","status":"publish","type":"post","link":"https:\/\/www.oracletutoring.ca\/blog\/navigating-the-file-system-from-the-terminal-aka-command-prompt-how-to-enter-a-two-or-more-word-directory-or-file-name\/","title":{"rendered":"Navigating the file system from the terminal (aka Command Prompt):  how to enter a two-or-more word directory or file name"},"content":{"rendered":"<h1>The tutor shares a hint he noticed recently.<\/h1>\n<p>When I started with computers, I don&#8217;t believe you could have a folder name like <span style=\"font-family:monospace\">this folder<\/span>: as I recall, you couldn&#8217;t have a space in the name.  (You could have an underscore as in <span style=\"font-family:monospace\">this_folder<\/span>).<\/p>\n<p>I don&#8217;t know for sure, but I&#8217;d say Windows opened up the possibility of having a space in the name of a folder (or file).  Nowadays, on people&#8217;s desktops, you commonly see folders with two-or-more word names, such as <span style=\"font-family:monospace\">Road Trip Summer 2016<\/span> or <span style=\"font-family:monospace\">Kitchen Reno<\/span>.  (I wonder if anyone else realizes what computer users seem to take for granted:)<\/p>\n<p>On the desktop, two-word names don&#8217;t matter:  you can just double-click the folder to open it.  In the terminal, though, you need to type the folder (aka directory) name to enter it.  Will the terminal know what you mean when you type a folder name that contains a space?<\/p>\n<p>The terminal (aka, Command Prompt) in Windows 7 does understand a two-word name.  For instance, if you want to enter the <span style=\"font-family:monospace\">Kitchen Reno<\/span> directory, just typing<\/p>\n<p><span style=\"font-family:monospace\">cd Kitchen Reno<\/span><\/p>\n<p>will work.<\/p>\n<p>In the Linux terminal, from my experience, the command<\/p>\n<p><span style=\"font-family:monospace\">cd Kitchen Reno<\/span><\/p>\n<p>won&#8217;t work.  However, you&#8217;ve got two options that will:<\/p>\n<ol>\n<li>\n<span style=\"font-family:monospace\">cd &#8220;Kitchen Reno&#8221;<\/span>\n<\/li>\n<li>\n<span style=\"font-family:monospace\">cd Kitchen\\ Reno<\/span>\n<\/li>\n<\/ol>\n<p>Moreover,<\/p>\n<p><span style=\"font-family:monospace\">cd &#8220;Kitchen Reno&#8221;<\/span><\/p>\n<p>works in both Windows 7 and Linux:)<\/p>\n<p>Jack of <a href=\"https:\/\/www.oracletutoring.ca\">Oracle Tutoring by Jack and Diane,<\/a> Campbell River, BC.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>The tutor shares a hint he noticed recently. When I started with computers, I don&#8217;t believe you could have a folder name like this folder: as I recall, you couldn&#8217;t have a space in the name. (You could have an &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.oracletutoring.ca\/blog\/navigating-the-file-system-from-the-terminal-aka-command-prompt-how-to-enter-a-two-or-more-word-directory-or-file-name\/\"> <span class=\"screen-reader-text\">Navigating the file system from the terminal (aka Command Prompt):  how to enter a two-or-more word directory or file name<\/span> Read More &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[105,1073,1009,637,904],"tags":[907,1844,1843,169],"class_list":["post-17544","post","type-post","status-publish","format-standard","hentry","category-computer-science","category-computer-skills","category-home-computer-use","category-linux","category-windows","tag-command-prompt","tag-how-to-enter-a-two-word-directory-name-in-the-terminal","tag-how-to-enter-a-two-word-file-name-in-the-terminal","tag-terminal"],"_links":{"self":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17544","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/comments?post=17544"}],"version-history":[{"count":15,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17544\/revisions"}],"predecessor-version":[{"id":17559,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/posts\/17544\/revisions\/17559"}],"wp:attachment":[{"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/media?parent=17544"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/categories?post=17544"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.oracletutoring.ca\/blog\/wp-json\/wp\/v2\/tags?post=17544"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}