[KLUG Members] accessing linux dir with ' in name

Adam bultman adamb at glaven.org
Fri Aug 26 16:12:29 EDT 2005


[02:09 adam at potassium :~]$mkdir "adam's dir"
[02:09 adam at potassium :~]$cd adam\'s\ dir
[02:09 adam at potassium :~/adam's dir]$
[02:10 adam at potassium :~]$mkdir adamb\'s\ dir
[02:10 adam at potassium :~]$cd adamb\'s\ dir/
[02:10 adam at potassium :~/adamb's dir]$

As long as you escape any nonstandard characters, like the space and the
apostrophe, you're fine.

Adam


Green Proc wrote:

> What shell are you using?
>
> Try
>
> cd joe\s%20stuff
>
> ???  just a guess.
>
> bill wrote:
>
>> A windows user named a directory on with a single quote mark ('), as in
>> "joe's stuff".  The directory got copied to a samba server.
>>
>> I'm trying to enter the directory to copy them over to another directory
>> and delete this one. 
>> I can't do this:
>>
>> cd joe's stuff
>>
>> nor this
>>
>> cd 'joe's stuff'
>>
>> nor this
>>
>> cd "joe's stuff"
>>
>> nor this
>> cd 'joe\'s stuff'
>>
>> But there's gotta be a way.
>>
>> kind regards,
>>
>> bill
>>
>> _______________________________________________
>> Members mailing list
>> Members at kalamazoolinux.org
>> 
>>
> _______________________________________________
> Members mailing list
> Members at kalamazoolinux.org
> 




More information about the Members mailing list