Question about change directory in terminal

Discussion in 'macOS' started by jincheker, May 21, 2011.

  1. jincheker macrumors newbie

    Joined:
    Sep 16, 2009
    Location:
    MD
    #1
    If I'm in the home directory, that is ~, how can I directly change to a directory that is not in the same directory of ~? For example change to /usr/bin/

    Right now, I do cd .. several times, until i reach the root, and then cd to usr/bin/

    Is there a fast way to do it? Thanks
     
  2. Member(TM) macrumors member

    Joined:
    May 21, 2011
    Location:
    Spain
    #2
    cd /usr/bin/
     
  3. GGJstudios macrumors Westmere

    GGJstudios

    Joined:
    May 16, 2008
    #3
    Just enter: cd /usr/bin
     
  4. jincheker thread starter macrumors newbie

    Joined:
    Sep 16, 2009
    Location:
    MD
    #4
    Thanks, turns out that i missed one "/" before usr :(
     

Share This Page