ssh directory browsing

Discussion in 'macOS' started by wdcglobal, Apr 17, 2006.

  1. wdcglobal macrumors newbie

    Mar 22, 2006
    when changing directories using ssh what do i input to change into a directory with two words? ex: /User/name/music/the band

    i have always had this problem and can never find any info. in the past i always changed the directory to one word, but i'm sick of that crap. the same thing goes for telnet and ftp access.
  2. grapes911 Moderator emeritus


    Jul 28, 2003
    Citizens Bank Park
    Try putting a "\" before the space (without the quotes).

    /User/name/music/the\ band
  3. wdcglobal thread starter macrumors newbie

    Mar 22, 2006
  4. bankshot macrumors 65816


    Jan 23, 2003
    Southern California
    To add to that, you can also enclose the directory name in quotes. Though, what I like best is typing a small amount of the name and hitting tab. The shell will automatically complete enough of it to be unique. If several files/directories exist with the same letters at the start, it will only complete up to that point. If you hit tab again, it will list all possibilities. And as soon as you type enough to uniquely identify one of them, the next tab will complete the whole thing, including any necessary backslashes.

    The tab character is one of my best friends -- saves me thousands of unnecessary keystrokes! ;)
  5. wdcglobal thread starter macrumors newbie

    Mar 22, 2006
    thanx bankshot that saves so much time when cp long named files.

Share This Page