Help answer threads with 0 replies.
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, 08: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, 08: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, 08: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 08:37 PM.
Old 07-26-2006, 08:46 PM   #4
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,125

Rep: Reputation: 165Reputation: 165
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 08:48 PM. Reason: EDIT: Perhaps I could refresh a page before submitting? ;-)
Old 07-26-2006, 08:47 PM   #5
Senior Member
Registered: Aug 2005
Posts: 1,755

Rep: Reputation: 50


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 12:34 PM
Quick 'n' easy question! orange400 Linux - General 6 09-09-2004 10:36 PM
Really quick and easy question libranikki Linux - Newbie 2 08-05-2004 07:54 PM
quick easy question alexr186 Linux - Networking 3 11-02-2003 08:48 AM
Quick Easy Basic Question RaheimSG Linux - Hardware 5 09-12-2002 07:00 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:20 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