rename directory that has leading - in name

chuck adams k7qo at commspeed.net
Sun Aug 17 06:09:04 UTC 2008


On Saturday 16 August 2008 22:57:16 Michael Hirsch wrote:
> On Sat, Aug 16, 2008 at 11:43 PM, chuck adams <k7qo at commspeed.net> wrote:
> > in bash:
> >
> > how do you escape the - if it is the leading character in a file
> > or directory name.
>
> Use the "--" switch than means it is the last switch:
> mv -- -name newname
>
> It also works for rm, touch, etc.
>
> Michael

Michael,

Thanks for the tip.  I'll put it in my little notebook to
remember.

As it turns out, just before I got your email, I tried Konquerer
and that worked.  I am not a fan of gui interfaces, since
I am an old user of Unix back in the days before graphical
terminals..... :--)

ciao dude,

chuck






More information about the kubuntu-users mailing list