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 05-23-2002, 12:55 AM   #1
LQ Newbie
Registered: May 2002
Distribution: Mandrake 10.0
Posts: 17

Rep: Reputation: 0

Ok, should be any easy question...

How do I access a directory or file or whatever that has spaces in it's name? (from terminal)

Ex. cd /mnt/cdrom/whatever folder

doesn't work.

Probably something easy that I'm missing, but guess thats the joys of being a newbie.
Old 05-23-2002, 01:43 AM   #2
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

Rep: Reputation: 31
Escape the spaces or quote the file name.

david@cyberman:~/> cd /mnt/c/Program\ Files                              
david@cyberman:/mnt/c/Program Files/> cd "/mnt/c/Program Files/"
Old 05-23-2002, 02:03 AM   #3
LQ Newbie
Registered: May 2002
Distribution: Mandrake 10.0
Posts: 17

Original Poster
Rep: Reputation: 0

Simply little thing but it was driving me nuts...


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
Is it possible to remove spaces Alex_jacobson Linux - General 4 01-16-2005 10:45 AM
Way to many spaces LuderForChrist Linux - Newbie 4 06-25-2004 02:29 PM
cd to a directory with spaces? GT_Onizuka Linux - Newbie 3 08-28-2003 05:00 PM
dump name spaces mnauta Linux - General 4 05-29-2003 01:43 PM
spaces in filenames ebone Linux - General 2 11-12-2001 11:56 AM > Forums > Linux Forums > Linux - Newbie

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