LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


Reply
  Search this Thread
Old 05-23-2002, 01:55 AM   #1
WindowsDefector
LQ Newbie
 
Registered: May 2002
Distribution: Mandrake 10.0
Posts: 17

Rep: Reputation: 0
spaces


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, 02:43 AM   #2
dorward
Member
 
Registered: Sep 2001
Distribution: Gentoo
Posts: 760

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

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

Original Poster
Rep: Reputation: 0
THANK YOU.

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


Reply


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


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

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