Go Back   MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Reply
 
Thread Tools Search this Thread Display Modes
Old Oct 29, 2012, 12:37 PM   #1
ron.val
macrumors newbie
 
Join Date: Mar 2011
Im a noob Need very simple help

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
ron.val is offline   0 Reply With Quote
Old Oct 29, 2012, 12:48 PM   #2
wisecracker
macrumors newbie
 
Join Date: Sep 2012
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...
wisecracker is offline   0 Reply With Quote
Old Oct 30, 2012, 10:49 AM   #3
guzhogi
macrumors 68020
 
guzhogi's Avatar
 
Join Date: Aug 2003
Location: Wherever my feet take me…
Quote:
Originally Posted by wisecracker View Post
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.
guzhogi is offline   0 Reply With Quote
Old Oct 30, 2012, 11:08 AM   #4
chown33
macrumors 603
 
Join Date: Aug 2009
Quote:
Originally Posted by guzhogi View Post
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.
...
chown33 is offline   0 Reply With Quote
Old Oct 30, 2012, 05:41 PM   #5
wisecracker
macrumors newbie
 
Join Date: Sep 2012
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...
wisecracker is offline   0 Reply With Quote
Old Nov 2, 2012, 10:09 AM   #6
guzhogi
macrumors 68020
 
guzhogi's Avatar
 
Join Date: Aug 2003
Location: Wherever my feet take me…
Quote:
Originally Posted by chown33 View Post
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!
guzhogi is offline   0 Reply With Quote

Reply
MacRumors Forums > Apple Systems and Services > Programming > Mac Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Very Noob Question.. Nyy8 Windows, Linux & Others on the Mac 7 Jul 20, 2013 12:32 AM
Objective-C noob: EXC_BAD_ACCESS with simple print method? dancks Mac Programming 14 Apr 27, 2013 04:47 PM
2 simple questions from a Time-Machine noob samuelf92 Mac Basics and Help 3 Aug 22, 2012 06:24 PM
Sorry - another noob... tallbutslow MacBook Air 1 Jun 14, 2012 05:53 PM

Forum Jump

All times are GMT -5. The time now is 09:47 PM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2013, MacRumors.com, LLC