Im a noob Need very simple help

Discussion in 'Mac Programming' started by ron.val, Oct 29, 2012.

  1. macrumors newbie

    Joined:
    Mar 24, 2011
    #1
    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
     
  2. macrumors newbie

    Joined:
    Sep 24, 2012
    #2
    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...
     
  3. macrumors 68020

    guzhogi

    Joined:
    Aug 31, 2003
    Location:
    Wherever my feet take me…
    #3
    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.
     
  4. macrumors 603

    Joined:
    Aug 9, 2009
    #4
    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.
    ...
     
  5. macrumors newbie

    Joined:
    Sep 24, 2012
    #5
    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...
     
  6. macrumors 68020

    guzhogi

    Joined:
    Aug 31, 2003
    Location:
    Wherever my feet take me…
    #6
    Thanks! You learn something everyday. Since most people I know only use the \ character, never learned about the quotes. Thanks again!
     

Share This Page