Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > macOS > cd to "School Files"

cd to "School Files"
Thread Tools
tavilach
Mac Elite
Join Date: Jan 2004
Location: Berkeley, CA
Status: Offline
Reply With Quote
Apr 7, 2006, 06:23 PM
 
How do I use the shell to cd to a folder named "School Files"? The space is messing it up. Thanks.
"Give me a lever long enough and a fulcrum on which to place it, and I shall move the world." -Archimedes
     
Mithras
Professional Poster
Join Date: Oct 1999
Location: :ИOITAↃO⅃
Status: Offline
Reply With Quote
Apr 7, 2006, 06:33 PM
 
Three choices:
cd School\ Files
cd "School Files"
cd 'School Files'

If the folder name itself has the quotation marks, that's left as an exercise for the reader.
     
tooki
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Apr 7, 2006, 06:48 PM
 
Easiest way to find out is to just drag the file you need into the Terminal window. It'll write the whole path for you.

tooki
     
tavilach  (op)
Mac Elite
Join Date: Jan 2004
Location: Berkeley, CA
Status: Offline
Reply With Quote
Apr 7, 2006, 07:29 PM
 
Wow, how did I not remember the quotation marks...

Thanks .
"Give me a lever long enough and a fulcrum on which to place it, and I shall move the world." -Archimedes
     
tooki
Admin Emeritus
Join Date: Oct 1999
Location: Zurich, Switzerland
Status: Offline
Reply With Quote
Apr 7, 2006, 07:45 PM
 
Of course, that becomes a problem if the file name contains quotation marks! The most reliable way to discover the path is to drag and drop.

tooki
     
wataru
Addicted to MacNN
Join Date: Oct 2001
Location: Yokohama, Japan
Status: Offline
Reply With Quote
Apr 7, 2006, 07:57 PM
 
Or use tab-completion.
     
   
 
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Top
Privacy Policy
All times are GMT -4. The time now is 09:19 AM.
All contents of these forums © 1995-2017 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.8 © 2000-2017, Jelsoft Enterprises Ltd.,