Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

ron.val

macrumors newbie
Original poster
Mar 24, 2011
6
0
Hey guys Im trying navigate terminal and I can't seem to figure it out. What I want to do is navigate my the files on my hard drive not my user which is what i have there by default so I have this...


Last login: Mon Oct 29 13:20:57 on ttys006
Ronald-Valencias-MacBook:~ Ron$

I want to "At a command prompt, navigate to the /dependencies/tools/bin folder for the BlackBerry 10 WebWorks SDK."

here is where those files are

/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.2.9/dependencies/tools

but the Developer file is in the Devices (aka hard drive where i have Users application etc) but the command terminal starts off with ....

Last login: Mon Oct 29 13:20:57 on ttys006
Ronald-Valencias-MacBook:~ Ron$

how do I navigate to that file ? Any help would be very appreciated
 

wisecracker

macrumors newbie
Sep 24, 2012
18
0
In front of my computer.
From your command prompt, try something like:-

cd "/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.2.9/dependencies/tools"<CR>

Note the inverted commas, and <CR> is the ENTER/RETURN key...

(Also this assumes /Developer starting at root level.)

Bazza, G0LCU...
 

guzhogi

macrumors 68040
Aug 31, 2003
3,740
1,831
Wherever my feet take me…
From your command prompt, try something like:-

cd "/Developer/SDKs/Research In Motion/BlackBerry 10 WebWorks SDK 1.0.2.9/dependencies/tools"<CR>

Note the inverted commas, and <CR> is the ENTER/RETURN key...

(Also this assumes /Developer starting at root level.)

Bazza, G0LCU...

Actually that should be
Code:
 cd /Developer/SDKs/Research\ In\ Motion/BlackBerry\ 10\ WebWorks\ SDK\ 1.0.2.9/dependencies/tools<CR>
. With the Terminal, when navigating a folder/file with spaces in its name, you have to put a \ in front of the space.
 

chown33

Moderator
Staff member
Aug 9, 2009
10,750
8,422
A sea of green
Actually that should be
Code:
 cd /Developer/SDKs/Research\ In\ Motion/BlackBerry\ 10\ WebWorks\ SDK\ 1.0.2.9/dependencies/tools<CR>
. With the Terminal, when navigating a folder/file with spaces in its name, you have to put a \ in front of the space.
They both work.

Wisecracker's post showed double quotes (what he called "inverted commas"), which do not require spaces to be escaped with backslashes.

For reference, look at the man page for bash, and find the QUOTING heading:
...
There are three quoting mechanisms: the escape character, single
quotes, and double quotes.
...
 

wisecracker

macrumors newbie
Sep 24, 2012
18
0
In front of my computer.
Hi chown33...

Why thank you sir for coming to my defence...

The "double quotes" as you put it are near platform independent too.

They work on *NIX, Windows, AMIGAOS and obviously OSX...

Once again I thank you for coming to my defence...

Bazza, G0LCU...
 

guzhogi

macrumors 68040
Aug 31, 2003
3,740
1,831
Wherever my feet take me…
They both work.

Wisecracker's post showed double quotes (what he called "inverted commas"), which do not require spaces to be escaped with backslashes.

For reference, look at the man page for bash, and find the QUOTING heading:
...
There are three quoting mechanisms: the escape character, single
quotes, and double quotes.
...

Thanks! You learn something everyday. Since most people I know only use the \ character, never learned about the quotes. Thanks again!
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.