LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 07-26-2006, 04:04 AM   #1
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Rep: Reputation: 31
Linux can't read windows'File's name with space in it


Hi!
I have to burn so windows files but those files are in folders with names which contain blanks. It seems that linux can't recognize them. if I do ls -l, I get:
Quote:
dr-x------ 4 root root 4096 Mar 31 16:46 ArcPad StreetMap GDT Datasets
dr-x------ 23 root root 4096 Jan 30 12:16 Paket 1 - ArcGIS 9
dr-x------ 9 root root 4096 Jan 30 12:20 Paket 2 - ArcGIS Server
dr-x------ 13 root root 4096 Jun 20 11:09 RECYCLER
dr-x------ 21 root root 4096 Jun 20 12:07 System Volume Information
But when I copy the name, I get:
Quote:
sudo ls -l /media/disk/ZID/Paket 1 - ArcGIS
ls: /media/disk/ZID/Paket: No such file or directory
ls: 1: No such file or directory
ls: -: No such file or directory
ls: ArcGIS: No such file or directory
ls: 9: No such file or directory
What can I do? The files don't belong to me, so I don't rename them (I wouldn't be abble to anyway!).
Thanks.
 
Old 07-26-2006, 04:07 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Either put the file/directory name between double quotes, or use a slash, e.g.

$ ls /path/to/"Some directory with spaces"

$ ls /path/to/Some\ Directory\ with\ spaces

If the file or directory name is unique, you can use tab completion to do this automatically (type the first few characters and then press the Tab key).
 
Old 07-26-2006, 04:11 AM   #3
xpucto
Member
 
Registered: Sep 2005
Location: Vienna, Austria
Distribution: Mint 13
Posts: 522

Original Poster
Rep: Reputation: 31
Thanks! the problem is that I always use sudo and tab key doesn't work where root rights are needed. I've now switched on su, and tab key works. Thanks again for the quick answer.
 
Old 07-26-2006, 10:22 AM   #4
jstephens84
Senior Member
 
Registered: Sep 2004
Location: Nashville
Distribution: Manjaro, RHEL, CentOS
Posts: 2,098

Rep: Reputation: 102Reputation: 102
Another way of doing it is just to place double qoutes aroung the whole file name IE

cd "/usr/path files/somedir"
 
  


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
LXer: NASA Goddard Space Flight Center Selects Linux Networx Supercomputers for Earth and Space Sciences Research LXer Syndicated Linux News 0 05-01-2006 10:54 AM
How do I read disc and space used information on a DVD? opera_sys Linux - Hardware 2 07-19-2004 05:17 PM
How do I read disc and space used information on a DVD? opera_sys Linux - Hardware 1 07-19-2004 11:28 AM
linux scripting help needed read from file line by line exc commands each line read atokad Programming 4 12-26-2003 10:24 PM
LFS without a host system? (read on..I need more subject space than I have) JoeLinux Linux From Scratch 4 01-31-2002 04:30 PM


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