Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: [SOLVED] How to type [space] in terminal?

  1. #1
    Join Date
    Aug 2008
    Beans
    93

    [SOLVED] How to type [space] in terminal?

    I know it's a dumb question, but Terminal can't read my directories when there are spaces in the file/folder names, so I'm wondering what the "substitute" for [space] is?

  2. #2
    Join Date
    Feb 2006
    Beans
    5,714

    Re: How to type [space] in terminal?

    type normally but put a \ after the word and before the space

    ie: cd ~/home/New\ Volume/movies/new\ stuff
    Debian Testing(64bit) + XFCE4 AM2 5200+ ATI Radeon HD4350, 4gig RAM,320Gig and 750gig HDs

    what's the difference between an answer and a solution? An answer is what they want to hear, a solution is what they don't want to hear

  3. #3
    Join Date
    Jun 2007
    Location
    Poughkeepsie, NY
    Beans
    5,812
    Distro
    Ubuntu

    Re: How to type [space] in terminal?

    or create directories with one word or underscores

    like NewDirectory or New_Directory

    And don't forget capital letters make a difference in Linux

    /New Directory and /new directory would be two different folders on a Linux Machine.

  4. #4
    Join Date
    Jul 2008
    Beans
    105
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: How to type [space] in terminal?

    Or you can type the name of the folder until [space] and then hit tab to auto complete ...
    Trying to help ... I hope it works ...
    Click here for my linux site
    Click here for some flash games

  5. #5
    Join Date
    Aug 2006
    Location
    Yellowknife
    Beans
    878

    Re: How to type [space] in terminal?

    or you can use quotes

    cd "~/home/New Volume/movies/new stuff"

    lotsa ways

  6. #6
    Join Date
    Jun 2008
    Beans
    199
    Distro
    Ubuntu Development Release

    Re: How to type [space] in terminal?

    or, put the path in quotes.

    whoops, too late.

  7. #7
    Join Date
    May 2006
    Location
    N@
    Beans
    76
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: How to type [space] in terminal?

    You can also enclose the entire directory path in quotation marks, like

    cd '/home/myhome/Documents/folder name with spaces in it/'
    You can also drag a folder icon from a Nautilus window onto a terminal session and it will enter the full path to the folder at the prompt.

    Ooh, three of us with the same answer at the same time!
    Last edited by DrOlaf; August 15th, 2008 at 04:16 PM. Reason: Me too!
    Ubuntu? Eranu!

  8. #8
    Join Date
    Aug 2008
    Beans
    188
    Distro
    Kubuntu 12.04 Precise Pangolin

    Re: How to type [space] in terminal?

    Quote Originally Posted by LowSky View Post
    or create directories with one word or underscores

    like NewDirectory or New_Directory
    Or one can also use non-breaking space by pressing AltGr+Space. Maybe not the best solution, though.

  9. #9
    Join Date
    May 2007
    Location
    Indonesia
    Beans
    14
    Distro
    Ubuntu 8.04 Hardy Heron

    Re: How to type [space] in terminal?

    Oh don't worry. I'm also didn't know how to use space in terminal. But thanks! because of your question, now I understand how to use it. Sometimes for newbie like us, This kind of question is really usefull.

  10. #10
    Join Date
    Sep 2009
    Beans
    3

    Re: [SOLVED] How to type [space] in terminal?

    Thanks
    Helped me playing wow at last

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •