What's up with bash shell and spaces in filenames?

Mark Knoop mark at opus11.net
Mon May 10 16:50:23 UTC 2010


At 09:09 on 10 May 2010, Alan Evans wrote:
> On Mon, May 10, 2010 at 9:07 AM, Jeff Voskamp <javoskam at uwaterloo.ca>
> wrote:
> >
> > Try
> > cd /media
> > ls -bl
> >
> > and send us the results.
> 
> Ok:
> 
> [alan at agena ~]$ cd /media
> [alan at agena media]$ ls -bl
> total 4
> drwx------. 1 alan alan 4096 2010-05-10 08:12 My\ Book

Here is your answer. The directory name is "My\ Book", so you will have
to use:

cd My\\\ Book

(and you may want to do

mv My\\\ Book My\ Book

)

-- 
Mark Knoop


More information about the users mailing list