LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 07-26-2006, 09:25 PM   #1
Registered: Jul 2006
Location: kinda transient right now. Utah is Home, staying in Ohio
Distribution: Mandrake 9.1/Windows XP
Posts: 46

Rep: Reputation: 15
quick easy question

if i have a folder named with a space in it, how do i navigate it in the console?
Old 07-26-2006, 09:31 PM   #2
Senior Member
Registered: Oct 2005
Distribution: Gentoo, Slackware, LFS
Posts: 2,248
Blog Entries: 8

Rep: Reputation: 235Reputation: 235Reputation: 235
cd "folder name"
Old 07-26-2006, 09:36 PM   #3
Registered: Aug 2005
Distribution: Ubuntu Intrepid and Meerkat, formerly used Debian 3.1 (Sarge) with Gnome Desktop
Posts: 353

Rep: Reputation: 37
If you were trying to access a folder named "My Documents" from within a command line terminal, simply type:

cd My\ Documents

or, life can be easier, type: cd My\ <then hit tab> Linux will complete the filename for you.

From within a Window Manager (Gnome, KDE, XFCE etc), simply launch a file browser window and double click on the folder you wish to access (just like you would in MS Windows).

Last edited by greengrocer; 07-26-2006 at 09:37 PM.
Old 07-26-2006, 09:46 PM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Just wrap it in quotes or escape the space. For example, all of the following work in the bash shell:
cd "some folder"
cd 'some folder'
cd some\ folder

Last edited by gilead; 07-26-2006 at 09:48 PM. Reason: EDIT: Perhaps I could refresh a page before submitting? ;-)
Old 07-26-2006, 09:47 PM   #5
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 49


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Easy Quick Question From an Newbie. Anthony1uk Linux - Newbie 2 06-08-2005 01:34 PM
Quick 'n' easy question! orange400 Linux - General 6 09-09-2004 11:36 PM
Really quick and easy question libranikki Linux - Newbie 2 08-05-2004 08:54 PM
quick easy question alexr186 Linux - Networking 3 11-02-2003 09:48 AM
Quick Easy Basic Question RaheimSG Linux - Hardware 5 09-12-2002 08:00 AM

All times are GMT -5. The time now is 04:56 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration